Skip to main content
Glama
MCP WCAG Accessibility Tool

MCP WCAG Accessibility Tool

analyze_accessibility

Analyze HTML or React code for WCAG accessibility issues at A, AA, or AAA levels. Identify violations to fix compliance problems before release.

Instructions

Analyze HTML/React code for WCAG accessibility issues

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": {
      "code": "<code>"
    },
    "name": "analyze_accessibility"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesHTML or React code to analyze
levelNoWCAG compliance level to checkAA
formatNoCode formathtml

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it says nothing about whether this is a read-only static analysis, whether it modifies the submitted code, whether network access is needed, or how findings are returned. "Analyze" weakly implies a non-mutating inspection, but the agent must infer that.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity contributes to the missing usage and behavioral detail noted elsewhere.

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?

The tool is simple (3 params, all documented in schema, no nested objects) so the description need not be long. However, with no output schema, the description should have indicated what an analysis returns (e.g., a list of issues with severity and WCAG rule references), which it does not.

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%, and the enums for level (A/AA/AAA) and format (html/react/vue/angular) are fully documented in the schema, so the baseline of 3 applies. The description adds marginal context by naming HTML/React but actually omits vue and angular, so it does not enrich the parameters beyond the schema.

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?

"Analyze HTML/React code for WCAG accessibility issues" gives a specific verb (analyze), a concrete resource (HTML/React source code), and the domain of the analysis (WCAG issues), so an agent knows what it does. It never distinguishes itself from siblings like accessibility_score, validate_compliance, or live_url_audit, and it slightly undersells the schema, which also accepts vue and angular formats.

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 and no exclusion criteria. With siblings such as live_url_audit (presumably for live pages), accessibility_score, and validate_compliance, an agent gets no signal about why it would pick static code analysis here rather than those alternatives.

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