Skip to main content
Glama

forget

DestructiveIdempotent

Archive a stored memory when the user asks not to remember it, or permanently erase it on explicit request; retrieve the memory ID via recall first.

Instructions

Forget a memory promptly when the person asks you to ('don't remember that', 'drop that', '别记了', '忘掉'). To correct a memory with updated facts, use remember with replaces instead so the new fact is saved. By default it archives the memory so it stops appearing in recall while remaining recoverable from the admin page. Pass permanent: true only when they clearly want it erased forever. Get the id from recall first. Returns { data: { id, archived } } or { data: { id, deleted } }.

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

Input Schema

NameRequiredDescriptionDefault
idYesMemory id (from recall or list_memories).
namespaceNoMemory space to use. Defaults to 'default'. Ignored when the API key is bound to a fixed namespace.
permanentNotrue erases the memory permanently. Default false archives it safely.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.0
    • changedInput schema / properties / permanent / description
      Previous value: -"true erases the memory for good. Default false: archive it, which can be undone."New value: +"true erases the memory permanently. Default false archives it safely."
  2. Addedv2.1.0

TDQS

A4.8/5.0
Behavior5/5

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

The annotations declare destructiveHint=true and idempotentHint=true, but the description adds the crucial nuance the annotations cannot express: the default is a recoverable archive that merely disappears from recall, and only permanent:true actually erases. It also documents the response shape ({id, archived} vs {id, deleted}), which matters given no output 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?

Front-loaded with the trigger, then the alternative tool, then the default behavior, then the exception — a logical ordering. It is dense but nearly every clause carries decision-relevant information; the four parenthetical example phrases are slightly redundant but arguably useful for matching user utterances.

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 destructive mutation with no output schema, the description covers the trigger, the alternative, the reversibility model, the escalation condition, the id source, and the return shape. An agent has everything needed to call it correctly and safely.

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 the baseline is 3; the description earns above that by explaining the semantic decision behind 'permanent' (safe archive vs irreversible erasure) and where 'id' must come from. 'namespace' is left entirely to the schema, which is acceptable given the coverage.

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 specific verb and resource ('Forget a memory') plus the exact triggering condition, and explicitly distinguishes itself from the sibling 'remember' when the intent is correction rather than removal.

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 gives concrete trigger phrases in two languages, an explicit when-not ('to correct a memory ... use remember with replaces instead'), a rule for the permanent flag ('only when they clearly want it erased forever'), and a prerequisite ('Get the id from recall first'). Nothing about tool selection is left to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.