Skip to main content
Glama
MCP WCAG Accessibility Tool

MCP WCAG Accessibility Tool

validate_compliance

Validate HTML, React, Vue, or Angular code against WCAG A, AA, or AAA compliance levels and get a detailed accessibility report.

Instructions

Validate if code meets WCAG compliance requirements

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": "validate_compliance"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesHTML or React code to validate
levelNoWCAG compliance level to validate againstAA
formatNoCode formathtml
detailedNoShow detailed report

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?

With no annotations supplied, the description carries the full behavioral burden and supplies almost nothing: it does not state that the operation is read-only and non-mutating, how long validation takes, or what the result contains (pass/fail vs. list of violations). The one-sentence text adds no operational context beyond the core action.

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 short sentence with zero filler, and the core action is front-loaded. Its brevity is efficient but leaves no room for the routing or behavioral context an agent would benefit from.

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?

Four parameters are fully documented in the schema and no output schema exists, so the description should at minimum sketch the return value (compliance verdict, violation list) and it does not. For a simple validation tool this is adequate but with a clear gap around 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%, with every parameter documented including the level and format enums and the detailed flag, so the schema already does the semantic work. The description adds nothing about defaults (AA) or how the detailed flag changes output, so the baseline of 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?

The description names a specific verb ("Validate") and resource ("code") scoped to WCAG compliance, so an agent knows exactly what the tool does. It does not differentiate itself from siblings such as analyze_accessibility or accessibility_score, leaving the agent to guess which checking tool is appropriate.

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?

The description gives no guidance on when to use this tool versus the many sibling accessibility tools, and no prerequisites or exclusions are mentioned. The agent must infer the context of use from the tool name alone.

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