Skip to main content
Glama
leky90

MCP Image Compare Server

by leky90

compare_images

Compare two local images pixel by pixel, identifying differences and generating a diff image with detailed statistics.

Instructions

Compare two local image files pixel by pixel. Supports PNG and JPEG formats. Returns the number of different pixels, percentage difference, and generates a diff image showing the differences.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
includeAANoOptional: If true, include anti-aliased pixels in the diff. Default: false
thresholdNoOptional: Matching threshold (0-1). Lower values are more sensitive. Default: 0.1
image1_pathYesAbsolute or relative path to the first image file
image2_pathYesAbsolute or relative path to the second image file
diff_output_pathNoOptional: Path where the diff image will be saved. If not provided, a timestamped file will be created in the current directory.
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It describes pixel-by-pixel comparison and output, but does not mention constraints like same dimensions required, or error cases. Could be more explicit about limitations.

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?

Two sentences, front-loaded, no redundant information. Every sentence adds value: purpose, supported formats, and output description.

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?

No output schema exists, but the description explains the return values (different pixels, percentage, diff image). It also covers supported formats. Missing potential details like image size requirements, but overall adequate for a tool with well-documented parameters.

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 description coverage is 100%, so baseline is 3. The description does not add extra meaning beyond the schema for parameters like threshold or includeAA, which are already well-documented in the schema.

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 uses a specific verb ('Compare two local image files'), identifies the resource type, and distinguishes from siblings by specifying 'local image files' while siblings likely handle URLs. It also mentions supported formats and output.

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?

The description implies usage for local files but does not explicitly state when to use this tool versus the sibling tools (compare_image_with_url, compare_urls). No prerequisites or exclusions are mentioned.

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/leky90/mcp-image-compare-server'

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