Skip to main content
Glama

Run the axe-core rule engine on the page

qa_axe

Run local axe-core WCAG A/AA accessibility checks on the live DOM to return violations with impact, WCAG tags, help URLs, and offending selectors.

Instructions

The industry-standard accessibility rule engine (axe-core — the one under Lighthouse), bundled INSIDE the extension and run locally on the live DOM: nothing leaves the page, no remote code. Hundreds of WCAG A/AA checks on top of qa_run_audit's own set, narrowed to WCAG-tagged rules so every violation maps to a criterion. Returns violations with impact, WCAG tags, help URL and up to 10 offending selectors each. Read-only. Needs an extension build that carries the engine — an older build answers "unknown command: axe" (reload the extension after updating).

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

Input Schema

NameRequiredDescriptionDefault
omitNoDrop these field paths and keep the rest — the cheap way to lose one huge field (["html"], ["steps"]) without listing everything you want.
tabIdNoTarget tab (from qa_tabs); omit for the active tab
selectNoKeep only these field paths, e.g. ["ok","fields[].name"]. Dots walk into objects, and a path through a list applies to every entry, keeping it a list. A path that matches nothing is reported back with the field names that ARE there.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral burden — and it does well: it discloses local bundling, no remote code, that nothing leaves the page, read-only posture, and a concrete failure mode ("unknown command: axe" on older builds, reload after updating). It also describes the return payload shape (impact, WCAG tags, help URL, up to 10 selectors per violation). This is substantial disclosure that earns well above baseline.

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?

Information is front-loaded — what it is, where it runs, what it returns, prerequisites — in five dense sentences with no filler. The parentheticals ("the one under Lighthouse", the old-build error string) add real value rather than noise, though the density borders on cramming.

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?

With no output schema, the description still explains the return payload and the selector cap, and it flags the extension-build prerequisite that would otherwise cause a confusing failure. The only real omission is any hint about the omit/select field-trimming parameters, which matter for large result sets.

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 all three parameters (omit, select, tabId) are fully documented in the schema, including the field-path semantics and error reporting for unmatched paths. The description adds no parameter-level meaning, so the 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?

States a specific verb and resource — run the axe-core accessibility rule engine on the live DOM — and explicitly positions it against qa_run_audit's own check set ("Hundreds of WCAG A/AA checks on top of qa_run_audit's own set, narrowed to WCAG-tagged rules"). An agent can tell exactly what this does and how it differs from the sibling audit tool.

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

Usage Guidelines4/5

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

The description gives clear context for selection: use it for WCAG-tagged rules where every violation maps to a criterion, complementing rather than replacing qa_run_audit. It stops short of an explicit "use this instead of X when…" exclusion, so the agent must infer that qa_run_audit covers the non-axe checks.

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