Skip to main content
Glama

Pass or fail check for a built UI

handmade_check
Idempotent

Checks UI changes against handmade.system.json and returns PASS or FAIL, flagging AI-default fonts, colors, sizes, spacing, and radii so every screen meets the design score.

Instructions

The finish gate for UI work. Returns PASS or FAIL. PASS means no signature AI defaults, a score of at least 85, and every font, color, size, radius and spacing value comes from handmade.system.json. Call it after every UI change. You are NOT done until it returns PASS. On FAIL, fix every listed item and call it again. After 5 rounds without PASS, stop and show the user what still fails. Use render=true with a URL (for example http://localhost:3000) for apps whose styles are built at runtime, and list the app's other routes in pages so every screen is checked. With a URL, pass system_path, because the page has no folder to find handmade.system.json in.

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": {
      "path": "<path>"
    },
    "name": "handmade_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path to a folder or file or a URL when render is true.
pagesNoWith render: more pages of the same app to check, as routes such as '/pricing' or full URLs. One result covers every page.
ignoreNoComma-separated tell IDs to skip. Only with the user's agreement.
renderNoCheck the rendered page in headless Chrome.
min_scoreNoLowest AI-default score (0 to 100) that can still pass. Keep 85 unless the user asks.
system_pathNoAbsolute path of handmade.system.json. Found automatically if omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.3.2
    • addedInput schema / properties / min_score / description
      Added value: +"Lowest AI-default score (0 to 100) that can still pass. Keep 85 unless the user asks."
    • addedInput schema / properties / min_score / maximum
      Added value: +100
    • addedInput schema / properties / min_score / minimum
      Added value: +0
    • addedInput schema / properties / pages
      Added value: +{
      +  "description": "With render: more pages of the same app to check, as routes such as '/pricing' or full URLs. One result covers every page.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. First observedv0.3.1

TDQS

A4.6/5.0
Behavior5/5

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

Beyond annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false), the description discloses the pass criteria (no AI signature defaults, score >= 85, all tokens sourced from handmade.system.json), the iteration ceiling of 5 rounds, and the escalation behavior. It also explains the render-mode prerequisite that system_path must be supplied because a URL has no folder to resolve the config from – a real behavioral constraint not visible in the schema.

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?

Front-loaded with the tool's identity and return contract, then the completion loop, then advanced parameters – a sensible information order. It is dense (one long paragraph, ~9 sentences) but nearly every sentence carries a distinct rule, so trimming would lose actionable behavior.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the return contract and does so adequately: a PASS/FAIL verdict, the numeric threshold, and a list of failing items to fix. For a 6-parameter check tool that drives a fix loop, the description supplies the criteria, the termination condition, and the render-mode caveat, leaving nothing an agent needs missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning: render=true is tied to a URL example (http://localhost:3000) and to apps whose styles are built at runtime, and `pages` is explained as the mechanism for covering every screen of the app. The system_path/URL interaction is clarified beyond the schema's one-line field descriptions.

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

Purpose5/5

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

"The finish gate for UI work. Returns PASS or FAIL." states a concrete verb, resource, and output form, and frames the tool's role in the workflow as a gate rather than an analyzer. It is clearly distinguishable from siblings like handmade_scan (scanning) and handmade_fix_plan (remediation) without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Guidance is unusually rich: call after every UI change, you are not done until PASS, on FAIL fix every listed item and re-call, stop after 5 rounds and report to the user. It also gives render-mode conditions (runtime-built styles, URL). It stops short of naming sibling tools such as handmade_fix_plan as the remediation path, so routing is implied rather than explicit.

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