get_neighbors
Lists nodes one hop from a specified node with each connecting edge's ID and type; supports direction, edge-type, and limit filters for graph traversal.
Instructions
List the nodes one hop from node_id, each with the edge that links it (edge_id, edge_type).
For longer paths use execute_gql.
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": {
"node_id": "<node_id>"
},
"name": "get_neighbors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Most edges to follow. | |
| node_id | Yes | ||
| direction | No | "outgoing", "incoming" or "both". | both |
| edge_type | No | Follow only this edge type. |