Skip to main content
Glama

hmi_query_graphics

Query HMI graphics by FLBX name, pixel size, or state count and export exact PNG files for preview or asset use; results are not tied to a native project.

Instructions

按 FLBX 名称、像素、状态数查询并可导出确切 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": {
      "path": "<path>"
    },
    "name": "hmi_query_graphics"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
entryNo
limitNo
queryNo
stateNo
widthNo
heightNo
offsetNo
statesNo
runtimeNo
output_pngNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.12.2

TDQS

C2.6/5.0
Behavior2/5

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

Annotations declare only readOnlyHint=false, and the description does explain the write-ish behavior (exporting an exact PNG), which is consistent with a non-read-only hint. However, it says nothing about where the PNG is written, whether output overwrites existing files, what happens when no match is found, or how pagination via limit/offset behaves — significant gaps for an 11-parameter tool.

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

Conciseness3/5

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

It is a single compact sentence with the query capability front-loaded and no wasted filler. But the compression goes too far for an 11-parameter tool, and the semicolon clause about native project binding is cryptic rather than informative.

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?

With 11 parameters, one required field, 0% schema description coverage, no output schema, and only a single readOnlyHint annotation, the description is far too thin to let an agent call this correctly. It covers the headline filters and the PNG export but omits pagination, path semantics, runtime selection, and return behavior.

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 description coverage is 0%, so the description must carry parameter meaning, and it only partially does: it implies FLBX name (entry/query), pixels (width/height), states (states/state), and output_png. It leaves path, limit, offset, runtime, and the state-vs-states distinction completely unexplained, which is over half the parameters.

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 (query) and resource (graphics), and lists concrete filter dimensions: FLBX name, pixels, and state count, plus an export-to-PNG capability. The trailing clause ('does not represent binding to native project') adds a scope boundary that helps distinguish it from native-tag/binding tools, though it never names the closest sibling (hmi_verify_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?

There is no explicit when-to-use guidance and no routing to alternatives, despite an obvious sibling in hmi_verify_graphics. The only guidance is a negative scope statement about native project binding, which tells the agent what the result does not mean but not when to pick this tool over another.

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