memory_relations
Query typed relationships between entities to answer questions like 'what does X own?' or 'who depends on Y?'. Filter by direction and relation type for precise results.
Instructions
Query typed edges between entities. Returns 'A --[type]--> B' triples that semantic search alone wouldn't surface. Use for 'what does X own / use / depend on?' and 'who owns Y?' style questions. Optionally filter by direction (from / to / both) and relation type. To create relations, use memory_store with the 'relation' field — there is no separate create-relation tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | Entity name to query (case-insensitive). | |
| direction | No | Which side of the edge the entity is on. 'from' = entity is the source (X --[?]--> ?). 'to' = entity is the target (? --[?]--> X). 'both' = either (default). | both |
| destination | No | Optional legacy single-destination override. Do not combine with search_scope. | |
| search_scope | No | Optional read/search scope. Accepts 'routed', 'all', a destination name, a configured scope name, a comma-separated destination list, or an array of destination names. Omit to use config.default_search_scope. | |
| workspace_id | No | [Removed in v0.4.0] No-op. | |
| relation_type | No | Filter to a specific edge label (e.g. 'owns', 'uses', 'decided', 'prefers', 'works-on'). Optional. | |
| include_legacy_workspace | No | [Removed in v0.4.0] No-op. |