Skip to main content
Glama

image_tools_diff

Pixel diff of two images for visual regression: share of changed pixels, a same/different verdict, boxes around what changed, a diff overlay and a side-by-side sheet. Tolerant of antialiasing noise. Price: $0.01 USDC via x402, charged only on success. Part of Image tools: Everyday image work for sites and apps: convert and compress to WebP/AVIF/JPEG/PNG, responsive srcset sets with ready markup, colour palettes, pixel diffs for visual regression, SVG to PNG, QR codes, blur placeholders, and an inspection that says what to fix before shipping an image..

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "image_tools_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
aNoFirst image (the baseline) as base64.
bNoSecond image as base64.
aUrlNo
bUrlNo
thresholdNoPer-pixel tolerance, 0 = exact, 0.1 ignores antialiasing noise.
failPercentNoAbove this share of changed pixels the images count as different.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses output contents, noise tolerance behavior, the $0.01 USDC x402 charge, and critically that billing happens only on success. It omits failure modes, input size limits, and what happens when both inline and URL inputs are supplied.

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 core sentences are front-loaded and information-dense, with outputs and pricing stated up front. The trailing 'Part of Image tools: ...' catalog blurb is long boilerplate that spends roughly half the text on family marketing rather than this tool's behavior.

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 six-parameter paid tool with no output schema, the description covers what is returned and the billing model, which is the highest-risk unknown. The main residual gap is input sourcing (inline base64 vs URL) and any limits on image size or count, 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 67%, and threshold/failPercent are already well documented in the schema. The two undescribed parameters, aUrl and bUrl, are not explained in the description either, and the precedence between a and aUrl (or b and bUrl) is left entirely implicit for a tool with zero required parameters.

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?

Names a specific operation (pixel diff of two images) and enumerates concrete outputs: changed-pixel share, verdict, change boxes, overlay, side-by-side sheet. It is clearly distinguishable from conversion/palette siblings, though it does not differentiate itself from the similarly-named web_tools_visual_diff sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implies the usage context ("for visual regression") and notes the antialiasing tolerance, which tells the agent when this is appropriate. But it offers no explicit when-not guidance, no comparison to the visual_diff sibling, and no prerequisites such as image size constraints.

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