Skip to main content
Glama

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
NameRequiredDescriptionDefault
source_idYes
target_idYes
response_formatNojson

Implementation Reference

  • 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 });
    }
  • 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 });
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wmt-mobile/localnest'

If you have feedback or need assistance with the MCP directory API, please join our Discord server