metal-kompanion/src/mcp/ToolSchemas.json

197 lines
5.1 KiB
JSON

{
"namespace": "kom.memory.v1",
"tools": {
"save_context": {
"input": {
"type": "object",
"properties": {
"namespace": {"type": "string"},
"key": {"type": "string"},
"content": {},
"tags": {"type": "array", "items": {"type": "string"}},
"ttl_seconds": {"type": "integer"}
},
"required": ["namespace", "content"]
},
"output": {
"type": "object",
"properties": {
"id": {"type": "string"},
"created_at": {"type": "string"}
},
"required": ["id", "created_at"]
}
},
"recall_context": {
"input": {
"type": "object",
"properties": {
"namespace": {"type": "string"},
"key": {"type": "string"},
"tags": {"type": "array", "items": {"type": "string"}},
"limit": {"type": "integer"},
"since": {"type": "string"}
},
"required": ["namespace"]
},
"output": {
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {"type": "string"},
"key": {"type": "string"},
"content": {},
"tags": {"type": "array", "items": {"type": "string"}},
"created_at": {"type": "string"}
},
"required": ["id", "content", "created_at"]
}
}
},
"required": ["items"]
}
},
"embed_text": {
"input": {
"type": "object",
"properties": {
"model": {"type": "string"},
"texts": {"type": "array", "items": {"type": "string"}}
},
"required": ["texts"]
},
"output": {
"type": "object",
"properties": {
"model": {"type": "string"},
"vectors": {"type": "array", "items": {"type": "array", "items": {"type": "number"}}}
},
"required": ["model", "vectors"]
}
},
"upsert_memory": {
"input": {
"type": "object",
"properties": {
"namespace": {"type": "string"},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {"type": "string"},
"text": {"type": "string"},
"metadata": {"type": "object"},
"embedding": {"type": "array", "items": {"type": "number"}}
},
"required": ["text"]
}
}
},
"required": ["namespace", "items"]
},
"output": {
"type": "object",
"properties": {
"upserted": {"type": "integer"}
},
"required": ["upserted"]
}
},
"search_memory": {
"input": {
"type": "object",
"properties": {
"namespace": {"type": "string"},
"query": {
"type": "object",
"properties": {
"text": {"type": "string"},
"embedding": {"type": "array", "items": {"type": "number"}},
"k": {"type": "integer"},
"filter": {"type": "object"}
}
}
},
"required": ["namespace", "query"]
},
"output": {
"type": "object",
"properties": {
"matches": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {"type": "string"},
"score": {"type": "number"},
"text": {"type": "string"},
"metadata": {"type": "object"}
},
"required": ["id", "score"]
}
}
},
"required": ["matches"]
}
},
"warm_cache": {
"input": {
"type": "object",
"properties": {
"namespace": {"type": "string"},
"since": {"type": "string"}
},
"required": ["namespace"]
},
"output": {
"type": "object",
"properties": {
"queued": {"type": "integer"}
},
"required": ["queued"]
}
},
"kom.local.v1.backup.export_encrypted": {
"input": {
"type": "object",
"properties": {
"namespaces": {"type": "array", "items": {"type": "string"}},
"destination": {"type": "string"}
},
"required": ["namespaces", "destination"]
},
"output": {
"type": "object",
"properties": {
"status": {"type": "string"},
"artifact": {"type": "string"}
},
"required": ["status", "artifact"]
}
},
"kom.local.v1.backup.import_encrypted": {
"input": {
"type": "object",
"properties": {
"source": {"type": "string"}
},
"required": ["source"]
},
"output": {
"type": "object",
"properties": {
"status": {"type": "string"}
},
"required": ["status"]
}
}
}
}