Skip to main content
Glama

Plan fixes for an AI-looking UI

handmade_fix_plan
Idempotent

Scans an existing UI and returns a file-by-file repair plan: every AI-design tell with its fix, plus a design system built from your own tokens. Changes only the visual layer.

Instructions

Scan an existing UI and return a repair plan: every AI-design tell by file and line, its fix and a design system built from the project's own tokens. Apply it to change only the visual layer.

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_fix_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoType of screen. Detected if omitted.
moodNoOverall feel.
pathYesAbsolute path to the project or folder.
allowNoComma-separated deliberate brand choices the rules should keep, for example 'purple'. Only when the user confirms it is their brand.
freshNoIgnore a saved handmade.system.json in the project and generate a new system. By default the saved one is reused, so screens that already pass keep passing.
ignoreNoComma-separated tell IDs or categories to skip.
productNoWhat the product is, in one line.
variantNoPick an alternative generated design system.
audienceNoWho uses it and where.
referenceNoA site, magazine, place or object the user likes.
signatureNoThe one thing people should remember about the screen.
save_system_toNoAbsolute path to write handmade.system.json (usually the project root). handmade_check reads it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.2
    • addedInput schema / properties / fresh
      Added value: +{
      +  "description": "Ignore a saved handmade.system.json in the project and generate a new system. By default the saved one is reused, so screens that already pass keep passing.",
      +  "type": "boolean"
      +}
  2. First observedv0.3.1

TDQS

A3.5/5.0
Behavior3/5

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

The description adds useful behavior beyond the annotations: the return is a plan, not a direct rewrite, and it is confined to the visual layer. However, it is ambiguous about mutation — 'Apply it' reads as if the tool edits the UI, while the annotations mark readOnlyHint=false only for the system file, and the description never mentions writing handmade.system.json or how the plan is actually executed. It also omits whether scanning a large project is slow or how the plan is reported.

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?

Two sentences, front-loaded with the verb and the deliverable, with no wasted preamble. The second sentence is slightly terse and could mislead as noted, but the structure is efficient.

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

Completeness4/5

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

For a 12-parameter, no-output-schema tool, the description names what comes back and the modification boundary, and the schema itself carries the full parameter documentation. What is missing is mainly the relationship to the sibling scan/check tools and the mechanism by which the plan gets applied.

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

Parameters3/5

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

Schema description coverage is 100%, so all 12 parameters (including the kind/mood enums, allow, fresh, ignore, variant) are already documented with useful semantics. The description adds little parameter-level meaning except the framing that the design system comes from the project's own tokens, which loosely ties to fresh/save_system_to.

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?

States a concrete verb+resource ('Scan an existing UI and return a repair plan') and enumerates the plan's contents: tells by file and line, fixes, and a token-derived design system. It is distinguishable from handmade_check/handmade_scan by the plan output, though it never names those siblings explicitly.

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?

'Apply it to change only the visual layer' implies the intended workflow and sets a scope boundary, but there is no explicit when-to-use-when-not guidance and no routing to the sibling tools (handmade_scan, handmade_check, handmade_list_tells). An agent must infer whether to scan first or call this directly.

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