Skip to main content
Glama

a11y-toolkit: Express WCAG audit

a11y_audit_url
Read-onlyIdempotent

Audit a URL or raw HTML for WCAG 2.2 accessibility issues, returning a weighted 0–100 score and findings with concrete remediation.

Instructions

Express WCAG 2.2 audit of a URL or an HTML string: 20+ automated signals with a weighted 0-100 score — images without alt (1.1.1), low-quality alt text (filenames, generics, placeholders; also 1.1.1), controls without accessible names (4.1.2), form fields without labels (3.3.2), missing autocomplete on user-data fields (1.3.5), click handlers on non-interactive elements (2.1.1), unknown ARIA roles and broken aria-labelledby (4.1.2), duplicated unnamed landmarks, timed meta refresh (2.2.1), missing skip mechanism (2.4.1), lang/title (3.1.1, 2.4.2), heading structure (1.3.1), blocked zoom (1.4.4), captions (1.2.2), autoplay audio (1.4.2), generic/duplicated link text (2.4.4), target=_blank without warning (3.2.5), positive tabindex (2.4.3), aria-hidden on focusable elements, tables without th, duplicate ids, duplicate accesskeys, headings overridden by another role (1.3.1), letter/line/word-spacing !important inline (1.4.12, ACT 24afc2/78fd32/9e45ec), autocomplete purpose contradicting the field type (1.3.5). Each finding includes concrete remediation. Filter, not verdict: automation covers ~1/3 of WCAG; query a11y_criterion for what a criterion means. — Prefer a11y_audit_dom when JS renders the content or contrast/2.5.8/focus matter; use pages for light multi-page sampling. Static CANNOT measure class/var() CSS contrast (1.4.3): the report's not_measured says so — a 100 is never 'contrast is fine'. Returns JSON: {mode, url|file, score 0-100, findings [{criterion, severity, signal, issue, remediation}], summary {high, medium, low}, limits, score_note, overlay_widgets? (detected third-party overlay scripts — data, not a WCAG finding)}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "a11y_audit_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoURL to fetch and audit
htmlNoraw HTML to audit directly (overrides url)
langNooutput language (en default)
pagesNolight same-domain crawl: audit up to N pages, aggregated by score and recurring signals (default 1, max 20)
targetNoEN 301 549 target: web=9.x clauses (default), documents=10.x, software=11.x
timeoutNofetch timeout seconds (30 default)
standardNoen301549: EN clause per finding (EAA procurement, Canada ICT) · rgaa: French RGAA criterion per finding

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv5.27.0
    • addedInput schema / properties / standard
      Added value: +{
      +  "description": "en301549: EN clause per finding (EAA procurement, Canada ICT) · rgaa: French RGAA criterion per finding",
      +  "enum": [
      +    "en301549",
      +    "rgaa"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / target
      Added value: +{
      +  "description": "EN 301 549 target: web=9.x clauses (default), documents=10.x, software=11.x",
      +  "enum": [
      +    "web",
      +    "documents",
      +    "software"
      +  ],
      +  "type": "string"
      +}
  2. Changed2 schema fields changedv5.5.0
    • addedInput schema / properties / pages / maximum
      Added value: +20
    • addedInput schema / properties / pages / minimum
      Added value: +1
  3. Changed1 schema field changedv3.12.0
    • changedInput schema / properties / lang / description
      Previous value: -"output language (es default)"New value: +"output language (en default)"
  4. Changed6 schema fields changedv3.3.0
    • addedInput schema / properties / html
      Added value: +{
      +  "description": "raw HTML to audit directly (overrides url)",
      +  "type": "string"
      +}
    • addedInput schema / properties / lang / description
      Added value: +"output language (es default)"
    • addedInput schema / properties / pages
      Added value: +{
      +  "description": "light same-domain crawl: audit up to N pages, aggregated by score and recurring signals (default 1, max 20)",
      +  "type": "integer"
      +}
    • addedInput schema / properties / timeout
      Added value: +{
      +  "description": "fetch timeout seconds (30 default)",
      +  "type": "number"
      +}
    • addedInput schema / properties / url / description
      Added value: +"URL to fetch and audit"
    • removedInput schema / required
      Removed value: -[
      -  "url"
      -]
  5. First observedv2.3.0

TDQS

A4.6/5.0
Behavior5/5

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

Going well beyond the readOnly/openWorld annotations, the description states the coverage limit (~1/3 of WCAG), the hard technical limitation that static CSS class/var() contrast cannot be measured, and that a 100 score never means contrast is fine. It also explains that overlay_widgets are detected data rather than findings, which prevents a common misreading of the result.

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?

Purpose and routing guidance are front-loaded, and the dash-separated segments (capabilities, constraints, alternatives, return shape) are easy to scan. The long parenthetical enumeration of ~25 signals with criterion numbers is dense and could be compressed, but it does carry predictive value for an agent.

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

Completeness5/5

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

Despite having no output schema, the description spells out the return payload keys (mode, score, findings fields, summary counts, limits, score_note). Combined with the limitations caveats and sibling routing, an agent has everything needed to call and interpret this tool correctly.

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 enum values for standard, target, and lang are already documented in structured data. The description adds only light context — that html is an alternative to url and that 'pages' is a light same-domain crawl — which is essentially restated from the schema; baseline 3 applies.

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 first clause names the specific verb and scope: an express WCAG 2.2 audit of a URL or HTML string, and enumerates the signal classes returned with their success criteria. It distinguishes itself from a11y_audit_dom and multi-page sampling explicitly, so an agent can choose between them without opening the schemas.

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

Usage Guidelines5/5

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

It gives explicit routing rules: use a11y_audit_dom when JS renders content or contrast/2.5.8/focus matter, and use 'pages' for light multi-page sampling. It also frames the output as a filter rather than a verdict and points to a11y_criterion for criterion definitions, which is when-not-to-over-rely guidance.

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