Skip to main content
Glama

forget_memory

Destructive

Permanently stops a fact from appearing in search results when a user asks to forget it or it is plainly wrong with no replacement; the record stays in history.

Instructions

Stop a fact from ever being returned by search.

    Use only when the user asks to forget something, or a fact is plainly wrong and has no
    replacement. Its record stays in history.

    Do NOT use when a fact has simply changed: use update_memory so the history shows
    what it changed from.
    

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": {
      "memory_id": "<memory_id>"
    },
    "name": "forget_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
memory_idYesA memory id returned by an earlier call.

Output Schema

NameRequiredDescriptionDefault
statusNoforgotten
messageYes
memory_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, and the description usefully qualifies that by noting the record stays in history — a meaningful nuance an agent would otherwise have to guess. The permanent exclusion from search results is also disclosed. It stops short of stating whether the suppression can ever be undone or what the call returns, but with annotations and an output schema carrying that load, this is solid.

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?

Three short, front-loaded blocks: what it does, when to use it, when not to and what to use instead. Every sentence carries distinct information with no filler.

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 one-parameter mutation with annotations and an output schema, the definition covers effect, retention, and routing to the sibling tool. The only gap is downstream impact — whether forgetting a fact also removes it from any relationships or entity summaries — which a careful agent might want to know.

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?

The single memory_id parameter is fully documented in the schema ('A memory id returned by an earlier call'), so the baseline applies. The description adds no extra constraints, such as whether forgetting a parent affects related facts. It does not need to, given 100% 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?

States a specific verb and resource with its exact effect: 'Stop a fact from ever being returned by search.' It also clarifies that the underlying record persists, so the agent knows the data is not physically deleted. That distinguishes it cleanly from save_memory, update_memory, and resolve_memory without opening their schemas.

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?

Gives both a positive trigger (user asks to forget, or a fact is plainly wrong with no replacement) and an explicit exclusion with a named alternative ('Do NOT use when a fact has simply changed: use update_memory'). The selection rule is unambiguous.

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