Skip to main content
Glama

hmi_audit_layout

Audit HMI layouts to detect control overflow, overlaps, and broken jump targets, and verify CMTP coordinates against the intended layout.

Instructions

检查实际 CMTP 的控件越界、交叠、跳页目标与核对版坐标。

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

Input Schema

NameRequiredDescriptionDefault
indexNo
layoutNo
projectYes

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 only supply readOnlyHint=false, and the description ('检查' – check) reads like a pure inspection, so it never explains what the tool actually writes or changes, whether it reports or persists findings, or whether it needs a compiled project. For a non-read-only tool with zero annotation detail beyond the one hint, the behavioral burden falls entirely on the description and is not met.

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?

A single front-loaded sentence with no filler, which is appropriately sized for the check list. However it is dense with unexplained domain jargon (CMTP, 核对版) instead of precise terminology, so brevity costs comprehension.

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?

No output schema exists and the tool takes three undocumented parameters, so the description should explain what the audit returns and how findings are keyed to controls/pages – it does not. Given a mutating annotation and zero parameter coverage, an agent lacks enough to invoke it correctly.

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 three parameters (project required, index, layout), and the description adds meaning for none of them – at most '实际 CMTP 的控件' loosely gestures at the target project. The roles of index and layout and the expected identifier format for project are left completely unexplained.

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 concrete verb 检查 (check) plus four specific defect classes (控件越界、交叠、跳页目标、核对版坐标), which makes the operation recognizable as a layout audit against a reference version. It is only slightly weakened by the unexplained domain abbreviation CMTP and by not naming how it differs from sibling audits such as hmi_design_audit.

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 description gives no when-to-use context, no prerequisites, and no routing to alternatives like hmi_audit_visual_evidence or hmi_design_audit. An agent must infer from the name alone whether this audit is the right one for a given review request.

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