Skip to main content
Glama

kb_forget

Destructive

Retire a memory that is wrong or out of date (soft delete: it stops appearing in recall and can be restored); also removes a current state that no longer applies. Take the id from the end of a kb_find or kb_recall line. Summaries can't be retired directly; retire the facts they were built 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": {
      "id": "<id>",
      "reason": "<reason>"
    },
    "name": "kb_forget"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe memory id from kb_recall
bankNoMemory bank (leave empty for your space's default)
reasonYesWhy it is being retired (required)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/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 reframes this as a reversible soft delete that can be restored and disappears from recall — context an agent cannot get from the annotations alone. It also discloses the summary-restriction constraint. It stops short of saying whether the 'reason' is recorded/audited or what happens to graph links pointing at the retired memory.

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 action and its reversibility, followed by two short operational sentences. The parenthetical and semicolon clause are dense but each carries distinct information. No filler or repetition.

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 3-parameter mutation tool with annotations and no output schema, the description covers what is affected, reversibility, id sourcing, and the summary exclusion. Remaining unknowns — side effects on related facts/links and what a successful call returns — are secondary but would round it out.

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, but the description adds real meaning beyond the schema by explaining where the id comes from ('the end of a kb_find or kb_recall line'), which is operational guidance the schema's 'memory id from kb_recall' does not fully convey. The 'reason' parameter is only echoed as required, adding little.

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 ('Retire') and resource ('a memory'), and immediately qualifies the operation as a soft delete that stops appearing in recall and can be restored. This distinguishes it from a hard-delete sibling (kb_delete) without the agent needing to open either schema, and the secondary clause about removing stale current state covers the second use case.

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

Usage Guidelines4/5

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

Gives concrete when-to-use conditions ('wrong or out of date', 'a current state that no longer applies') and an explicit when-not with the correct workaround ('Summaries can't be retired directly; retire the facts they were built from'). It also tells the agent where to source the id. The only gap is that it never names a hard-delete alternative for cases where permanent removal is wanted.

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