Skip to main content
Glama

Undo

undo
Destructive

Put the site back as it was before a change, undoing it and every change since. Take the change id from history. The undo is itself a change, so it can be undone too.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenNoThe site token from create_site or the site's settings. Omit if your Authorization header carries it.
change_idYesFrom history

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / token / description
      Previous value: -"The site token from create_site or the owner page. Omit if your Authorization header carries it."New value: +"The site token from create_site or the site's settings. Omit if your Authorization header carries it."
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description adds the detail that matters most: the undo reverts the target change and every subsequent change, so the blast radius is larger than the name suggests. It also discloses reversibility ('The undo is itself a change, so it can be undone too'), which is behavior not derivable from the annotations.

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 short sentences, front-loaded with the action and its cascade scope, then the id source, then the reversibility caveat. Nothing is redundant and no sentence could be dropped without losing information.

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 two-parameter destructive tool with annotations and no output schema, the description covers action, scope, id provenance and reversibility. The only minor gap is that it does not indicate what the call yields (e.g., a new change id) or how to inspect the result afterward.

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 schema itself documents both token and change_id, so the schema already carries parameter meaning. The description only restates the id's source ('from history') without adding format or syntax detail, matching the baseline for fully documented schemas.

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 ('Put the site back as it was before a change') and, crucially, the scope of the revert: the named change plus every change since. An agent can tell this apart from a simple revert-last or from the read-only history sibling without opening any 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?

Tells the agent when to use it and where the required identifier comes from ('Take the change id from history'), which effectively routes to the history sibling. It does not state any when-not conditions or name other rollback alternatives, so it stops short of a full 5.

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