Skip to main content
Glama

Retract a fact

retract
DestructiveIdempotent

Remove a wrong fact from workspace search and brief results while preserving its history; use update_fact instead when the fact only needs correcting.

Instructions

Retract a fact in this workspace that is wrong, so search and the brief stop returning it. Prefer update_fact when the fact only needs correcting. The fact and its history are kept and the owner can restore it. Needs the token's delete scope. Returns ok, or error: not found, forbidden.

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": {
      "fact_id": "<fact_id>"
    },
    "name": "retract"
  }
}

Input Schema

NameRequiredDescriptionDefault
fact_idYesThe fact's id, as search returns it.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds context annotations cannot carry: the fact and its history are kept and the owner can restore it, so 'destructive' means soft-retraction rather than permanent loss. It also states the required delete scope and enumerates the error cases. The only gap is that it doesn't discuss idempotency or repeated-retract behavior.

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?

Four tight sentences, front-loaded with the effect and the alternative, then reversibility, then auth and returns. Nothing is redundant with the title and every clause carries decision-relevant information.

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 one-parameter tool, the description covers purpose, routing, reversibility, permission requirement, and failure modes. An output schema exists, so the brief return enumeration is a bonus rather than a necessary burden.

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% and the single fact_id parameter is documented there as 'the fact's id, as search returns it'. The description adds no format, sourcing, or validation detail beyond that, so the baseline 3 applies.

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 (retract) plus the resource (a fact in this workspace) and the observable effect (search and the brief stop returning it). This is clearly distinguishable from update_fact, which is named in the same sentence.

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?

Explicitly routes the agent: 'Prefer update_fact when the fact only needs correcting' gives both the alternative and the condition that selects it. Combined with 'that is wrong', the agent knows this is the escalation path when the fact shouldn't exist at all, not a correction path.

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