Skip to main content
Glama

1ClickSiteAI

Undo a change set

rollback_change_set
Destructive

Undoes one earlier change set by its id, as a change set of its own, and returns the new change set id and the site's state_version. The ids come from the answers of apply_change_set and set_seo. Send base_version from your latest read of the site, or the state_version of the last answer. If a later change touched the same content, nothing is written and the answer is rollback_conflict with the later change set's id: do not retry, tell your user, and offer to make the edit by hand with apply_change_set. It also refuses a change set that was undone already or cannot be undone, and says why. Undoing a change that created a page deletes that page, so it needs both sites:write and sites:delete. The first call writes nothing and returns the change set that would be undone; show it to your user and call again with the same arguments and confirm: true only after they agree. To undo your own mistake in the same request, send apply_change_set with the right values instead.

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_set_id": "<change_set_id>",
      "siteId": "<siteId>",
      "base_version": "<base_version>"
    },
    "name": "rollback_change_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdYesSite id from list_sites or create_site.
confirmNoSet true only after your user approved the list from your previous call to this tool. Never set it on the first call.
base_versionYesThe state_version from your latest get_state or get_schema result for this site. A stale_state_version error means the site changed since: read again.
change_set_idYesThe id that apply_change_set, set_seo, or the change card gave for the change to undo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond destructiveHint=true and idempotentHint=false, the description discloses the two-phase flow (first call writes nothing and returns a preview; second call requires confirm:true), the permission requirements sites:write plus sites:delete, the page-deletion side effect, conflict/refusal semantics, and the return payload (new change set id and state_version). This is substantially more than the annotations convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the undo-as-change-set mechanism are front-loaded, and each clause carries operational value. It is dense and long for a four-parameter tool, with base_version guidance spread across two separate sentences, but there is little filler.

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 destructive, non-idempotent mutation with no output schema, the description covers consequences, permissions, conflict handling, the confirmation handshake, and return values. An agent can execute the full two-call flow correctly without consulting anything else.

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 the baseline is 3, but the description adds real meaning: base_version should come from the latest site read or the prior answer's state_version, and confirm must never be set on the first call. It does not add formation detail about change_set_id beyond what the schema already states, which keeps it from a 5.

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?

"Undoes one earlier change set by its id, as a change set of its own" names a specific verb, resource, and mechanism (rollback-as-new-change-set), and it immediately distinguishes the operation from apply_change_set by naming that sibling as the alternative for same-request fixes.

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?

Explicit when-to-use (undo a change that was previously applied, ids sourced from apply_change_set/set_seo answers) and when-not (conflict on later overlapping edits: do not retry; undo your own mistake in the same request: use apply_change_set instead). The guidance also specifies a two-step confirmation protocol rather than leaving sequencing to inference.

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