Skip to main content
Glama

George Inspector: audit a GuiSpec

george_audit_gui

Audits a GuiSpec for WCAG contrast, 36px touch targets, minimum text sizes, and responsive safe-area behavior to catch accessibility and layout issues before production.

Instructions

Run the self-critique audit engine over a GuiSpec (returned in the structured output of george_generate_gui). Checks WCAG contrast math on every text/background pair, 36px minimum touch targets, minimum text sizes, and responsive/safe-area behaviour.

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": {
      "spec": "<spec>"
    },
    "name": "george_audit_gui"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoOverride mode
specYesThe GuiSpec JSON from george_generate_gui's structured output
paletteNoOverride palette id

Output Schema

NameRequiredDescriptionDefault
scoreYes
checksYes
passedYes
summaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the concrete checks the engine runs, which is meaningful behavioral context, but it never states whether the audit merely reads and reports or mutates the supplied spec, nor does it mention permissions or cost. With an output schema present, return-value detail is reasonably omitted, but the read-versus-write question is left unanswered.

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?

Two sentences, front-loaded with the verb and resource, followed by the checklist of checks. No filler and nothing redundant.

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 three-parameter analysis tool with a fully described schema and an output schema, the description covers purpose, prerequisite, and audit scope adequately. The main remaining gap is the absence of any statement about whether the input spec is modified.

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 the schema already documents spec, mode, and palette, including the enum. The description adds only that the spec value comes from george_generate_gui's structured output; it says nothing about how mode or palette overrides interact with the spec's own settings.

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 description names a specific action (run the self-critique audit engine) on a specific resource (a GuiSpec) and enumerates the exact checks performed: WCAG contrast math on text/background pairs, 36px minimum touch targets, minimum text sizes, and responsive/safe-area behaviour. An agent can distinguish this from siblings like george_generate_gui or george_review_luau 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?

It clearly establishes the context for use: run it over the GuiSpec returned in george_generate_gui's structured output, which names the prerequisite tool and the input source. It does not explicitly say when not to use it or describe alternatives, so it falls short of full routing guidance.

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