Skip to main content
Glama

hmi_verify_graphics

Verify FLBX graphic states by SHA and inspect state grids, cross-library matches, runtime coverage, and single-image exports to validate HMI visuals before release.

Instructions

核验指定 SHA 的 FLBX;支持图态网格、跨库查找、运行包逐态覆盖、图态匹配和单图导出。

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": {
      "mode": "<mode>"
    },
    "name": "hmi_verify_graphics"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
rowsNo
entryNo
limitNo
orderNo
queryNo
stateNo
offsetNo
statesNo
columnsNo
librariesNo
output_pngNo
blank_stateNo
image_indexNo
image_widthNo
output_jsonNo
state_countNo
image_heightNo
library_pathNo
runtime_pathNo
embedded_onlyNo
expected_sha256No
expected_library_sha256No
expected_runtime_sha256No

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.12.2

TDQS

C2.7/5.0
Behavior2/5

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

Annotations supply only readOnlyHint=false, so the description carries most of the behavioral burden. It does not disclose that several modes write artifacts to disk (output_png, output_json), whether verification failures raise errors or return a status, what 'expected_*_sha256' mismatches produce, or any performance/limits implications of scanning libraries and runtime packages. Calling it 'verify' while annotated as non-read-only is also left unexplained.

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 front-loaded sentence with the core action first and capabilities after a semicolon — dense and free of filler. It is arguably over-compressed given the tool's complexity, but nothing is redundant.

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 24-parameter, five-mode tool with no output schema and zero schema descriptions, the description is far too thin: an agent cannot determine which parameters each mode requires or what the result contains. The one-sentence capability list does not cover the decision surface the schema exposes.

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?

With 24 parameters at 0% schema description coverage, the description must compensate, and it largely does not. It only obliquely gestures at a few parameters ('指定 SHA' for expected_sha256, '单图导出' for output_png/image_index, '跨库查找' for libraries/library_path); the relationships between mode and its 20+ mode-specific parameters (rows/columns/states/state_count for grid, offset/limit/order/query for find, etc.) are never stated.

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 states a specific verb and resource ('核验指定 SHA 的 FLBX' – verify the FLBX for a given SHA) and then enumerates five concrete capabilities that map onto the 'mode' enum (grid, find, coverage, match, catalog/export). This is far more than a restatement of the name. It loses a point because 'FLBX' is unexplained domain jargon and nothing distinguishes this from the sibling hmi_query_graphics.

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?

No when-to-use guidance is given: the description never says when to pick this over hmi_query_graphics or hmi_verify_runtime_art, nor which mode suits which situation. The capability list hints at scope but leaves the agent to infer mode selection and prerequisites entirely.

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