Skip to main content
Glama

basecoat_quality_inspector

Read-onlyIdempotent

Audit HTML/Astro markup to generate a quality report with score, syntax and accessibility/ARIA violations, and auto-fix suggestions for Basecoat UI code.

Instructions

[STAGE 4: QUALITY AUDIT] Audit HTML/Astro markup and return a structured quality report with Score (0-100), Syntax Violations, Accessibility/ARIA omissions, and Auto-Fix suggestions. Final quality gate for all generated Basecoat UI code.

Input Schema

NameRequiredDescriptionDefault
idNoAlternative component identifier alias to inspect.
codeNoHTML/component markup string to inspect for syntax violations, a11y omissions, and quality metrics.
htmlNoAlternative parameter alias for the code string to inspect.
nameNoAlternative component identifier alias to inspect.
markupNoAlternative parameter alias for the markup snippet to inspect.
enforceFsmNoWhether to strictly enforce FSM data-state bindings and field-group hierarchies on interactive controls.
componentIdNoAlternative component identifier alias to inspect.
environmentNoTarget environment for inspection (defaults to html).
densityProfileNoDensity profile context: "comfortable" (standard rhythm) or "compact" (dense micro-spacing allowed).
semanticProfileNoSemantic token rhythm profile to validate against (defaults to "default").

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.8.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety and repeatability profile is clear. The description adds the stage positioning and the report contents, which is useful context beyond the annotations, but it does not mention defaults, limits (e.g., the 262144 maxLength), or how the FSM/density checks behave.

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 stage tag and the verb/resource. It is efficient, though the bracketed stage prefix and the 'Final quality gate' clause are somewhat redundant framing.

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

Completeness3/5

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

For a 10-parameter, zero-required tool with no output schema, the description explains the report sections but not the return structure, the meaning of a partial/omitted input, or how the many alias parameters (code/html/markup) should be chosen. It is adequate but leaves real gaps for a tool this broad.

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 every parameter is already documented in the schema. The description adds no parameter-level meaning beyond what the schema provides, making the baseline 3 the correct score.

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?

Names a specific verb (Audit) and resource (HTML/Astro markup) and states the output shape (Score 0-100, Syntax Violations, Accessibility/ARIA omissions, Auto-Fix). It positions itself as the 'Final quality gate' but does not distinguish itself from the very close siblings validate_markup and validate_composition.

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

Usage Guidelines2/5

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

There is no when-to-use guidance or routing to alternatives. Given siblings like validate_markup, validate_composition, and validate_design, the agent has no explicit signal for when this Stage 4 gate is the right call versus those validators.

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