Skip to main content
Glama

axe-core check

check_axe
Read-only

Audit a URL against WCAG with axe-core to detect accessibility problems in text alternatives, contrast, labels, ARIA, and headings; undecided checks are flagged for review.

Instructions

Runs the axe-core rules and detects problems with text alternatives, contrast, labels, ARIA, language declarations, heading structure and more. Results are organised by success criterion. Anything axe could not decide becomes review.

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": {
      "url": "<url>"
    },
    "name": "check_axe"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL of the page to check (http, https or file). A dev server such as http://localhost:3000/ works too.
wcagNoWCAG version to audit against. Default 2.2.
levelNoTarget conformance level. Default AA.
widthNoViewport width in CSS px. Default 1280.
heightNoViewport height in CSS px. Default 720.
waitMsNoExtra time to wait after load, in milliseconds.
waitForSelectorNoAfter load, wait until an element matching this CSS selector appears. Use it to wait for an SPA to render.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover readOnlyHint and openWorldHint, but the description adds real information: results are grouped by success criterion, and anything axe cannot decide automatically is surfaced as 'review'. That tell about undecidable items meaningfully shapes how an agent should interpret and act on the output. It stops short of describing cost or page-load behavior.

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?

Three short sentences, all front-loaded with the core action first, then output organisation, then the review caveat. No filler and nothing repeated from the schema or annotations.

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?

There is no output schema, so the description must say something about the return shape — and it does, by naming the success-criterion grouping and the 'review' bucket. For a seven-parameter, fully documented read-only tool this is close to sufficient, with only the absence of any expectation-setting about run duration or result volume as a remaining gap.

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 100%, with enums and defaults documented for wcag, level, width, height, waitMs, and waitForSelector, so the schema carries the full burden. The description adds no additional parameter meaning such as guidance on combining wcag/level or when a large waitMs is warranted.

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?

States a specific verb and resource: it runs the axe-core ruleset and detects accessibility problems, listing concrete categories (text alternatives, contrast, labels, ARIA, language, headings). This separates it from the narrower siblings like check_keyboard_focus and check_text_spacing, though it never explicitly says it is the general/broad check.

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

Usage Guidelines3/5

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

Usage is only implied — an agent can infer this is the baseline axe sweep versus the specialised check_* tools, but the description never states when to choose it over audit_page, check_presentation, or the focused checks. No exclusions, prerequisites, or alternatives are named.

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