Skip to main content
Glama

hmi_compile_and_preview

Compile a standalone HMI project copy and generate offline simulation screenshots only after the build succeeds.

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

Input Schema

NameRequiredDescriptionDefault
destYes
editorNo
viewerNo
projectYes

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?

The annotations declare only readOnlyHint=false, so the description carries most of the behavioral burden. It usefully discloses that the compile targets an independent copy (the source project is not touched) and that screenshots are skipped unless the compile succeeds, using the same runtime package for consistency. It does not say where artifacts land, whether dest is overwritten, or what failure returns, leaving meaningful gaps for a mutating tool.

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?

A single compact sentence with clean front-loading of the compile step and an explicit success condition gating the screenshot step. No filler. It is arguably under-sized for a four-parameter tool, which is reflected in the parameter and completeness scores rather than here.

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 composite, non-read-only tool with four undocumented parameters and no output schema, the description omits what inputs mean, what artifacts are produced, and where they are written. An agent could invoke it but could not confidently predict the effect of dest, editor, or viewer.

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 four parameters, and the description never explains project, dest, editor, or viewer. Only dest is faintly implied by the mention of an independent copy. With nearly no compensating meaning added, this is well below the baseline of 3 that full schema coverage would grant.

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 a two-stage action clearly: first compile an isolated copy, then, only after success, produce official offline simulation screenshots from the same runtime package. This is more than the name restated because it specifies the isolation and the same-runtime-package constraint. It does not explicitly distinguish itself from hmi_compile_project or hmi_preview_artwork, so a 4 rather than a 5.

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 sequencing rule (compile first, screenshot only on success) implies the workflow context in which this tool applies, but it never states when to choose it over the sibling compile or preview tools, nor what the prerequisites are. Usage is inferable from the description, not stated.

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