Skip to main content
Glama

compare-pages

Read-onlyIdempotent

Get a compact text diff showing changes between two versions of a wiki page. Accepts revision IDs, page titles, or supplied wikitext.

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
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.
toTextNoSupplied wikitext for the "to" side
toTitleNoWiki page title for the "to" side (latest revision is used)
fromTextNoSupplied wikitext for the "from" side
fromTitleNoWiki page title for the "from" side (latest revision is used)
toRevisionNoRevision ID for the "to" side
includeDiffNoInclude the diff body (default true). Set false for a cheap change-detection response.
fromRevisionNoRevision ID for the "from" side
Behavior5/5

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

Annotations already indicate readOnly, idempotent, non-destructive. The description adds important behavioral details: supported side types (revision ID, title, supplied wikitext), the rejection of text-vs-text, truncation at 50000 bytes with a trailing marker, and error behavior for missing titles/revisions. This is beyond what annotations provide.

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?

The description is well-structured with the main purpose first, followed by detailed usage. It is slightly long but every sentence adds necessary information. No redundancy or fluff.

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?

Given the complexity (8 parameters, no output schema), the description is thorough: it covers parameter semantics, truncation, change-detection mode, and error handling. It does not describe the exact return format, but that is acceptable due to the diff output being standard. The annotations and schema coverage further complete the picture.

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 the description adds critical semantics: it explains that each side can be a revision ID, page title, or supplied wikitext, and that both sides cannot be supplied wikitext. It also explains the effect of includeDiff=false, which is not fully captured in the schema description.

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 the verb ('returns'), the resource ('changes between two versions of a wiki page'), and the output ('compact text diff'). It distinguishes from sibling tools like get-page by explaining that this tool provides a diff, not the 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 tells when to use this tool (to get changes) and when to use an alternative ('For the full text of both sides, fetch with get-page instead'). Also describes the includeDiff=false option for cheap change-detection, and clarifies that text-vs-text is rejected and that nonexistent titles/revisions cause errors.

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