Skip to main content
Glama
memstate-ai

Memstate AI - Agent Memory System

Official

memstate_delete_project

Remove an entire project and all associated memories while preserving full history through tombstone versions. Use to clean up test data or decommission projects without permanent deletion.

Instructions

Soft-delete an entire project and all its memories. Creates tombstone versions for every memory, preserving full history. The project is hidden from listings but can be restored by creating a new project with the same ID.

USE THIS WHEN: You want to remove all memories for a project, e.g. cleaning up test data or decommissioning a project.

memstate_delete_project(project_id="old-project")

All memories get individual tombstone versions. History is preserved via memstate_history.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesRequired. Project ID to soft-delete.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The CallToolRequest handler in src/index.ts proxies the 'memstate_delete_project' tool request to the remote Memstate MCP server.
    server.setRequestHandler(CallToolRequestSchema, async (request) => {
      return await remote.callTool({
        name: request.params.name,
        arguments: request.params.arguments,
      });
    });
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden and does so well. It discloses key behavioral traits: it's a soft-delete (not permanent), creates tombstone versions for all memories, preserves history, hides the project from listings, and can be restored by creating a new project with the same ID. It doesn't mention rate limits or auth needs, but covers the essential destructive nature and recovery mechanism adequately.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized and front-loaded with the core action. The 'USE THIS WHEN' section is helpful but slightly repetitive of the purpose. The example usage is concise and adds clarity. Minor improvements could tighten it, but overall it's efficient with minimal waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (destructive operation with recovery), no annotations, and an output schema (which handles return values), the description is complete. It covers purpose, usage, behavior, and parameters adequately, providing all necessary context for an agent to invoke it correctly without over-explaining.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, so the baseline is 3. The description adds value by providing an example usage (memstate_delete_project(project_id='old-project')) which clarifies the parameter's role in context, though it doesn't add deep semantic details beyond what the schema already states ('Required. Project ID to soft-delete.').

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('soft-delete an entire project and all its memories') and distinguishes it from siblings like memstate_delete (which likely deletes individual memories) by specifying it affects the entire project. It explains the outcome (creates tombstone versions, preserves history, hides from listings) which clarifies the scope beyond just the name.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It includes an explicit 'USE THIS WHEN' section that provides clear guidance: 'You want to remove all memories for a project, e.g. cleaning up test data or decommissioning a project.' This directly tells the agent when to use this tool versus alternatives, with practical examples.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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

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