Skip to main content
Glama

get_full_memory

Retrieve complete memory documents with all Markdown formatting preserved, including headings, bold text, code blocks, links, tables, and lists.

Instructions

Retrieve the complete content of a memory document with all Markdown formatting preserved (headings, bold, italic, code, links, tables, lists, etc.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
memory_idYesThe ID of the memory document to retrieve

Implementation Reference

  • The handler function that executes the logic for the 'get_full_memory' tool. It reads the specified memory document from storage and returns its full content formatted as Markdown text with metadata.
    export async function getFullMemoryTool( storageManager: StorageManager, args: any ): Promise<any> { const params = args as GetFullMemoryParams; if (!params.memory_id) { throw new Error("Memory ID is required"); } // Read the memory document const memory = await storageManager.readMemory(params.memory_id); if (!memory) { throw new Error(`Memory document with ID '${params.memory_id}' not found`); } return { content: [ { type: "text", text: `# Full Memory: ${params.memory_id} **Created:** ${memory.metadata.created} **Updated:** ${memory.metadata.updated} **Status:** ${memory.metadata.status} **Tags:** ${memory.metadata.tags.join(", ") || "None"} --- ${memory.content}`, }, ], }; }
  • TypeScript interface defining the input parameters for the get_full_memory tool.
    export interface GetFullMemoryParams { memory_id: string; }
  • JSON schema for the input parameters of the get_full_memory tool, as registered in the MCP server.
    inputSchema: { type: "object", properties: { memory_id: { type: "string", description: "The ID of the memory document to retrieve", }, }, required: ["memory_id"], },
  • src/index.ts:234-248 (registration)
    Tool registration in the listTools handler, including name, description, and input schema.
    { name: "get_full_memory", description: "Retrieve the complete content of a memory document with all Markdown formatting preserved (headings, **bold**, *italic*, `code`, [links](url), tables, lists, etc.)", inputSchema: { type: "object", properties: { memory_id: { type: "string", description: "The ID of the memory document to retrieve", }, }, required: ["memory_id"], }, },
  • src/index.ts:286-287 (registration)
    Dispatch case in the callTool handler that routes calls to the getFullMemoryTool function.
    case "get_full_memory": return await getFullMemoryTool(storageManager, args);

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/nmeierpolys/mcp-structured-memory'

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