Skip to main content
Glama

hmi_patch_controls

Patch HMI control properties by name or apply grouped style edits by window, group, role, and rows, then generate a modified copy with before/after HTML and source fingerprint verification.

Instructions

生成局改副本和改前后 HTML。changes 按名称指定属性;或用 group_edit 按窗口、组、角色和明确行号改样式。需匹配源指纹。

Input Schema

NameRequiredDescriptionDefault
destYes
indexNo
changesNo
projectYes
group_editNo
expected_sha256Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.12.2

TDQS

C2.9/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false, so the description must carry the rest. It usefully discloses two behavioral facts beyond the annotations: the operation emits a copy plus before/after HTML artifacts, and it requires a matching source fingerprint. It does not say whether `dest` is overwritten, what an fingerprint mismatch does (fail? abort?), or what the returned artifact paths look like.

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?

Three tight sentences with no filler; the mode-selection rule is front-loaded in sentence two and the precondition last. Slight loss for dense jargon and missing structural markers that would separate the mode rules from the precondition.

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?

This is a mutating tool with a nested schema, a oneOf discriminator, and no output schema, so the description should be fuller. Between an unexplained parameter (`index`), an undocumented item shape for `changes`, and unstated failure behavior for the required fingerprint check, an agent would have to guess to call 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 6 parameters, including a nested object and an array of objects, so the description must compensate. It explains the `changes`/`group_edit` split and the fingerprint role of `expected_sha256`, and incidentally names the group_edit subfields that match the schema. It leaves `project`, `dest`, and especially `index` entirely undefined, and never describes the shape of objects inside `changes`.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a concrete outcome — generating a patched copy plus before/after HTML — and distinguishes its two editing modes (per-property `changes` vs. `group_edit`). However, '局改' and 'controls' are never defined, and nothing distinguishes this from sibling editors such as hmi_edit_page_objects or hmi_editor_operations, so an agent cannot confidently pick it over those.

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?

It does route between the two mutually exclusive modes: use `changes` to target attributes by name, or `group_edit` to restyle a window/group/role at explicit row numbers. That is real selection guidance for the schema's oneOf. It stops short of saying when this tool is preferred over the sibling editors, or what happens when the fingerprint precondition fails.

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