Graph Traverse
localnest_graph_traverseExplore connections in a knowledge graph by starting from an entity and following relationships up to a configurable number of hops. Returns discovered entities and their paths.
Instructions
Traverse the knowledge graph from a starting entity with configurable max hops (default 2). Uses recursive CTEs with cycle prevention. Returns discovered entities with path information.
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": {
"start_entity_id": "<start_entity_id>"
},
"name": "localnest_graph_traverse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_entity_id | Yes | ||
| max_hops | No | ||
| direction | No | both | |
| response_format | No | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | Yes |