Skip to main content
Glama

Scan UI code for AI design defaults

handmade_scan
Read-only

Scans UI source code for patterns that make interfaces look AI-generated. Returns a 0-100 score, file-level findings, and concrete fixes to apply after UI changes.

Instructions

Scan UI source code (HTML, CSS/SCSS, Tailwind, JSX/TSX, Vue, Svelte, Astro, Laravel Blade, Angular) for patterns that make an interface look AI-generated. Returns a 0-100 score and each finding with file, line and a concrete fix. Run it after building or changing UI and fix what it reports. Use an absolute path.

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

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path to a folder or file.
formatNotext for a readable report with fixes, json for structured findings.text
ignoreNoComma-separated tell IDs or categories to skip.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.2
    • addedInput schema / properties / format / description
      Added value: +"text for a readable report with fixes, json for structured findings."
  2. First observedv0.3.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=false), so the description isn't obligated to explain mutation risk. It still adds real value by disclosing the output shape (0-100 score, per-finding file/line/concrete fix) and the absolute-path requirement, though it says nothing about scan duration, scope limits, or whether findings are capped.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, each carrying distinct information: what is scanned, what is returned, when to run it, and the path constraint. No filler or repetition, and the core action is front-loaded.

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?

With no output schema, the description correctly fills that gap by describing the score and finding structure. All three parameters have schema descriptions, and the read-only nature is declared, so the only mild gap is absent guidance on sibling selection and result volume.

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 coverage is 100%, so path, format, and ignore are already documented in the schema, including the format enum and its default. The description reinforces the absolute-path constraint and hints at report contents, but adds no meaning about the ignore parameter's tell IDs or categories.

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?

Specific verb and resource ("Scan UI source code") with an enumerated set of supported formats and a clear purpose (detecting AI-generated-looking interface patterns). It doesn't name or contrast itself with any sibling such as handmade_check or handmade_fix_plan, so an agent must infer the boundary from sibling names alone.

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?

"Run it after building or changing UI and fix what it reports" gives a concrete trigger condition. There are no exclusions or explicit alternatives, so nothing tells the agent when to prefer handmade_list_tells or handmade_fix_plan instead.

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