Skip to main content
Glama

Forget a memory

forget
Destructive

Remove a memory from active recall when the user asks for it or confirms it. A reason is required and recorded in the audit trail. The entry can be brought back by rolling back to a checkpoint taken before it was forgotten.

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": {
      "key": "<key>",
      "reason": "<reason>"
    },
    "name": "forget"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesMemory key, for example "project.billing.database".
reasonYesWhy this memory is being forgotten.
expected_versionNoThe version returned by recall or a previous write. The change is refused if the memory changed since.

Output Schema

NameRequiredDescriptionDefault
keyYes
forgottenYes
state_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already state destructiveHint=true and idempotentHint=false, so the description earns credit for adding genuinely new behavior: the reason is mandatory and written to an audit trail, and the entry is recoverable by rolling back to a prior checkpoint. It does not mention conflict/refusal behavior on stale versions, but that is covered in 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.

Conciseness4/5

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

Three short sentences, front-loaded with the trigger, then the audit requirement, then recoverability – no filler. Minor redundancy in restating that the reason is required, which the schema already marks.

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?

Output schema exists, so return values need no explanation, and the description covers trigger, audit consequence, and reversal path for a destructive operation. Left under-specified is the relationship to sibling undo paths (rollback vs preview_rollback) and whether repeated calls on an already-forgotten key error out.

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% and expected_version already documents the optimistic-concurrency refusal, so the baseline is 3. The description adds one semantic item beyond the schema: that the reason is required and recorded in the audit trail, which explains why a free-text justification is demanded.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb plus resource ("Remove a memory from active recall") and scopes it to a user request or confirmation, which separates it from recall/remember. The only softness is "active recall" – the description never says plainly whether the record is deleted or merely de-indexed, though the rollback sentence implies recoverability.

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

Usage Guidelines3/5

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

Gives a clear trigger condition (user asks or confirms), which is useful when-to-use guidance, but offers no exclusions or alternatives – it never says to use revise for corrections or rollback to undo an earlier forget. An agent facing a "this memory is wrong" request has to guess between forget, revise, and rollback.

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.