Skip to main content
Glama

web_tools_visual_diff

Visual regression check: screenshot a page and compare it with another URL (preview against production) or with an earlier screenshot. Returns the share of changed pixels, a same/different verdict, boxes around the changes and a diff image. Price: $0.04 USDC via x402, charged only on success. Part of Web tools: A real browser for agents: screenshot any page on desktop or phone, read a page as clean Markdown, print a URL or HTML to PDF, draw HTML to an image, make social cards, audit a page for SEO, speed, accessibility and broken links, and compare two versions of a page pixel by pixel..

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_tools_visual_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe page to check (the new version).
darkNo
hideNoCSS selectors to hide in both: timestamps, carousels, ads, anything that changes on its own.
deviceNodesktop 1280x800, laptop 1440x900, tablet 810x1080, phone 390x844 with a mobile browser identity.desktop
waitMsNoExtra wait after the page has loaded, for animations or late content.
waitForNoCSS selector that must be visible before the capture.
fullPageNo
thresholdNo
baselineUrlNoPage to compare against: production against a preview deploy, for example.
failPercentNoAbove this share of changed pixels the pages count as different.
baselineImageNoOr an earlier screenshot as base64 PNG, taken with the same device and settings.
baselineImageUrlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the whole burden, and it does well: it discloses the return payload (changed-pixel share, same/different verdict, change boxes, diff image) and the billing model — $0.04 USDC via x402, charged only on success. It omits what happens when a page fails to load or when no baseline is supplied, and says nothing about auth or rate limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The functional sentence is front-loaded and efficient, but the trailing 'Part of Web tools: ...' catalog boilerplate is long and restates 'compare two versions of a page pixel by pixel,' which the first sentence already covered. The definition is roughly twice the length it needs to be.

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?

For a 12-parameter tool with no output schema, the description covers the important unknowns: what is returned, what it costs, and when billing occurs. The main gap is that it never states a baseline (baselineUrl or baselineImage) must accompany url, which is essential to invoking 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 67%, so the schema documents most parameters. The description adds conceptual framing for the two baseline inputs (a comparison URL versus a stored PNG) but does not explain threshold, failPercent, dark, hide, waitFor or fullPage, leaving the agent to rely entirely on the schema for those.

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?

It states a specific verb and resource — screenshot a page and compare it against another URL or an earlier screenshot — and names the two comparison modes upfront. That distinguishes it from web_tools_screenshot (capture only) and from image_tools_diff, which compares supplied images rather than live pages.

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 parenthetical 'preview against production' and the 'earlier screenshot' mode give concrete situations where this tool applies. It stops short of explicit exclusions or naming a sibling alternative for cases where you already have two image files rather than two URLs.

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