Skip to main content
Glama
image-analyzer-mcp
by AlierQ

Compare two images

compare_images

Compares a reference UI screenshot with a current implementation screenshot and returns structured JSON with differences, severity, concrete fixes, and a fix plan.

Instructions

Compare a reference UI screenshot with a current implementation screenshot and return structured JSON with a difference list, severity, concrete fixes, and a fix plan.

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": {
      "referencePath": "<referencePath>",
      "currentPath": "<currentPath>"
    },
    "name": "compare_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptNoOptional focus: areas of the comparison to emphasize.
currentPathYesAbsolute or relative path to the current .png/.jpg/.jpeg/.webp image.
referencePathYesAbsolute or relative path to the reference .png/.jpg/.jpeg/.webp image.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the response shape in useful terms (difference list, severity, concrete fixes, fix plan), which tells the agent this is an analytical, non-destructive operation. It omits failure behavior for missing/unreadable paths, size or format limits, and whether any cost or latency implications exist.

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?

A single sentence with zero filler that leads with the action and follows with the returned payload. Nothing is redundant or buried.

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 three-parameter tool with no output schema and no annotations, the description covers the essential inputs and enumerates the key return fields, so an agent can decide and call correctly. Remaining gaps are edge-case behavior such as error handling and file constraints.

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 paths and the optional prompt are already documented. The description adds meaning by labeling referencePath as the reference UI screenshot and currentPath as the implementation screenshot, clarifying the comparison direction, but says nothing about the optional prompt parameter beyond what the schema states.

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 pair: comparing a reference UI screenshot against a current implementation screenshot, with the returned artifact named (difference list, severity, fixes, fix plan). This is clearly distinguishable from a generic image analyzer, though it never names the sibling it differs from to reinforce the distinction.

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?

Usage is implied by the wording 'reference UI screenshot' vs 'current implementation screenshot', which conveys a visual-regression scenario. There is no explicit when-to-use vs analyze_image/analyze_clipboard_image guidance, no stated prerequisites (both files must exist, supported formats), and no exclusions.

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