Skip to main content
Glama
MCP WCAG Accessibility Tool

MCP WCAG Accessibility Tool

generate_component

Generate accessible component templates with built-in WCAG compliance for forms, modals, navigation, and more, so teams can build inclusive interfaces without starting from scratch.

Instructions

Generate fully accessible component templates with WCAG compliance built-in

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": {
      "component": "<component>"
    },
    "name": "generate_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoWCAG compliance levelAA
styledNoInclude accessible CSS styles
componentYesType of component to generate
frameworkNoTarget frameworkhtml
interactiveNoInclude JavaScript for interactions

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 behavioral burden, and it discloses almost nothing beyond the high-level purpose. It does not say whether the tool returns template text, writes files to disk, or modifies a project, nor does it describe defaults, side effects, or permission requirements. The phrase 'WCAG compliance built-in' is a quality claim rather than behavioral disclosure.

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?

It is a single front-loaded sentence with no wasted wording. Its brevity is appropriate, though it could have used the space to include a usage or output detail that is currently missing.

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 input schema is fully documented, but there is no output schema and no annotations, so the description should clarify the return form and whether generation has side effects. It states what the tool produces at a high level but leaves the agent guessing about the output contract and integration behavior.

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 five parameters are clearly documented with defaults and enums, so the schema already carries parameter meaning. The description adds no additional parameter semantics, which makes the baseline 3 appropriate.

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 pairs the specific verb 'Generate' with a concrete resource, 'component templates,' and adds the accessibility/WCAG qualifier. It is easy to distinguish from the listed sibling tools, which are primarily auditing, analysis, and code-modification utilities rather than generators. It stops short of naming an explicit alternative or scope boundary, which keeps it from 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 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, no prerequisites, and no statement about when not to use this tool. The name implies a scaffolding use case, but the description does not tell an agent how this fits alongside accessibility_score, refactor_for_wcag, or validate_compliance.

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