Skip to main content
Glama

Forget a learning

forget_learning
Idempotent

Marks a learning as forgotten so guideline retrieval no longer returns it, while retaining the reason and showing it when forgotten entries are included.

Instructions

OpenSCAD: marks a learning as forgotten, so get_guidelines no longer returns it. It stays in the file with the reason; list_learnings with include_forgotten shows it. A learning that is already forgotten stays as it is.

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_learning"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId of the learning, as list_learnings shows it.
reasonNoWhy it no longer holds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false; the description adds the important nuance that this is a soft hide rather than a deletion — the entry "stays in the file with the reason" and remains visible via include_forgotten. It also restates the idempotent behavior for already-forgotten learnings in concrete terms. It does not explain how (or whether) a forgotten learning can be restored, which is the one behavioral gap.

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 sentences, front-loaded with the core action and effect, followed by visibility and edge-case handling. No redundant wording; every sentence carries distinct information.

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 two-parameter mutation with full schema coverage and a complete annotation set, the description covers the essential behavior: state change, effect on sibling reads, retention, and idempotency. Only the return/response shape is unaddressed, which is a minor omission for a tool with no output schema.

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 the schema already documents `id` (as shown by list_learnings, positive integer) and `reason` (why it no longer holds, 200 char max). The description only incidentally reinforces `reason` via "it stays in the file with the reason" and adds no format or usage detail beyond the schema, so the baseline of 3 is appropriate.

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 gives a specific verb and resource ("marks a learning as forgotten") plus its observable consequence ("get_guidelines no longer returns it"), which cleanly separates it from record_learning and list_learnings.

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?

It establishes clear context for use by describing the effect on get_guidelines and points to list_learnings with `include_forgotten` as the way to still inspect forgotten entries. It stops short of an explicit "use this instead of X when..." statement, and there is no explicit guidance on when not to use it beyond the already-forgotten no-op case.

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