Skip to main content
Glama

Delete an entity's memories

delete_entity
Destructive

Delete every memory belonging to one entity returned by list_entities, for example every memory whose source is 'cursor'. Defaults to a dry run; pass dry_run=false to delete after the user confirms.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoPreview the count without deleting. Defaults to true.
entity_idYesThe entity value, as returned by list_entities.
entity_typeYesWhich grouping the entity_id belongs to.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runYes
messageNo
entity_idYes
entity_typeYes
deleted_countNo
would_delete_countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and non-idempotency, so the safety profile is covered. The description adds genuinely useful behavior the annotations don't: that the call defaults to a preview/dry run and should only be executed for real after explicit user confirmation, which is critical for a destructive bulk operation. It does not address re-invocation/idempotency behavior, leaving a small gap.

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 tight sentences with no filler. The destructive scope is front-loaded, followed immediately by the safety default and the confirmation gate, which is the right ordering for a destructive tool.

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?

An output schema exists, so return values need no explanation. Given the tool is a simple three-parameter bulk delete, the description covers everything an agent needs: valid identifier source, deletion scope, dry-run default, and the confirmation requirement before real deletion.

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 100%, so entity_type and entity_id are already documented and the baseline is 3. The description adds value by reinforcing the dry_run semantics with a workflow rationale ('pass dry_run=false to delete after the user confirms') and by tying entity_id to list_entities output, which clarifies the dependency beyond the raw field description.

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 gives a precise verb+resource+scope: 'Delete every memory belonging to one entity returned by list_entities.' This scope language cleanly separates it from delete_memory (one memory) and delete_all_memories (everything), even without naming them, and the 'cursor' source example makes the entity concept concrete.

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?

It establishes the workflow context by pointing back to list_entities as the source of valid entity identifiers, and it states the safe default (dry run) plus the condition for real deletion after user confirmation. It does not explicitly contrast against delete_memory or delete_all_memories, so it stops short of a full when-to-use-one-vs-alternative statement.

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