Skip to main content
Glama

Web Diff

web_diff
Read-onlyIdempotent

Fetch a page now and compare it with the previous snapshot of the same URL, returning whether it changed and a unified diff (no LLM). When to use: monitoring a page for updates - prices, docs, policy pages, SEO titles/meta; first call stores the baseline, later calls return added/removed lines. Do not use: for one-off reading (web_fetch) or structured fields (web_extract_schema). Returns: {ok, url, baseline, changed, diff, added_lines, removed_lines, previous_ts, current_ts, title, hash, chars, fetched_cached, took_ms, _metering}. fresh=true (default) adds a cache-busting query to bypass the 6h page cache; pass fresh=false to compare cached content. Snapshots are kept per URL in SQLite (latest only). Metered: uses the same shared free pool (10 free calls/day per IP), then 1 credit per call over x402.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "web_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe http(s) page URL.
freshNoBypass the page cache with a cache-busting query. Default true.
max_charsNoCompare at most this many chars (500-12000). Default 4000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

The annotations only declare read-only/open-world/idempotent safety traits, while the description adds the genuinely non-obvious behavior: first call stores the baseline and later calls return added/removed lines, snapshots are kept per URL in SQLite with latest-only retention, a 6h page cache can be bypassed via fresh, and metering is 10 free calls/day per IP then 1 credit per call. It also states no LLM is involved and enumerates the response fields, none of which the annotations convey.

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 the core purpose, then when/when-not, then returns, then parameter and pricing notes in a scannable order. The enumerated return-field list is long, but since there is no output schema it earns its place; a few phrases could still be tightened.

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?

For a fetcher that mutates snapshot state and is metered, the description covers baseline creation, per-URL snapshot retention, caching, response shape, and cost. With no output schema present, the return-value enumeration fills exactly the right gap.

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

Parameters4/5

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

Schema coverage is 100%, so parameters are documented regardless; the description still adds real meaning by explaining that fresh=true appends a cache-busting query to bypass the 6h cache and fresh=false compares cached content. max_chars is left entirely to the schema, so it falls short of a perfect score.

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 opening sentence gives a specific verb and result ('Fetch a page now and compare it with the previous snapshot of the same URL, returning whether it changed and a unified diff'), which is unmistakably different from web_fetch or web_extract_schema. An agent can pick this over sibling fetchers without reading the schema.

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?

Explicit routing: 'When to use: monitoring a page for updates - prices, docs, policy pages, SEO titles/meta' and 'Do not use: for one-off reading (web_fetch) or structured fields (web_extract_schema)'. Both the positive case and the negative cases name the competing tools.

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.