list_relationships
List relationships matching an entity, source, or target, with filters for direction and relationship type.
Instructions
List relationships for an entity
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | No | Entity ID to match against either the source or target of each relationship (filtered further by `direction`). Legacy filter pattern; prefer `source_entity_id` / `target_entity_id` for new code. | |
| source_entity_id | No | Match relationships whose `source_entity_id` equals this value. | |
| target_entity_id | No | Match relationships whose `target_entity_id` equals this value. | |
| direction | No | Direction applied when `entity_id` is set. `incoming`/`inbound` matches relationships where the entity is the target; `outgoing`/`outbound` matches relationships where the entity is the source; `both` (default) matches either side. | both |
| relationship_type | No | Optional relationship_type filter. Closed enum matching the handler's accepted values; spec-driven clients passing any other value will be rejected at runtime with a Zod validation error. | |
| limit | No | Maximum number of relationships to return. | |
| offset | No | Number of relationships to skip before returning results. | |
| user_id | No | Optional user_id override (scoped to callers with privilege to query on behalf of another user). When omitted, the authenticated user is used. |