get_knowledge_graph
Build a knowledge graph around a specific item, revealing connections to other items in your corpus with typed edges and confidence scores. Specify depth for direct or broader network exploration.
Instructions
Build a knowledge graph around a specific item, showing how it connects to other items in your corpus via knowledge_edges. Returns the center item, connected nodes with metadata, and typed edges with confidence scores. Use depth=1 for direct connections, depth=2-3 for wider neighbourhood exploration.
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": {
"item_id": "<item_id>"
},
"name": "get_knowledge_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Graph traversal depth (default 1). Depth 2-3 expands to neighbours of neighbours. | |
| item_id | Yes | UUID of the center item to build the graph around |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | Yes | ||
| nodes | Yes | ||
| stats | Yes | ||
| center_item | Yes |