query_graph
Answer a question over one workspace's knowledge graph with local hybrid retrieval: vector similarity, keyword match and graph neighbourhoods are combined, the strongest passages and their entities are selected, and the answer is composed from them with source evidence. Use it for questions a handful of documents can answer; use query_graph_global for corpus-wide synthesis. It reads the latest published snapshot only, so results are stable until a new build publishes. Returns: an answer plus the evidence snippets behind it, each with the source document and chunk it came from.
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": {
"query": "<query>"
},
"name": "query_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The natural-language question or claim to check against the corpus (max 4000 characters). | |
| max_results | No | How many evidence passages to retrieve and consider, 1–20 (default 5). Raise it for broad questions, lower it when you want a tight, cheap answer. | |
| workspace_id | No | Workspace that owns the graph, 1–63 chars of [a-z0-9-]. Use the same id for every operation on one corpus. Defaults to "default". | default |
| community_level | No | Restrict retrieval to one community level of the graph hierarchy: 0 is the coarsest, higher integers are finer. Omit to search across levels. |