graph_traverse
Traverse a graph from a starting node, following relations to discover connections. Optionally filter by relation type and set traversal depth.
Instructions
Traverse the graph starting from a node, following relations. Optionally filter by relation type. Uses recursive CTE up to specified depth. Use to discover how nodes are connected in the graph.
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_id": "<start_id>"
},
"name": "graph_traverse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_id | Yes | ||
| relation | No | Optional: filter by relation type (e.g., 'contains', 'depends_on') | |
| depth | No |