get_knowledge_graph
Retrieve a focused subgraph of nodes and edges centered on a specific entity, prioritizing nearby and well-connected nodes while respecting configurable depth and node limits.
Instructions
Retrieve a connected subgraph (nodes and edges) around one entity
label. Nodes closer to the label, and more connected nodes, are kept
first when the graph is larger than max_nodes.
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": {
"label": "<label>"
},
"name": "get_knowledge_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Entity label to center the subgraph on. | |
| max_depth | No | Maximum number of hops from the starting label. | |
| max_nodes | No | Maximum number of nodes to return. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||