Skip to main content
Glama
memstate-ai

Memstate AI - Agent Memory System

Official

memstate_delete

Soft-delete memories by keypath to remove outdated information while preserving full version history. Use this tool to clean up agent memory subtrees or mark memories as no longer relevant.

Instructions

Soft-delete a memory by keypath. Creates a tombstone version preserving full history. The memory can be un-deleted by setting a new value at the same keypath.

USE THIS WHEN: You need to remove outdated or incorrect memories, clean up a keypath subtree, or mark memories as no longer relevant. NOT FOR: Updating content (use memstate_set or memstate_remember to overwrite with new content instead).

memstate_delete(project_id="myapp", keypath="config.old_setting") memstate_delete(project_id="myapp", keypath="config", recursive=true) → deletes config and all children

History is preserved. Use memstate_history to see the deletion in the version chain. Keypath is auto-prefixed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesRequired. Project containing the memory.
keypathYesRequired. Keypath to delete (auto-prefixed with 'project.{project_id}.').
recursiveNoIf true, delete the entire keypath subtree. Default: false.

Implementation Reference

  • The memstate MCP server is a proxy that forwards all tool calls, including 'memstate_delete', to a remote MCP server via the 'remote.callTool' method.
    server.setRequestHandler(CallToolRequestSchema, async (request) => {
      return await remote.callTool({
        name: request.params.name,
        arguments: request.params.arguments,
      });
    });

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/memstate-ai/memstate-mcp'

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