Skip to main content
Glama

Retire an entry or finish a task

retire_entry
Idempotent

Retire a decision, lesson, guardrail or note that is no longer true, so recall stops returning it, or mark a task done. Give its id and, for anything but a finished task, a short reason. For a task you claimed, give the claim_token claim_task returned: while a claim lasts, only its holder can mark the task done. To replace an entry with a new one, use record_entry with supersedes instead. Retiring again changes nothing. Free. Returns the entry with its new status.

Free to call.

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": {
      "project": "<project>",
      "id": "<id>"
    },
    "name": "retire_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe entry (KNOW-n) or task (TASK-n).
reasonNoWhy it no longer holds.
projectYesThe project, usually the repository ("owner/repo" or a short name). Entries are kept per project.
claim_tokenNoFor a claimed task: the claim_token claim_task returned. Needed while the claim lasts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / claim_token
      Added value: +{
      +  "description": "For a claimed task: the claim_token claim_task returned. Needed while the claim lasts.",
      +  "pattern": "^[0-9a-fA-F-]{36}$",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations it discloses the claim-lock rule ('while a claim lasts, only its holder can mark the task done'), the return value ('Returns the entry with its new status'), and cost. It is consistent with idempotentHint ('Retiring again changes nothing') and does not contradict destructiveHint=false. It stops short of saying whether a retirement can be undone, which is the main remaining 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.

Conciseness4/5

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

Front-loaded with the core action and effect, then conditions and alternatives in a tight sequence. The trailing 'Free to call.' duplicates the earlier 'Free.' and is the one removable sentence.

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?

No output schema exists, yet the description still tells the agent what comes back (the entry with its new status). Preconditions, alternatives, idempotency, and cost are all covered for a 4-parameter mutation tool.

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 baseline is 3, but the description adds genuinely new meaning: `reason` is needed 'for anything but a finished task' (the schema marks it optional with no such conditional) and `claim_token` applies only to claimed tasks. That conditional logic is not derivable from the schema alone.

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 enumerates the affected resources ('a decision, lesson, guardrail or note', plus tasks) and the observable effect ('so recall stops returning it'). It also explicitly contrasts with the sibling record_entry for the replace case, so an agent can separate the two tools without opening either schema.

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 explicit when-to-use ('no longer true' entries, 'mark a task done') and names the alternative path ('To replace an entry with a new one, use record_entry with `supersedes` instead'). It also spells out the precondition for the claim_token path and what happens on repeat calls ('Retiring again changes nothing').

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