query_graph_tool
Query a knowledge graph to extract the most relevant subgraph within a specified token budget, enabling efficient context compression for LLMs.
Instructions
Query a knowledge graph for the most relevant subgraph within a token budget.
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": {
"graph_path": "<graph_path>",
"query": "<query>"
},
"name": "query_graph_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| graph_path | Yes | ||
| query | Yes | ||
| token_budget | No |