Skip to main content
Glama

ui_diff_check

Compare expected and actual UI screenshots to identify visual differences and prioritize implementation issues for design validation.

Instructions

对比两张 UI 截图,识别视觉差异和实现偏差。专门用于 UI 质量保证和设计到实现的验证。

仅在用户需要以下操作时使用:

  • 比较预期 UI 与实际实现

  • 识别视觉差异

  • 提供详细差异报告

  • 按严重程度排列问题优先级

需要两张图:预期/参考图 与 实际/当前图。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYes详细描述要分析/生成的内容
actual_image_sourceYes实际/当前 UI 截图路径或 URL
expected_image_sourceYes预期/参考 UI 截图路径或 URL
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It reveals the core behavior (comparing images, identifying differences, producing a report) but does not mention side effects, permissions, supported formats, or limitations. Since the tool is inherently read-only, the lack of side-effect disclosure is a minor gap but not misleading.

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 concise and well-structured: the purpose is front-loaded in the first sentence, followed by a clear bulleted list of use cases and a final note about required inputs. Every sentence earns its place, with no redundancy or filler.

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

Completeness3/5

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

There is no output schema or annotations, so the description should clarify the return value. It mentions a 'detailed diff report' with severity prioritization but does not specify the report format or any limitations (e.g., image formats, size limits). Given the tool's relative simplicity, this is adequate but not fully comprehensive.

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 100%, so the baseline is 3. The description only restates that two images are required (expected vs. actual), which duplicates the schema parameter descriptions. It adds no extra meaning for the 'prompt' parameter beyond what's already provided.

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 compares two UI screenshots to identify visual differences and implementation deviations, and positions it specifically for UI QA and design-to-implementation verification. This distinguishes it from sibling tools like analyze_image or extract_text_from_screenshot, which have different purposes.

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 explicitly lists when to use the tool ('仅在用户需要以下操作时使用') with four concrete use cases, providing clear context. However, it does not name alternative tools or explicitly state when not to use it, so it stops short of full when-not/alternatives guidance.

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/JJChou000/glm-vision-mcp'

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