Skip to main content
Glama

compare-pages

Read-onlyIdempotent

Compare two revisions of a wiki page and retrieve the differences as a compact text diff. Optionally skip the diff for a quick change-detection response.

Instructions

Returns the changes between two versions of a wiki page as a compact text diff. Each side accepts a revision ID, page title (latest revision), or supplied wikitext; text-vs-text is rejected. Only the changes are returned over the wire. For the full text of both sides, fetch with get-page instead. If a title or revision ID does not exist, an error is returned. Set includeDiff=false for a cheap change-detection response that skips diff rendering and returns just the change flag, revision metadata, and size delta. Diff output is truncated at 50000 bytes by default with a trailing marker; a narrower revision range or includeDiff=false avoids truncation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromRevisionNoRevision ID for the "from" side
fromTitleNoWiki page title for the "from" side (latest revision is used)
fromTextNoSupplied wikitext for the "from" side
toRevisionNoRevision ID for the "to" side
toTitleNoWiki page title for the "to" side (latest revision is used)
toTextNoSupplied wikitext for the "to" side
includeDiffNoInclude the diff body (default true). Set false for a cheap change-detection response.
wikiNoWiki to target, as a key from the mcp://wikis/ resources (e.g. en.wikipedia.org), or the full mcp://wikis/ URI. Omit to use the default wiki.
Behavior5/5

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

Annotations already indicate read-only, idempotent, non-destructive. Description adds important behavioral details: truncation at 50000 bytes, rejection of text-vs-text, and fallback behavior for missing titles or revisions. No contradictions with annotations.

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-loaded with main purpose, then systematically covers inputs, limitations, and options. Slightly verbose with multiple clauses, but each sentence contributes meaningful information. Could be more compact without losing content.

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?

Given 8 parameters, no output schema, and moderate complexity, the description covers all essential aspects: input forms, error cases, truncation behavior, cheap detection mode, and cross-reference to sibling tool. Leaves no significant gap for an AI to misuse the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but description adds value by explaining how the three input options per side work and that text-vs-text is invalid. It also clarifies the role of includeDiff and wiki parameters beyond schema descriptions.

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 clearly states 'Returns the changes between two versions of a wiki page as a compact text diff', specifying the verb (returns), resource (changes between page versions), and format (compact text diff). It distinguishes from sibling 'get-page' by noting it only returns changes, not full text.

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?

Explicitly mentions acceptable inputs (revision ID, page title, supplied wikitext) and rejects text-vs-text. Advises using 'get-page' for full text. Covers error conditions (non-existent title/revision) and the cheap change-detection option with includeDiff=false.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ProfessionalWiki/MediaWiki-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server