Skip to main content
Glama

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
NameRequiredDescriptionDefault
idYes
response_formatNojson

Implementation Reference

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

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