Skip to main content
Glama

hmi_design_audit

Audits HMI layouts and macros by exporting object positions, fonts, and non-destructive fix suggestions or checking syntax, address reads/writes, and bindings.

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

Input Schema

NameRequiredDescriptionDefault
destNo
modeYes
indexNo
layoutNo
projectYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.12.2

TDQS

C2.8/5.0
Behavior3/5

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

Only readOnlyHint=false is supplied, so the description carries most of the burden. It usefully discloses that repair suggestions do not modify the drawing ('不改图'), a real behavioral nuance, but it never says what gets written (presumably to dest), whether it overwrites, or in what format—so the write side of a non-read-only tool stays opaque.

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 dense sentence with no filler, so length is not the issue. However, two distinct modes are compressed into one clause joined by a semicolon, and phrasing such as '带记录偏移' and '不改图的修复建议' is compressed to the point of ambiguity about what is exported versus what is only suggested.

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 five-parameter, dual-mode tool with 0% schema coverage, no output schema, and only a single readOnly annotation, the description should explain mode selection, the destination/index/layout inputs, and the shape of what is exported. None of that is present, so an agent cannot call this reliably without guessing.

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% across 5 parameters, so the description must compensate and largely does not: dest, index, layout, and project are never mentioned, and the mode enum values are only obliquely implied by the '或' clause. Only the conceptual content (positions, offsets, fonts, syntax, bindings) is named, with no mapping to the actual fields.

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 verb and resources are concrete: it exports object positions with record offsets and fonts, and separately checks macro syntax subsets, direct/unresolved reads-writes, and bindings. The two functions are clear, though the description never says which of the two it is a sibling of (hmi_audit_layout, hmi_macro_lab, etc.) and never names the mode values 'layout'/'lint'.

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?

The ';或' (or) construction implies two operation modes, but it does not say when to choose the export path vs the macro-lint path, nor when to prefer this over sibling audits such as hmi_audit_layout or hmi_macro_lab. There is no statement of prerequisites or exclusions.

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