Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as AttachPage.

Restore version

restore_version
Destructive

Make an earlier published version of a page live again for everyone, right away. The version that was live stays in the history and can be restored back. Confirm with the user first. Pass expectedCurrentId (the live version from list_versions) so a page that changed in the meantime is not overwritten.

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>",
      "deploymentId": "<deploymentId>"
    },
    "name": "restore_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdYesPage id (siteId) returned by a publish tool or list_pages.
deploymentIdYesThe version to make live, from list_versions.
expectedCurrentIdNoOptional: the version you saw as live. A page changed since then is refused.

Output Schema

NameRequiredDescriptionDefault
siteIdNoPage id.
restoredNotrue when the version was made live.
deploymentIdNoThe version that is live now.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the destructiveHint/openWorldHint annotations by explaining that the change is immediate and public, that the previous live version remains in history and is itself restorable, and that a user confirmation is expected. It also documents the optimistic-concurrency refusal behavior, which the annotations cannot convey.

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?

Four tight sentences, front-loaded with the effect and scope, then reversibility, then the safety instructions. No filler or restatement of the title.

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?

With annotations covering the safety profile, a full output schema, and fully documented parameters, the description supplies exactly the missing pieces: immediacy, public visibility, reversibility, and the confirmation requirement.

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 baseline is 3, but the description adds real meaning: it names expectedCurrentId's source (the live version from list_versions) and its purpose (prevent overwriting a page that changed in the meantime). deploymentId's source is reinforced but not expanded.

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 ("Make an earlier published version of a page live again") plus scope ("for everyone, right away"), which clearly separates it from publish_page or list_versions.

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 concrete preconditions: confirm with the user first, and pass expectedCurrentId from list_versions. It points at list_versions as the source of the version id, but does not explicitly compare against the publish tools as an alternative action.

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