localnest_memory_related
Retrieve connected memory entries by exploring the knowledge graph one hop in both directions from a specified memory ID.
Instructions
Return all memory entries linked to a given memory ID, traversing the knowledge graph one hop in both directions.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| response_format | No | json |
Implementation Reference
- src/mcp/tools/memory-store.js:299-315 (handler)The tool `localnest_memory_related` is registered here, with its handler defined as an asynchronous function calling `memory.getRelated(id)`.
registerJsonTool( ['localnest_memory_related'], { title: 'Memory Related', description: 'Return all memory entries linked to a given memory ID, traversing the knowledge graph one hop in both directions.', inputSchema: { id: z.string().min(1) }, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } }, async ({ id }) => normalizeRelatedMemoriesResult(await memory.getRelated(id), id) );