Skip to main content
Glama

Read a revision

get_revision
Read-only

Read an earlier saved version of a post or page—title, excerpt, and full content—to compare it with the current version before restoring it.

Instructions

Read one revision (an earlier saved version) of a post or page: its title, excerpt and full content, as editable source by default. Use it to compare an old version with the current one (get_post) before restore_revision. Get the revision ID from get_revisions.

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": {
      "post_id": "<post_id>",
      "revision_id": "<revision_id>"
    },
    "name": "get_revision"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNo'raw' (editable source, the default), 'rendered' (HTML), or 'text' (plain text)raw
post_idYesPost or page ID
post_typeNoPost type of post_id: 'post' (the default), 'page', or an allowed custom post type.post
revision_idYesRevision ID, from get_revisions

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.30.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the description's job is to add context, which it does by specifying the returned fields and that the default format is editable source. It stops short of discussing pagination or size limits on full content, a minor gap for a read tool with a fully covered schema.

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?

Two tight sentences with zero filler; the purpose and return payload come first, followed by the routing guidance. Every clause carries information an agent needs to select and invoke the tool.

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 read-only tool with no output schema, the description covers what is retrieved, the default representation, the prerequisite ID source, and the intended downstream use. Nothing material for correct invocation is missing.

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 all four parameters, including both enums and the format default, are already documented in the schema. The description only echoes the "editable source by default" behavior of format and points at get_revisions for revision_id, adding little beyond the structured fields. 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 ("Read one revision") plus what it returns (title, excerpt, full content) and clarifies revisions as "an earlier saved version". This cleanly separates it from get_post (current version) and get_revisions (ID lookup) without requiring the agent to open 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?

Gives explicit workflow guidance: use it to compare an old version with the current one (get_post) before restore_revision, and states where the revision_id comes from (get_revisions). Both the alternative read tool and the downstream mutation tool are named with the condition that selects them.

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