Skip to main content
Glama

page_diff

Monitor a page for changes: returns normalized text + SHA-256 content_hash; pass previous_text (or previous_hash) from an earlier call to get changed flag and added/removed lines.

Input Schema

NameRequiredDescriptionDefault
urlYes
selectorNoOptional #id to limit to one element
previous_hashNo
previous_textNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

No annotations, so the description carries the load: it discloses that the tool fetches a live page, normalizes the text, and hashes it, which is meaningful behavioral context. It says nothing about network/auth requirements, rate limits, JS-rendered content, or failure modes, leaving real gaps for a fetching tool.

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?

A single dense sentence that front-loads the purpose and then the return/usage contract. Every clause carries information; only the parenthetical alternative could be tightened.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description usefully names the return fields (text, hash, changed, added/removed lines). However, it omits what the first call returns when no baseline exists, and how url/selector interact, which an agent needs to call it correctly.

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 coverage is only 25% (only selector is documented), so the description must compensate: it does explain the purpose of previous_text and previous_hash and that either may be used. It does not clarify mutual exclusivity, precedence, the 250,000-char cap on previous_text, or how url is scoped.

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?

States a specific verb and resource ("Monitor a page for changes") and immediately describes what the call returns (normalized text + SHA-256 content_hash). It is distinguishable from page_to_json and site_audit by the change-detection framing, though no sibling is named explicitly.

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?

Explains the two-phase workflow clearly: call first, then re-call with previous_text or previous_hash from an earlier call to obtain the changed flag and added/removed lines. It does not say when to prefer this over page_to_json or site_audit, so no explicit exclusions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.