Skip to main content
Glama

web_compare

Read-only

Compare two web pages — Compare the visible text of two web pages: verdict IDENTICAL, NEAR_DUPLICATE, SIMILAR, SAME_TOPIC_DIFFERENT_TEXT or DIFFERENT, text similarity (Jaccard of word 3-shingles), vocabulary overlap, line similarity, lines found only in each page (up to 25 each, with counts), distinctive words of each page, titles and word counts. Useful for duplicate-content checks, mirror and copy detection, and comparing two versions of a page (staging vs live). Pass url1= and url2=. Price: $0.004 USDC (Base, via 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": {
      "url1": "<url1>",
      "url2": "<url2>"
    },
    "name": "web_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
url1Yeshttps://example.com
url2Yeshttps://example.org

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, and the description adds real value beyond them: the x402 pricing ($0.004 USDC on Base), the text-based comparison scope ("visible text", Jaccard of word 3-shingles), and the truncation limit (up to 25 unique lines per page with counts). It stops short of saying what happens when a URL is unreachable, non-HTML, or behind a paywall, which matters for an open-world fetch 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?

Front-loaded with the verb and the verdict taxonomy, then metrics, then use cases, then price — a sensible ordering. The middle clause is a long comma-spliced run-on listing outputs, which is dense but each element is informative.

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?

With no output schema, the description carries the return-value burden and does it well by enumerating verdicts, similarity metrics, and the capped unique-line lists. It is nearly complete for a two-parameter tool; the remaining gap is error/edge-case behavior on unfetchable pages.

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 100%, so baseline is 3; the schema itself only supplies example values, and the description adds just "Pass url1= and url2=" plus the framing that both are page URLs to compare. No syntax detail (redirects, schemes, max size, trailing slashes) is added, so it neither compensates for nor extends the schema.

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 ("Compare the visible text of two web pages") and enumerates the exact verdict vocabulary, so an agent knows precisely what is produced. It does not explicitly distinguish itself from the closest sibling, web_change_check, which could also be used to compare two versions of a page (staging vs live) — a use case this description itself names.

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?

Gives concrete when-to-use contexts: duplicate-content checks, mirror and copy detection, and version comparison (staging vs live). It offers no exclusions or named alternatives, so the agent must infer that single-page analysis belongs to siblings like web_extract or web_keyword_density.

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.

Resources