Skip to main content
Glama

Delete a memory

memory_forget
Destructive

Deletes one memory permanently, by id. The delete cannot be undone and leaves no copy: for a private memory the key that opens it goes with the row. For a fact that changed, memory_write with supersedes keeps the history instead. reason is recorded with the deletion. dry_run true lists what would go and deletes nothing. In a company workspace, forgetting a shared company row hands each author's notes back to them as their own. The tool appears only for a credential granted mayDelete.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>",
      "reason": "<reason>"
    },
    "name": "memory_forget"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesid of the memory to delete, as returned by memory_search or memory_write.
reasonYesWhy it is being deleted, recorded with the deletion. Required: a delete with no reason is indistinguishable from a mistake a month later.
dry_runNotrue lists what would go and deletes nothing, so the person can see the exact memory before a delete removes it. A delete on an instruction that did not name this exact memory can remove the wrong one, and nothing restores it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description goes further: irreversible with no copy, the encryption key for a private memory is destroyed with the row, reason is stored, dry_run deletes nothing, company-workspace rows return each author's notes to them, and the tool is gated on a mayDelete credential. That is substantial disclosure beyond the annotations, though the response shape after deletion is never described.

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?

Five short sentences, front-loaded with the destructive outcome before the softer alternatives and dry_run. Every sentence carries distinct information: irreversibility, the sibling alternative, the audit field, the safe mode, and the permission gate.

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

Completeness4/5

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

For a destructive three-parameter tool with no output schema, the description covers consequences, alternatives, dry_run, workspace side effects, and the credential requirement. The only gap is what a successful delete returns, which matters little given no output schema exists.

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 coverage is 100%, so all three parameters are already documented, and the description mostly restates the same semantics (reason recorded, dry_run lists without deleting). It confirms intent but adds no format, syntax, or edge-case meaning the schema lacks, so the baseline 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?

"Deletes one memory permanently, by id" gives a specific verb, resource, and scope, and the description explicitly contrasts itself with memory_write with supersedes for the changed-fact case. An agent can distinguish it from every sibling without opening a 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?

It names the alternative (memory_write with supersedes) and the condition that selects it (a fact that changed), and it explains when to use dry_run first. Both the when-to-use and when-not-to-use paths are stated rather than inferred.

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