Skip to main content
Glama
dedsxc
by dedsxc

delete_memory

Delete a specific memory by its ID to remove stored facts from long-term memory. Use IDs from search or list results.

Instructions

Delete a single memory by its id.

Note: mem0 deletes by id without a user filter, so ids should only be obtained from this identity's own search_memory / list_memories results (both scoped to the caller's bucket).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
memory_idYesThe id of the memory to forget (from search/list results).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries the transparency burden. It discloses the critical behavioral trait that deletion is not scoped to a user ('mem0 deletes by id without a user filter'), which is a potential hazard. It also implies an identity/bucket context, adding value beyond the schema.

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

Conciseness5/5

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

Two sentences, front-loaded with the core action, followed by a relevant caveat. No filler; every sentence contributes essential information.

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?

For a single-parameter delete operation with an output schema, the description covers the action, parameter provenance, and a critical behavioral nuance. It is sufficiently complete for an agent to invoke the tool correctly without additional details.

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 already documents memory_id as 'The id of the memory to forget (from search/list results)' with 100% coverage. The description reinforces this by explaining why ids must come from this identity's own results, adding meaningful context to the parameter's safe usage.

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 opens with a clear verb and object: 'Delete a single memory by its id.' This precisely states the tool's function and distinguishes it from siblings like search_memory, add_memory, and list_memories, which involve other operations.

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?

The note 'ids should only be obtained from this identity's own search_memory / list_memories results' gives concrete usage guidance, explaining how to safely source the id and why (deletes without a user filter). It does not explicitly mention alternatives, but the scoping caution serves as effective when-to-use context.

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/dedsxc/mcp-openmemory'

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