Skip to main content
Glama

Mem0 Cloud

Delete your stored memories, like mem0's delete memory and delete all memories

delete_memories

Delete your stored memories, like mem0's delete memory and delete all memories. With memory_id: deletes that one memory (404 if it is not yours). Without it: deletes up to 200 of your memories matching user_id, agent_id, app_id or run_id (at least one), and says if more remain. Requires your memory_key (a secret string you generate): other keys cannot delete your memories. Price: $0.002 a call (3 free calls a day without an API key).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_idNoEntity: the app (1-128 characters)
run_idNoEntity: the session or run (1-128 characters)
user_idNoEntity: the user the memories are about (1-128 characters)
agent_idNoEntity: the agent the memories belong to (1-128 characters)
memory_idNoUUID of one memory to delete; leave out to delete by entity instead
memory_keyYesYour secret: a random string of 16-256 characters that you generate once and keep (also accepted as the X-Memory-Key header). Memories are stored and searched only under its hash, so nobody who lacks it can read them, whatever user_id they send. Lose it and the memories are unreachable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: it discloses the 404 when the memory is not yours, the 200-item cap with a signal that more remain, the destructive/auth requirement (secret memory_key generated by the caller), and cost/rate limits ($0.002 per call, 3 free calls a day). This is exactly the behavioral context an agent needs before a destructive operation.

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?

One dense but front-loaded block: the core purpose leads, then the two modes, then auth and pricing. Nearly every clause earns its place, though the trailing pricing sentence is secondary detail that could be moved or trimmed.

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?

No output schema exists, and the description compensates by telling the agent the tool reports whether more memories remain. Combined with mode semantics, auth requirements, caps, and cost, nothing needed to invoke this correctly is missing.

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?

Schema coverage is already 100%, so the baseline is 3. The description still adds meaning beyond the schema: it explains that memory_id is the single-target path, that the entity params form an at-least-one group for bulk mode, and that memory_key is caller-generated and unrecoverable. That exceeds the structured field text.

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?

States a specific verb (delete) and resource (stored memories), then splits the behavior into two clearly distinguished modes: single-memory deletion by memory_id versus bulk deletion by entity. An agent can tell exactly what this does without opening the schema.

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

Usage Guidelines4/5

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

Gives explicit when-to-use branching: pass memory_id for one memory, omit it and supply at least one of user_id/agent_id/app_id/run_id for bulk. It also states the memory_key prerequisite and that other keys cannot delete. It stops short of naming the sibling tools (get_memories/search_memories) as alternatives, so it is clear context without full routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources