Skip to main content
Glama

Lint markup against the specification

validate_markup
Read-only

Check HTML or CSS for accessibility and design-system issues: missing accessible names, unlabelled inputs, dark-mode color breaks, flex overflow, positive tabindex, and removed focus outlines.

Instructions

Checks HTML or CSS for the accessibility and design-system failures that actually ship: missing accessible names, unlabelled inputs, hard-coded colours that break in dark mode, flex containers that will overflow, positive tabindex, removed focus outlines, and misused live regions. Advisory — a clean result is not a certificate of accessibility.

Input Schema

NameRequiredDescriptionDefault
markupYesHTML and/or CSS to check; maximum 524288 UTF-16 code units. Parsed structure and accessible-name work are also bounded.
componentIdNoCheck against a specific component spec as well.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.2.1
    • changedInput schema / properties / markup / description
      Previous value: -"HTML and/or CSS to check."New value: +"HTML and/or CSS to check; maximum 524288 UTF-16 code units. Parsed structure and accessible-name work are also bounded."
  2. Changed1 schema field changedv2.1.0
    • removedInput schema / additionalProperties
      Removed value: -false
  3. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds genuinely useful context beyond the annotations: the checks are scoped to shipping failures and the result is explicitly advisory, not a certification of accessibility — important for how the agent should phrase findings. It stops short of describing result format or coverage limits.

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?

Front-loaded with the verb and resource, then a tight enumeration of concrete failure types, closed by a one-clause caveat. The long list is informative rather than padding — it defines the check surface with no redundant sentences.

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 read-only lint tool with fully documented parameters, the description covers purpose, scope, and the crucial advisory semantics. The one gap is the return shape: there is no output schema and the description never indicates what a result contains (findings list? per-check messages?), which the agent would need to present results.

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 both markup (with its size bound) and componentId are already documented in the schema. The description adds nothing about the parameters themselves, so the baseline 3 applies.

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 ('Checks') plus concrete resource ('HTML or CSS') and an enumerated set of failure classes (accessible names, tabindex, focus outlines, live regions), so the agent knows exactly what linting surface this covers. It does not explicitly distinguish itself from the sibling check_contrast, which overlaps on the colour/dark-mode checks, so it falls short of a 5.

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?

Usage is implied by the check list ('the failures that actually ship'), but there is no explicit when-to-use statement and no routing to alternatives such as check_contrast for pure contrast questions or get_component for spec lookups. The advisory caveat addresses interpretation of results, not tool selection.

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