Skip to main content
Glama

Undo a change

undo_change
Idempotent

Put back a reversible change you made (a stage move that emailed nobody, a note, a rating, a shortlist, a tag) using the undo.change_id it returned. Refused if someone has changed the same thing since, or if undoing would email the candidate. An email that was sent can never be undone.

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": {
      "change_id": "<change_id>"
    },
    "name": "undo_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
change_idYesundo.change_id from the write that made the change.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the provenance requirement for the ID, two server-side refusal conditions, and the email side-effect guard, which is real behavioral context an agent cannot get from the structured fields. It is consistent with destructiveHint=false and openWorldHint=false; idempotency is only implicitly supported by the 'refused if changed since' rule rather than explained.

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 sentences, front-loaded with what gets undone, then the eligibility constraints, then the absolute limitation about sent email. Every sentence carries a distinct constraint and there is no repetition of the title or schema.

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 one-parameter mutation tool with no output schema, the description covers what qualifies, the token required, and all the failure modes that matter. The only gap is that it does not say what a successful call returns (e.g., the reverted state or the new change_id), which is minor but not covered by an output schema.

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 already 100%, so the baseline is 3, and the description earns an increment by explaining where the value comes from ('the undo.change_id it returned' from the originating write) — a provenance fact the schema property does not state. The uuid format and required status come from the schema, so no further detail is needed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb ('Put back') and enumerates exactly which change types qualify (stage move that emailed nobody, note, rating, shortlist, tag), so the scope is unambiguous. It does not name a sibling such as cancel_change or change_status to contrast with, which is the only thing keeping it from a 5.

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 states the entry condition clearly ('using the undo.change_id it returned') and gives two explicit refusal conditions: the target changed since, or undoing would email the candidate. It also states a hard exclusion ('An email that was sent can never be undone'), which tells the agent when not to bother calling. No sibling is named as an alternative path.

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