Skip to main content
Glama

图片对比

compare_images

Compare two images to identify similarities and differences, with an optional focus prompt for targeted visual analysis. Use it to spot changes, verify matches, or review visual variations.

Instructions

对比两张图片的相同与不同之处,可附带关注点。

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": {
      "sourceA": "<sourceA>",
      "sourceB": "<sourceB>"
    },
    "name": "compare_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo临时指定模型 id(默认 gpt-5-6;可用 VISION_MODEL 环境变量改全局默认)
promptNo对比时特别关注的方面
sourceAYes图片来源:本地文件路径、http(s) 图片 URL、data:image/...;base64,... 数据 URL,或裸 base64
sourceBYes第二张图片来源

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden, yet it discloses nothing about cost, latency, whether the call is read-only, how the model is chosen, or what the response looks like. The one behavioral hint (model defaulting and the VISION_MODEL override) lives only in the schema, not the description.

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

Conciseness4/5

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

A single short sentence with the core purpose front-loaded and no filler. It is efficient, though its brevity borders on under-specification rather than tight completeness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter vision tool with no annotations and no output schema, the description should explain what comes back (a diff image? a text verdict?) and how the focus prompt affects the result. Neither is addressed, leaving a significant gap for an agent deciding whether to call it.

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 the schema already documents all four parameters including the accepted source formats and the model default. The description's '可附带关注点' merely echoes the prompt parameter, adding no syntax or format detail beyond the schema; baseline 3 applies.

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?

The description names a specific verb+resource: comparing two images for similarities and differences, with an optional focus. That is far clearer than a tautology, though it never contrasts itself with the sibling analyze_image or extract_text, so an agent must infer that this is the two-image case.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not guidance and no mention of alternatives such as analyze_image for single-image work. Usage is only implied by the word 'two images' and the optional focus clause.

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

Deploy Server

Other Tools