Skip to main content
Glama

compare_screenshots

Analyzes pixel differences between two screenshots to detect visual changes. Reports percentage and region of changed pixels for UI regression testing.

Instructions

Compare two screenshots and describe visual differences.

Analyzes pixel differences between two images and reports the percentage of changed pixels and the region of change.

Useful for:

  • Verifying UI changes after code edits

  • Checking before/after visual regression

  • Confirming rendering output differences

Parameters:

  • image_path_1: Absolute path to the first (baseline) image.

  • image_path_2: Absolute path to the second (comparison) image.

  • max_size: Maximum pixel dimension for analysis. Default 800.

Returns a text description of the differences found.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_sizeNo
image_path_1Yes
image_path_2Yes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries full burden. It explains that the tool analyzes pixel differences and returns a text description, including percentage and region of change. It implies no side effects, which is appropriate for a compare tool.

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

Conciseness5/5

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

The description is structured with a clear purpose statement, detailed behavior explanation, bulleted use cases, and parameter list. Every sentence is informative and there is no wasted text.

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?

The description explains what the tool does and returns, but does not detail the exact format of the text description (e.g., coordinates or just percentage). Since an output schema exists, this is acceptable, but a bit more specificity would improve completeness.

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?

With 0% schema description coverage, the description adds meaning for all three parameters: it explains image_path_1 as baseline, image_path_2 as comparison, and max_size as maximum pixel dimension with default 800. This compensates well for the schema's lack of descriptions.

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 description clearly states the tool's purpose: 'Compare two screenshots and describe visual differences.' It specifies analyzing pixel differences and reporting percentage of changed pixels and region. This distinguishes it from sibling tools that capture screenshots.

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 description provides a bulleted list of useful scenarios (UI changes, visual regression, rendering differences), giving clear context for when to use the tool. However, it does not explicitly mention when not to use it or compare with alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wonderstone843/claude-vision-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server