retrieve_related_entities
Retrieve all entities linked to a starting entity via relationship paths. Traverse direct or multi-hop connections to uncover related data.
Instructions
Retrieve entities connected to a given entity via relationships. Supports n-hop traversal.
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>"
},
"name": "retrieve_related_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_hops | No | Maximum number of relationship hops (1 = direct, 2 = 2-hop, etc.) | |
| direction | No | Direction of relationships to traverse | both |
| entity_id | Yes | Starting entity ID | |
| include_entities | No | Whether to include full entity snapshots in response | |
| relationship_types | No | Filter by relationship types (e.g., ['PART_OF', 'REFERS_TO']). If empty, includes all types. |