Skip to main content
Glama

Compare two versions

diff_page_versions
Read-only

Compare two versions of a Wiki.js page as a unified diff, or compare a version against the live page. Get a clear view of changes in one call.

Instructions

Returns a unified diff between two versions of a page — or between one version and the page as it is now, if to_version is omitted. Answers "what changed here" in one call instead of two full page bodies.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
page_idYesNumeric Wiki.js id.
to_versionNoThe newer version id. Omit to compare against the live page.
from_versionYesThe older version id, from list_page_history.
context_linesNoUnchanged lines shown around each change (default 3).
Behavior3/5

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

Annotations already declare readOnlyHint=true, covering the safety profile. The description adds behavioral context: it returns a unified diff, treats an omitted to_version as a comparison against the live page, and collapses two page-body reads into one call. It doesn't discuss output formatting details or limits, so a 3 is appropriate.

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 dense, front-loaded sentences with no filler. The first sentence states the core behavior and the optional mode; the second justifies the tool's value without repeating the schema.

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 the readOnly annotation, complete parameter schema, and simple scalar inputs, the description supplies enough context for correct invocation. With no output schema, naming the result as a 'unified diff' and covering the live-page comparison makes the return behavior sufficiently clear.

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 the baseline is 3 and the description need not document parameters. The one parameter behavior it mentions (omitting to_version compares with the live page) is already present in the schema's to_version description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly identifies the operation: returns a unified diff between two page versions, with an optional live-page comparison. It doesn't name a sibling explicitly, but the verb+resource and the 'instead of two full page bodies' phrase make the purpose unambiguous compared with get_page_version and list_page_history.

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?

The description gives a clear use case — answering 'what changed here' efficiently — and implicitly contrasts with fetching two full page bodies. It stops short of naming sibling tools or stating when not to use it, so the guidance is good but not exhaustive.

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/ni-c/wikijs-mcp'

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