Skip to main content
Glama

localnest_memory_get

Retrieve a stored memory with its revision history from the LocalNest MCP server's local-first storage system.

Instructions

Fetch one stored memory with revision history.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
response_formatNojson

Implementation Reference

  • The handler for localnest_memory_get, which uses the memory service to fetch an entry by ID.
    async ({ id }) => {
      const item = await memory.getEntry(id);
      if (!item) {
        throw new Error(`memory not found: ${id}`);
      }
      return normalizeMemoryEntryPayload(item);
    }
  • The registration of the localnest_memory_get tool, including its schema and handler definition.
    registerJsonTool(
      ['localnest_memory_get'],
      {
        title: 'Memory Get',
        description: 'Fetch one stored memory with revision history.',
        inputSchema: {
          id: z.string().min(1)
        },
        annotations: {
          readOnlyHint: true,
          destructiveHint: false,
          idempotentHint: true,
          openWorldHint: false
        }
      },
      async ({ id }) => {
        const item = await memory.getEntry(id);
        if (!item) {
          throw new Error(`memory not found: ${id}`);
        }
        return normalizeMemoryEntryPayload(item);
      }
    );

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