Skip to main content
Glama

accessibility

Run WCAG accessibility audits with axe-core to find missing alt text, low contrast, unlabeled buttons, and heading order issues, then return severity and fix suggestions.

Instructions

Run WCAG accessibility audit using axe-core. Finds missing alt text, low contrast, missing button labels, heading order issues. Returns severity, affected elements, and fix suggestions.

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

Input Schema

NameRequiredDescriptionDefault
urlNoPage URL. Auto-detected if omitted.
tagsNoWCAG tags to check. Default: ['wcag2a', 'wcag2aa']. Options: wcag2a, wcag2aa, wcag2aaa, best-practice.
selectorNoCSS selector to scope audit to a section.
viewportNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It does useful work by naming the engine, listing detectable issue categories, and describing the return payload (severity, affected elements, fix suggestions), which implies a read-only audit. It omits whether the page must already be loaded, expected runtime/timeouts, and whether the audit triggers navigation.

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?

Two sentences, no filler: the first states the action and engine, the second lists detection categories and the return shape. The most important information is front-loaded and every clause carries signal.

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 four-optional-parameter audit tool with no output schema, the description covers purpose, detection scope, and return contents adequately. The remaining gap is operational context — page-state prerequisites and runtime behavior — but nothing prevents an agent from calling it 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 coverage is 75%, with url, the tags enum, and viewport already documented in the schema, so the schema does most of the work. The description adds nothing about any parameter — not what tags values mean in practice, not how the selector scoping interacts with the audit, and not what viewport affects. Baseline 3 is 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 a specific verb and resource ("Run WCAG accessibility audit") with the underlying engine (axe-core) and concrete examples of what it detects (alt text, contrast, button labels, heading order). It is clearly distinguishable from sibling tools like console_logs or screenshot, though it never explicitly contrasts itself with them.

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 or when-not-to-use guidance: no prerequisites such as needing a page loaded or a dev server running, and no mention of when another sibling (e.g. dom_inspect) would be the better choice. The agent can infer this is for accessibility checks, but nothing is stated explicitly.

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