Skip to main content
Glama

Diff Page

diff_page
Read-only

Compare two versions or snapshots of a page and return a unified diff to show what changed.

Instructions

Show what changed in a page between two points as a unified diff: 'current', a version from list_page_history, or a snapshot from list_snapshots. By default from_version is compared with the current body.

Input Schema

NameRequiredDescriptionDefault
pageYesPage id, slug id or Docmost page URL.
to_versionNo'current', a version id from list_page_history, or a snapshot id from list_snapshots.current
from_versionYes'current', a version id from list_page_history, or a snapshot id from list_snapshots.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.1/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 safety is covered. The description adds useful behavioral detail beyond the schema: it returns a unified diff and defaults to comparing from_version with the current body. It omits edge cases (e.g., missing versions, large diffs) but is solid given the annotation coverage.

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 sentences, zero waste, with the core purpose front-loaded and the default behavior appended. Every sentence earns its place.

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?

With an output schema present, return-value explanation is unnecessary, and readOnly/openWorld annotations cover the safety profile. The description supplies the endpoint semantics and default behavior needed for correct invocation.

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 schema already documents all three parameters with identical wording. The only addition is the default-behavior note ('by default from_version is compared with the current body'), which is minor. Baseline 3 is appropriate when the schema carries the parameter semantics.

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?

The description gives a specific verb and resource: it shows what changed in a page between two points as a unified diff, which is clearly distinct from siblings like get_page_version or list_page_history. It does not explicitly state which sibling it replaces, but the 'unified diff' framing alone distinguishes it.

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?

It explains the accepted inputs for both endpoints ('current', a version from list_page_history, or a snapshot from list_snapshots) and states the default comparison behavior. It doesn't give explicit when-not-to-use guidance or name alternative tools for related tasks, but the context is clear enough to select it confidently.

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