Skip to main content
Glama

Roll back site

rollback_site
DestructiveIdempotent

Use when the user wants to undo the last update or go back to the previous version. Restores a prior version's content as the site's current content (records a new version). Content only: the slug, folder, visibility and any /lp address stay as they are now, so a rollback after a rename does not change the address (the old one keeps forwarding to the current one; set_site_slug puts it back). The share URL is unchanged and open viewers are offered a Refresh to it (a landing page shows it on its next load). Use list_versions to find the version_id. On a website this changes the public site now; ask first. A waiting preview must then be made again.

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": {
      "site_id": "<site_id>",
      "version_id": "<version_id>"
    },
    "name": "rollback_site"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesThe id of the site to roll back
version_idYesThe id of the version to restore (from list_versions)
workspace_idNoOptional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Optional: the workspace (the personal space or a Pro workspace) to act in, from list_workspaces. Omit to act in the token owner's own account."New value: +"Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for)."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Well beyond the annotations (destructiveHint=true, idempotentHint=true, readOnlyHint=false), it discloses that rollback is non-destructive in the versioning sense ('records a new version'), that it is content-only and leaves slug/visibility/address untouched, that the old address keeps forwarding, that open viewers are offered a Refresh to the unchanged share URL, and that a preview must be regenerated. These are exactly the consequences an agent needs before invoking a destructive-marked write.

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?

Front-loaded with the trigger sentence, then scope, then side effects, then prerequisites — a sensible order with no filler. It is dense with parentheticals ('the old one keeps forwarding to the current one; set_site_slug puts it back'), which are informative but slightly slow the read; a tighter structure would separate the warning from the plumbing detail.

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, state-changing write with no output schema, the description covers the trigger, the scope of what is and is not changed, the user-visible side effects (address forwarding, share URL, viewer refresh, preview invalidation), the dependency on list_versions, and the confirmation requirement. Nothing an agent needs in order to call this safely appears to be missing.

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 description coverage is 100%, including a thorough workspace_id explanation, so the baseline is 3. The description reinforces that version_id should come from list_versions, but adds no syntax, format, or edge-case meaning for site_id or workspace_id beyond what the schema already documents.

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?

The description names a specific verb and resource ('Restores a prior version's content as the site's current content') and immediately disambiguates it from neighbors by stating 'Content only: the slug, folder, visibility ... stay as they are now' and naming set_site_slug as the tool that changes the address. An agent can distinguish rollback_site from update_site, rename_site, and set_site_slug 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit trigger ('Use when the user wants to undo the last update or go back to the previous version'), explicit prerequisite chain ('Use `list_versions` to find the `version_id`'), and an explicit confirmation gate ('On a website this changes the public site now; ask first'). It also states the necessary follow-up action ('A waiting preview must then be made again'), which is the kind of sequencing guidance agents usually lack.

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.