Skip to main content
Glama

hmi_preview_artwork

Builds a review HTML that lays out artwork states by window, control, and raw pixels for visual verification without modifying the production CMTP.

Instructions

按窗口、控件和原始像素把图库各态放入核对版 HTML;不改动正式 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": {
      "review_dir": "<review_dir>",
      "assignments": "<assignments>",
      "dest": "<dest>"
    },
    "name": "hmi_preview_artwork"
  }
}

Input Schema

NameRequiredDescriptionDefault
destYes
review_dirYes
assignmentsYes

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?

Annotations supply only readOnlyHint=false, so the description carries most of the behavioral burden. It usefully discloses that the official CMTP is left untouched, implying a side output rather than in-place mutation, but it says nothing about what file gets written at 'dest', whether existing output is overwritten, or what happens on partial failure.

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 that front-loads the action and the artifact, followed by a short safety clause. Every clause carries information; the only weakness is that density comes at the cost of readability for an agent parsing parameter roles.

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 tool with three fully undocumented required parameters, a structured array input, no output schema, and only a write-permission annotation, this is under-specified. An agent can guess the intent but not how to populate 'assignments' or whether 'dest' is a directory or file path, which is likely to cause malformed calls.

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% for three required parameters (review_dir, assignments, dest), so the description must compensate and largely does not. 'By window, control, and raw pixels' loosely gestures at the grouping inside 'assignments', but the structure of that array and the meaning of review_dir versus dest are left entirely unstated.

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 specific action and artifact: gathering gallery states into a review-version HTML, organized by window, control, and raw pixels. The qualifier '不改动正式 CMTP' (does not modify the official CMTP) further scopes it as a non-destructive preview pass, which helps separate it from build/compile siblings. It stops short of naming an explicit alternative, so it 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?

Usage is implied rather than stated: the 'review copy' framing and the no-touch guarantee on the official CMTP suggest this is for visual verification before committing anything. There is no explicit when-to-use/when-not-to-use guidance and no pointer to sibling tools such as hmi_compile_and_preview or hmi_compare_screenshots.

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