Skip to main content
Glama

Restore a Page revision

restore_page_revision
Destructive

Put an earlier revision's title, emoji, cover, Type, properties, and body back as a new revision, keeping everything after it in history. The Page's location and trash state stay as they are, and a trashed Page's revisions can't be restored until the Page is. The current revision can't be restored. expectedVersion is the Page's current version. textOnly restores only the title and body, for when the earlier properties no longer fit (INVALID_PROPERTIES, TYPE_NOT_ACCESSIBLE, or FILE_NOT_ACCESSIBLE).

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": {
      "workspaceId": "<workspaceId>",
      "pageId": "<pageId>",
      "revisionId": "<revisionId>",
      "expectedVersion": "<expectedVersion>"
    },
    "name": "restore_page_revision"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdYes
textOnlyNoRestore only the title and body, keeping the current emoji, cover, Type, and properties.
revisionIdYes
workspaceIdYes
expectedVersionYesThe Page's current version.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only tell the agent this is destructive, non-idempotent, and not read-only. The description adds substantive behavior beyond that: the restore creates a *new* revision rather than mutating history, everything after it is preserved, Page location and trash state are left untouched, and expectedVersion acts as a concurrency guard against the Page's current version.

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?

The primary action is front-loaded in the first clause, followed by scope guarantees, then the two prohibitions, then per-parameter notes. Every sentence carries distinct information — even the error-code parenthetical is actionable for the agent rather than filler.

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?

For a destructive revision-restore tool the definition covers what is changed, what is preserved, what makes it fail, and how to recover with textOnly. An output schema exists, so return values need not be described, and nothing an agent needs before invoking it is missing.

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 only 40%, so the description must carry weight, and it does: expectedVersion is defined as the Page's current version, and textOnly is explained both by effect (only title and body) and by motivation (the three error codes that make a full restore fail). workspaceId and pageId remain undocumented, but their meaning is evident from the tool context.

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?

The description uses a precise verb ('Put ... back as a new revision') on a specific resource (an earlier Page revision) and enumerates exactly what is restored: title, emoji, cover, Type, properties, and body. The repeated 'Page' framing separates it cleanly from the View-oriented siblings restore_view_revision and read_view_revision without needing to name them.

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?

It states clear when-not conditions: the current revision can't be restored, and a trashed Page's revisions can't be restored until the Page itself is. It also gives a conditional trigger for textOnly (when the earlier properties no longer fit, with the three specific error codes). It doesn't route to a sibling alternative, but the Page/View distinction is already explicit in the description.

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