Skip to main content
Glama

hmi_compare_screenshots

Compare two HMI screenshots by PNG dimensions, fingerprint, and difference ratio to verify layout changes without launching simulation.

Instructions

比较两个 PNG 的尺寸、指纹和差异比例;不启动仿真。

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": {
      "images": "<images>"
    },
    "name": "hmi_compare_screenshots"
  }
}

Input Schema

NameRequiredDescriptionDefault
imagesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.12.2

TDQS

B3.2/5.0
Behavior3/5

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

With only readOnlyHint=false supplied, the description adds a genuinely useful behavioral fact: no simulation is launched, so the call is cheap and side-effect-free in that respect. It does not explain why a pure comparison is flagged non-read-only, nor what it writes or returns, leaving a notable gap for a tool whose annotation suggests mutation.

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?

One short sentence with the comparison target and the no-simulation caveat front-loaded; nothing is redundant. It is arguably too terse for the ambiguity it leaves, but structurally it is efficient.

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?

It names the three result facets, which partially substitutes for the missing output schema, and clarifies the resource type. For a tool with zero schema documentation and no output schema, it still leaves the input encoding and any limits or failure behavior unexplained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the schema only declares an array of two strings; the description adds merely that the items are PNGs. It does not say whether the strings are file paths, names, or base64 data, which is the key ambiguity an agent faces before calling.

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 (compare) and resource (two PNGs) and names what is computed: dimensions, fingerprint, and difference ratio. It is clear what the tool does, though it does not explicitly distinguish itself from siblings such as hmi_compare_projects.

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 clause '不启动仿真' implies this is the lightweight path when a full simulation run is unnecessary, which gives indirect when-to-use guidance. However, it never states when to prefer it over the sibling comparison or audit tools, nor any prerequisites.

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