Skip to main content
Glama

Restore page version

restore_page_version
Destructive

Replace a page's current text with an earlier version. The restore is saved as a new version and the replaced text remains in history, so the change can be undone.

Instructions

Replace a page's text with the text of an earlier version. The restore is saved as a new version, and the text it replaces stays in the history as its own version, so nothing is lost and a restore can itself be undone. Only the text is restored; the title stays as it is.

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": "<page>",
      "version": "<version>"
    },
    "name": "restore_page_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageYesPage UUID or "workspaceSlug/spaceSlug/pageSlug" path
versionYesVersion number to restore, from list_page_versions

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.11.0

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=false), the description explains the actual mechanics: the restore is saved as a new version, the replaced text remains in history, and the operation can itself be undone. That reframes what looks destructive in the annotations as reversible, which is exactly the kind of nuance 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences with the operation stated first, followed by reversibility and the text-only constraint. Nothing is padded, though the final sentence could have been merged into the first for even tighter front-loading.

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

Completeness4/5

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

For a two-parameter mutation with full schema coverage and an explicit reversibility guarantee, the definition is nearly complete. The one gap is what the call returns (no output schema and no described return value), which matters little but leaves the agent guessing on the response shape.

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%, and the schema already explains that `page` accepts a UUID or workspaceSlug/spaceSlug/pageSlug path and that `version` comes from list_page_versions. The description adds no additional parameter meaning, so the baseline of 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?

States a specific verb and resource ("Replace a page's text with the text of an earlier version") and immediately bounds the scope ("Only the text is restored; the title stays as it is"). It does not explicitly differentiate itself from the sibling restore_page, leaving an agent to infer that one restores a page while this restores a version's text.

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?

Usage is only implied: the agent can infer this is for reverting content to a prior version, and the schema points at list_page_versions for the version number. There is no explicit statement of when to prefer this over restore_page or get_page_version, and no prerequisites (permissions, version existence) are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.