localnest_memory_remove_relation
Remove connections between memory entries in LocalNest MCP to maintain accurate relationships and clean up outdated associations.
Instructions
Remove a relation between two memory entries.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_id | Yes | ||
| target_id | Yes | ||
| response_format | No | json |
Implementation Reference
- src/mcp/tools/memory-store.js:293-296 (handler)The handler function for localnest_memory_remove_relation, which calls memory.removeRelation.
async ({ source_id, target_id }) => { const result = await memory.removeRelation(source_id, target_id); return normalizeRelationRemovalResult(result, { source_id, target_id }); } - src/mcp/tools/memory-store.js:277-297 (registration)Registration of the localnest_memory_remove_relation tool using registerJsonTool.
registerJsonTool( ['localnest_memory_remove_relation'], { title: 'Memory Remove Relation', description: 'Remove a relation between two memory entries.', inputSchema: { source_id: z.string().min(1), target_id: z.string().min(1) }, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false } }, async ({ source_id, target_id }) => { const result = await memory.removeRelation(source_id, target_id); return normalizeRelationRemovalResult(result, { source_id, target_id }); } );