Skip to main content
Glama

1ClickSiteAI

Restore a snapshot

rollback_snapshot
Destructive

Restores the whole site to an earlier snapshot, which discards every change made after it. Call list_snapshots first to choose a snapshot id. The first call writes nothing and returns the change sets that would be discarded; show that list to your user and call again with confirm: true only after they agree. Send base_version from your latest read of the site. Only the workspace's owner or an admin can restore. To undo one change instead, use rollback_change_set.

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": {
      "snapshot_id": "<snapshot_id>",
      "siteId": "<siteId>",
      "base_version": "<base_version>"
    },
    "name": "rollback_snapshot"
  }
}

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.
snapshot_idYesThe id that list_snapshots gave for the snapshot to restore.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description goes well beyond them: the first call is a non-writing preview that returns the change sets at risk, confirmation is gated on user approval, and restoration requires owner or admin rights. It also names the stale_state_version failure mode and its remedy, which the annotations cannot express.

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?

Five short sentences, front-loaded with the destructive consequence, then the prerequisite, the confirmation protocol, the version requirement, the permission constraint, and the sibling alternative. Nothing is padded and the ordering follows the order an agent would need to act.

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?

No output schema exists, and the description compensates by describing what the first call returns (the change sets that would be discarded) and how to proceed. For a destructive, permission-gated, two-phase mutation, the safety profile, prerequisites, and error recovery are all present.

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 sequencing meaning to confirm (never on the first call, only after user approval) and frames base_version as coming from the latest read. It stops short of adding format detail, but the dry-run/confirm interaction is genuine value beyond the schema.

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 ('Restores the whole site to an earlier snapshot') plus the blast radius ('discards every change made after it'), and explicitly contrasts with rollback_change_set. An agent can distinguish this from the sibling without opening either 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?

Gives an explicit prerequisite ('Call list_snapshots first'), a two-step protocol with the condition that gates the second call ('after they agree'), and a named alternative for the narrower case ('To undo one change instead, use rollback_change_set'). Both when-to-use and when-not-to-use are covered.

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