Skip to main content
Glama

Revert page to a revision

revert_page_revision
Destructive

Revert a page's draft to a previous revision. Creates a NEW draft revision whose content is copied from the given revision, making it the latest draft head. The given revision itself is not modified, and the published revision is unaffected until you publish. Every unpublished edit in the current draft is left behind.

Use get_page_revisions to find the revision to revert to (e.g. the currently published revision). To undo only the last few saves of the current draft, use revert_page_revision_to_version instead.

Input Schema

NameRequiredDescriptionDefault
projectIdYesThe project ID
revisionIdYesThe revision ID to revert to (from get_page_revisions or page.publishedRevisionId)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations: it discloses that the source revision is not modified, the published revision is unaffected until publish, and every unpublished edit in the current draft is left behind — that last point is the real consequence behind destructiveHint=true and it is stated plainly. It does not mention permission requirements or failure modes, so 4 rather than 5.

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?

Front-loaded with the core action and its non-obvious effect, then prerequisites, then the alternative. Every sentence carries distinct information — the mechanism, the immutability guarantees, the data-loss warning, and the routing hint — with no redundancy.

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 two-parameter, no-output-schema mutation guarded by a destructiveHint, the description supplies everything needed: what is created, what is preserved, what is lost, and how to locate the revisionId. No meaningful gap remains for an agent to call it safely.

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%, so both projectId and revisionId are already documented, and the schema even hints at the source ('from get_page_revisions or page.publishedRevisionId'). The description reinforces that provenance but adds no format or constraint detail beyond the schema, so baseline 3 applies.

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 ('Revert a page's draft to a previous revision') and immediately clarifies the mechanism — a NEW draft revision is created rather than the old one being restored. It explicitly distinguishes itself from both get_page_revisions and revert_page_revision_to_version, so an agent can route correctly without opening any schema.

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

Usage Guidelines5/5

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

Names the prerequisite lookup tool ('Use get_page_revisions to find the revision to revert to') with a concrete example, and names the alternative ('use revert_page_revision_to_version instead') together with the exact condition that selects it — undoing only the last few saves of the current draft. When/when-not is fully spelled out.

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.