Skip to main content
Glama

Correct a fact

update_fact
DestructiveIdempotent

Correct an outdated or imprecise fact by replacing its text or changing an open thread's status between current and closed, while preserving the previous text in history.

Instructions

Correct a fact in this workspace: replace its text, or set an open thread's status to closed (done) or back to current. Use it when you learn a fact is outdated or imprecise; use retract when it is simply wrong. The previous text is kept in the fact's history and the owner can restore it. Needs the token's update scope. Returns the fact's new version, or error: not found, invalid input, 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": "update_fact"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoThe corrected text, at most 20000 characters.
statusNocurrent or closed; closed applies to open threads only.
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.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description adds the crucial mitigation: the previous text is retained in history and the owner can restore it. It also discloses the auth requirement ('needs the token's update scope') and the error surface (not found, invalid input, forbidden) plus the returned version.

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?

Front-loaded with the action, then the trigger/alternative, then behavioral guarantees, then return and error values. Four dense clauses, no filler, and the colon-scoped list keeps the two correction modes scannable.

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 mutation tool with an output schema already present, the description covers everything an agent needs: what changes, what is preserved, required scope, and failure modes. Nothing material is left to inference.

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 text, status, and fact_id are already documented in the schema. The description only adds the small gloss that 'closed' means done and that the change is reversible for text; it does not add format, length, or validation detail beyond the schema. Baseline 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?

States a specific verb and resource ('Correct a fact') plus the two concrete modes of correction (replace text, flip an open thread's status between closed/done and current). It explicitly separates itself from the 'retract' sibling, so an agent can pick the right tool 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 an explicit trigger ('when you learn a fact is outdated or imprecise') and an explicit alternative with its own condition ('use retract when it is simply wrong'). That is a full when/when-not routing rule rather than implied usage.

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