Skip to main content
Glama

Restore a version

restore_version
DestructiveIdempotent

Bring back an earlier version of one of the owner's pages as its current one (Pro), keeping its link, name and lock; like update_page it returns the new version's status, which can be held too. Use it only for the owner's own pages, as they ask, under ShareHTML's rules: https://sharehtml.org/acceptable-use.

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": {
      "page_id": "<page_id>",
      "version": "<version>"
    },
    "name": "restore_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
page_idYesThe page’s id, as publish_page or list_pages gave it.
versionYesThe number of the earlier version to bring back; get_page gives the current version and how many are kept.

Output Schema

NameRequiredDescriptionDefault
idYes
urlYes
nameYes
titleYes
viewsYes
accessYes
listedYes
noticeNo
statusYes
invitedNo
reasonsNo
versionYes
expiresAtYes
updatedAtYes
versionsKeptNo
viewsThisMonthNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructive=true, idempotent=true and openWorldHint=true, so the safety profile is covered. The description adds real value with the plan gating (Pro), the preservation of link/name/lock, and the note that the returned status can be 'held' like update_page, but it does not state that the current version's content is replaced or whether the prior state is recoverable.

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-loads the core action in the first clause and folds conditions into a single follow-on sentence; the policy URL is the only element that could be trimmed if length mattered. Slightly dense but no wasted sentences.

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?

With an output schema, full annotation coverage and 100% schema coverage, most of the burden is already carried elsewhere. What the description still owes an agent is the blast radius of a destructive restore, which it gestures at ('as its current one') without saying the existing version is overwritten.

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 coverage is 100% and both parameter descriptions already explain provenance ('as publish_page or list_pages gave it'; 'get_page gives the current version and how many are kept'). The description adds nothing parameter-specific beyond that, so the baseline 3 applies.

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?

Specific verb and resource ('Bring back an earlier version ... as its current one') with scope qualifiers (owner's own pages, Pro). It implicitly separates itself from siblings by noting it preserves the link, name and lock, which a plain update_page would not, though it never states that contrast explicitly.

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 clear conditions: only the owner's own pages, only at their request, and only on the Pro plan, plus a pointer to the acceptable-use rules. It stops short of explicit when-not guidance or naming update_page as the alternative for editing the current version instead of restoring an old one.

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