Skip to main content
Glama

Preview or Delete Memory

engram_delete_memory
DestructiveIdempotent

Preview or permanently erase one private memory and its explicit derived patterns from the live database. Unlike engram_retract_memory, execution cannot be undone. Requires a human workspace OWNER API key; OAuth agents and member keys cannot erase. Does not delete independent memories or unrelated sessions.

Default dry_run=true returns counts, derived IDs, affected session IDs (first 50), scope and confirmation. Inspect it first: execution redacts the entire free-text history/checkpoints/task/context of referencing sessions, plus associated outcomes, links, jobs and linked evidence; shared entities remain if still referenced. Execute only the reviewed ID using dry_run=false and confirmation="delete:<memory_id>". Returns erased_at/counts; repeated execution returns the original minimal ID/count receipt without erased text (a one-way content fingerprint blocks exact store replays). In-flight background writes and exact store retries cannot repopulate erased knowledge. Historical unlinked paraphrases, already delivered client context, application/provider logs, provider copies and backups are outside this live-database operation. Public-bank records are excluded. Consumes daily call quota.

Input Schema

NameRequiredDescriptionDefault
dry_runNoDefault true previews impact without changing knowledge. False executes only with the exact confirmation string and human OWNER authority.
memory_idYesExact id from a recalled memory; do not substitute a repository name, URL, or the memory text.
confirmationNoFor execution only: copy delete:<exact memory_id> from the preview. Omit for preview; never substitute a repo name.

Output Schema

NameRequiredDescriptionDefault
textYesThe same bounded payload as content[0].text; interpret it using format. JSON text contains the endpoint-specific fields described by this tool.
formatYesPayload encoding: Markdown context/checkpoint, serialized JSON data, or plain confirmation text.
truncatedYesTrue when the payload exceeded 120,000 characters and was cut with a notice. Narrow the request; truncated JSON is not parseable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Far exceeds the annotations (destructiveHint, idempotentHint, readOnlyHint=false) by disclosing exactly what gets destroyed (free-text history/checkpoints/task/context of referencing sessions, outcomes, links, jobs, linked evidence), what survives (shared entities still referenced), idempotency semantics (repeat execution returns a minimal receipt), a content-fingerprint safeguard against replay repopulation, and quota consumption.

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?

Front-loaded with the core purpose and alternative, then proceeds through prerequisites, dry-run workflow, and scope exclusions. It is dense and long, but nearly every sentence carries a distinct operational fact (irreversibility, destruction scope, fingerprint safeguard, quota, out-of-scope stores), so waste is minimal.

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 high-stakes destructive operation, the description covers permissions, irreversibility, exact destruction scope, surviving data, execution workflow, idempotency behavior, and explicit out-of-scope exclusions. With an output schema present, return-value detail is optional, and the description is more than complete.

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

Parameters3/5

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

Schema description coverage is 100%, so dry_run, memory_id, and confirmation are already documented in the schema, including the exact confirmation format and the warning not to substitute a repo name. The description restates this workflow (dry_run default true, execute with the reviewed ID) but adds little syntax or meaning beyond the schema, so the baseline of 3 applies.

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 and resource ('Preview or permanently erase one private memory and its explicit derived patterns from the live database') and explicitly distinguishes itself from the sibling engram_retract_memory. An agent can tell exactly what this does and how it differs from alternatives 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 Guidelines5/5

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

Explicit when-to-use ('Inspect it first'), how-to-execute ('Execute only the reviewed ID using dry_run=false and confirmation="delete:<memory_id>"'), the alternative it is not ('Unlike engram_retract_memory, execution cannot be undone'), and prerequisites ('Requires a human workspace OWNER API key; OAuth agents and member keys cannot erase'). Exclusions are also stated ('Does not delete independent memories or unrelated sessions').

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