Skip to main content
Glama

forget

Delete inaccurate or irrelevant stored memories by ID to maintain accurate persistent knowledge for AI agents.

Instructions

Delete a specific memory by ID. Use when a stored memory is no longer accurate or relevant.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
memory_idYesThe ID of the memory to delete

Implementation Reference

  • The 'forget' tool handler is implemented in 'packages/mcp-server/src/index.ts'. It takes a 'memory_id' as input and performs a DELETE request to the API via 'apiCall'.
    server.tool(
      "forget",
      "Delete a specific memory by ID. Use when a stored memory is no longer accurate or relevant.",
      {
        memory_id: z.string().describe("The ID of the memory to delete"),
      },
      async ({ memory_id }) => {
        await apiCall(`/memories/${memory_id}`, "DELETE");
        return {
          content: [
            {
              type: "text" as const,
              text: `Memory ${memory_id} has been deleted.`,
            },
          ],
        };
      },
    );
Install Server

Other Tools

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/AlekseiMarchenko/central-intelligence'

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