traverse
Bounded, directed, cycle-safe trace over one kind: network
relationship — every node and edge reachable from entity_id within
max_depth hops in ONE call (nodes carry their entity_type and depth;
the origin is depth 0). Use this to follow a network instead of chaining
get_relationships hop by hop. direction="outbound" goes downstream
(well → … → plant); direction="inbound" goes upstream — e.g. from a
pipeline back to the wells that feed it: traverse(pipeline_id, 'feeds',
direction='inbound') then keep the nodes whose entity_type == 'Well'.
Capped at max_depth=5. Reads the synced graph index (henosis sync).
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": {
"entity_id": "<entity_id>",
"relationship": "<relationship>"
},
"name": "traverse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | No | outbound | |
| entity_id | Yes | ||
| max_depth | No | ||
| max_nodes | No | ||
| relationship | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||