Skip to main content
Glama

Roll back page

rollback_site
Destructive

Instantly revert a live landing page to a previous version.

Use this when the user wants to undo a recent change or restore an earlier version of their page.

  • Call get_site first to see available version numbers

  • Only affects the production (live) slot

  • Version history: each plan keeps a set number of saved versions (Free: 10, Pro: 50, MAX: 200; Enterprise: unlimited). Past that number, a page's oldest saved versions leave history once a day and can't be rolled back to. The live version and the version behind the current preview link always stay.

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": {
      "siteId": "<siteId>",
      "versionNumber": "<versionNumber>"
    },
    "name": "rollback_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdYesThe ID of the page to roll back
versionNumberYesThe version number to roll back to

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • changedInput schema / properties / siteId / description
      Previous value: -"The ID of the site to rollback"New value: +"The ID of the page to roll back"
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond destructiveHint=true / idempotentHint=false by disclosing that only the live slot is touched, that preview links are unaffected, and the per-plan version retention windows (Free 10, Pro 50, MAX 200, Enterprise unlimited). The detail that the live version and the preview-backed version never expire is exactly the kind of caveat an agent needs before calling a destructive tool.

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?

The lead sentence is front-loaded and the bullets are scannable, with the prerequisite before the behavioral caveats. The retention-policy sentence is long, but every clause carries real information about which versions become unreachable.

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 2-parameter destructive tool with no output schema, this covers prerequisites, scope, and history limits well. It does not say whether the version currently live is itself preserved as a recoverable version, i.e. whether the rollback is reversible — a meaningful omission for a destructiveHint=true operation.

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; the description earns an extra point by explaining where versionNumber comes from (call get_site) rather than leaving the agent to guess a valid value. It adds no format hints for siteId, but the schema already covers both fields.

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 ('revert a live landing page to a previous version') and pins the scope to the production slot, which cleanly separates it from publish_site, unpublish_site, and the preview-creation siblings.

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 an explicit trigger ('when the user wants to undo a recent change or restore an earlier version') plus a prerequisite ('Call get_site first to see available version numbers'). It does not name a when-not case or an explicit alternative for preview rollback, so it stops just short of a 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.