Skip to main content
Glama

hmi_edit_page_objects

Edit HMI page objects: clone, delete text, add navigation/macro buttons, or adjust layout styles; compare related objects before publishing or return a verification plan without a destination.

Instructions

从同源需求克隆、删除文字、增加导航/宏按钮或改布局样式。发布前比较其他对象;不指定 dest 仅给出核对方案。

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>",
      "request_path": "<request_path>",
      "expected_sha256": "<expected_sha256>",
      "actions": "<actions>"
    },
    "name": "hmi_edit_page_objects"
  }
}

Input Schema

NameRequiredDescriptionDefault
destNo
indexNo
actionsYes
projectYes
request_pathYes
template_pathNo
expected_sha256Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.12.2

TDQS

B3/5.0
Behavior3/5

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

Annotations only supply readOnlyHint=false, so the description must carry the rest; it does add one genuinely useful behavior: omitting dest yields a check plan rather than applied edits. Beyond that it is silent on the consequences of the delete/clone actions, whether edits are reversible, and the role of expected_sha256 in guarding the write.

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?

Two dense sentences with no filler and the operation list front-loaded, which is efficient. But the telegraphic, semicolon-chained phrasing in places reads as shorthand rather than structured guidance, and the dry-run rule is buried in the second clause.

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 write tool with 4 required parameters, a nested actions array, no output schema, and near-zero annotation depth. The description covers operations and one mode switch but omits almost all parameter meaning and any statement of effects, so an agent cannot safely construct a call from it alone.

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 7 parameters, so the description must compensate and largely does not. Only dest is explained (its absence triggers verify-only), while project, request_path, template_path, index, the actions item structure, and especially the required expected_sha256 hash are left entirely undocumented.

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 enumerates concrete operations on page objects: cloning from a same-source requirement, deleting text, adding navigation/macro buttons, and changing layout style. Combined with the tool name, an agent can tell this is a mutation tool for HMI page objects. It does not differentiate against near neighbors such as hmi_editor_operations, but the operation list itself is specific.

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 gives a conditional usage rule ('compare other objects before publishing') and a mode switch ('without dest only a verification plan is returned'), which implies a dry-run. However, it never says when to prefer this tool over the many sibling edit/audit tools, nor any prerequisite for entering edit mode.

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