palace_kg_query
Look up stable knowledge-graph facts for one entity, returning matching triples with direction, validity dates, confidence, and current status; use for durable facts like a project's database.
Instructions
Look up stable facts about one entity in the knowledge graph (subject → predicate → object triples added with palace_kg_add). Returns every matching fact with its direction, valid_from/valid_to dates, confidence, and whether it is still current. Read-only. Use it for durable facts such as 'which database does project X use'; use palace_search for free-text memories and palace_kg_timeline for a chronological history.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entity": "<entity>"
},
"name": "palace_kg_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | Only return facts that were valid on this date, YYYY-MM-DD (optional; default returns current and ended facts) | |
| entity | Yes | Entity name to look up, e.g. a project, person or tool (matched case-insensitively) | |
| direction | No | outgoing = facts where the entity is the subject, incoming = where it is the object (default: both) |