retrieve_related_entities
Retrieve connected entities by traversing relationships from a starting entity, with options to filter by type, direction, and depth.
Instructions
Retrieve entities connected to a given entity via relationships. Supports n-hop traversal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | Starting entity ID | |
| relationship_types | No | Filter by relationship types (e.g., ['PART_OF', 'REFERS_TO']). If empty, includes all types. | |
| direction | No | Direction of relationships to traverse | both |
| max_hops | No | Maximum number of relationship hops (1 = direct, 2 = 2-hop, etc.) | |
| include_entities | No | Whether to include full entity snapshots in response |