retrieve_related_entities
Finds entities linked to a starting entity through relationships. Supports filtering by relationship type, direction, and traversal depth up to multiple hops.
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 |