Skip to main content
Glama

Retract a fact

cortex_retract
Destructive

Remove a fact from the cortex for good, with a note saying why. It stops appearing in answers immediately. Give the fact's id (from cortex_facts) and the reason. On a shared team brain, a member's retraction of a live fact goes to the team's admins as a request instead; the fact is marked disputed until they decide. Facts are never edited in place: to correct one, save the corrected claim first, then retract the old one. A new claim that looks like it replaces an older one also files a card for the user.

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>",
      "reason": "<reason>"
    },
    "name": "cortex_retract"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy it is being removed — kept in the cortex's audit log.
fact_idYesThe id of the fact to remove, from cortex_facts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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, so the bar is lower, yet the description adds substantial context beyond them: immediate removal from answers, escalation to team admins with the fact marked disputed, and the audit-log reason. It stops short of saying whether the removal is reversible or what the call returns, which matters for a destructive operation.

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?

Five short sentences ordered by importance: what it does, the immediate effect, the required inputs, then the two conditional behaviours. No filler, though the final sentence about replacement cards is the most marginal.

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 two-parameter destructive tool with no output schema, the description covers the side effects, the team-admin escalation path, the disputed state, and the audit trail. Nothing an agent needs in order to call it correctly is missing.

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 both parameters are already documented, and the description mainly restates them ('give the fact's id (from cortex_facts) and the reason'). It does add a little sourcing guidance by naming where the id comes from, but nothing about format or edge cases beyond the schema.

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 ('Remove a fact from the cortex for good') plus the scope of permanence, and explicitly distinguishes retraction from editing ('Facts are never edited in place'). An agent can tell this apart from cortex_add_fact or cortex_facts without opening the schema.

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 a concrete correction workflow (save the corrected claim first, then retract the old one), which routes the agent away from misuse. It also explains the team-brain variant and when a retraction becomes a request, but it never explicitly names the sibling tool used to save the replacement claim, leaving a small inference gap.

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