Skip to main content
Glama

hmi_source_transaction

Modifies named macro bodies, titles, and managed objects in one source-fingerprint transaction, returning the semantic diff; omit dest for a dry run.

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>",
      "expected_sha256": "<expected_sha256>",
      "operations": "<operations>"
    },
    "name": "hmi_source_transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
destNo
indexNo
projectYes
operationsYes
expected_sha256Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.12.2

TDQS

B3.1/5.0
Behavior3/5

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

With only readOnlyHint=false, the description adds meaningful behavior: bulk modification scope, fingerprint and old-value basis, semantic-diff return, and dry-run behavior when dest is omitted. It still omits atomicity or rollback behavior, permission requirements, and what happens when expected_sha256 or old values do not match, so an agent must infer too much.

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?

This is a single dense sentence, front-loaded with the main mutation, and it ends with the dry-run condition; it is compact and largely waste-free. The density makes mapping clauses to parameters harder, but it avoids unnecessary wording.

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 complex mutation with five parameters, no output schema, and no schema descriptions, the definition is incomplete: it does not explain the operations payload, project, or index, nor does it cover transaction failure semantics. It covers the high-level purpose and the dry-run behavior but not enough for reliable invocation.

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 coverage is 0% for five parameters. The description hints at expected_sha256 (source fingerprint), operations (old values), and dest (dry-run switch), but it never explains project, index, the item shape of operations, or requiredness, so most parameter semantics remain 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 names the specific modifying verb and the scope of its resources: it modifies a named macro body, specific headers, and multiple managed objects in one operation, using a source fingerprint and old values, and it returns an actual semantic diff. It does not explicitly name a sibling alternative, so its purpose is clear but not fully differentiated.

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?

The definition explicitly states that omitting dest produces only a trial or dry run, which is useful usage guidance. However, it does not say when to choose this tool over siblings such as hmi_merge_source_modules or hmi_edit_page_objects, nor does it state prerequisites or when not to use it.

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