Skip to main content
Glama

restore_page_version

Destructive

Replace the contents of target.draftId with an accessible saved version. Supply version. Does not publish.

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": {
      "target": "<target>"
    },
    "name": "restore_page_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceNoSource for save. Defaults to working; live saves the currently published content.
targetYesTarget page resource; kind must be page.
versionNoSaved version name for save or restore. Save requires a new name; live and draft: names are reserved.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / target / properties / designId
      Added value: +{
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / target / properties / kind / enum
      Previous value: -[
      -  "page",
      -  "email"
      -]New value: +[
      +  "page",
      +  "email",
      +  "wallet",
      +  "apple-wallet",
      +  "google-wallet"
      +]
  2. Changed2 schema fields changed
    • removedInput schema / properties / expectedRevision
      Removed value: -{
      -  "description": "Latest page snapshot revision; required for every action except list.",
      -  "type": "string"
      -}
    • removedInput schema / properties / target / properties / organizationId
      Removed value: -{
      -  "minLength": 1,
      -  "type": "string"
      -}
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructive=true, readOnly=false, idempotent=false. The description adds real context beyond that: the blast radius is confined to the draft (not the live/published document), an access check applies ('accessible' version), and the caller must actually provide a version even though the schema only requires 'target'. It does not say that existing draft content is lost or what the response contains.

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?

Three short sentences, front-loaded with the action and destination, with zero filler. 'Supply version.' is telegraphic to the point of feeling clipped, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive replace with no output schema, the definition covers destination, required input, and the non-publish boundary, but omits what happens to the prior draft contents (overwritten/lost?) and whether the replaced version is recoverable. With destructiveHint already set, these residual gaps keep it at minimally adequate rather than complete.

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, and the description earns above that by pinning the target to 'target.draftId' specifically — valuable given the nested target enum admits many id fields (pageId, emailId, eventId, designId, pageSlug) — and by characterizing version as a saved version name rather than an arbitrary id. The 'source' parameter (working/live) is untouched, but its schema documentation is adequate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (replace/restore) and a precise destination (target.draftId) from an 'accessible saved version'. 'Does not publish' bounds the effect. It does not name the inverse sibling save_page_version or list_page_versions, so differentiation is only implied by the name pair.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

'Supply version' tells the caller the version argument is operationally required (beyond the schema's single required 'target'), and 'Does not publish' hints that publishing is a separate follow-up step. There is no explicit guidance on when to pick restore vs save, or that version names come from list_page_versions.

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.