Skip to main content
Glama

Audit against every WCAG success criterion

audit_page
Read-only

Audits a live page against WCAG 2.2 (or 2.1) success criteria by running axe-core plus built-in checks, returning a status for each criterion and an overall conformance verdict.

Instructions

Runs axe-core and every check in this server, and returns a status for every WCAG 2.2 success criterion up to the target level (set wcag to audit against 2.1 instead). criteria holds the status of each one: fail is a failure, review has spots that need checking, needs_judgment requires a look at the content, no_issue_found means nothing was found within what automation covers, inapplicable means no relevant element was found so it is presumed not to apply, and manual means no material can be gathered and a person must check. For needs_judgment and review, gather material with collect_evidence, decide, and run again with judgments to turn them into judged_pass and so on. conformance.verdict is nonconformant when there is a failure, undetermined while anything is open, and no_failure_found once everything is resolved.

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

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.
motionNoWhether to compare screenshots to find motion made by scripts, videos, GIFs and canvas (2.2.2). It waits 5 seconds after load, so false saves about 2 seconds per page (about 6 seconds in check_presentation). Default true.
waitMsNoExtra time to wait after load, in milliseconds.
judgmentsNoJudgments made from the material returned by collect_evidence. They are reflected in the criteria list. A criterion that failed an automated check stays failed even if pass is supplied.
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

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint, so the description carries the load and does: it defines all six status values, explains that no_issue_found is bounded by what automation covers, and clarifies the conformance.verdict transitions (nonconformant / undetermined / no_failure_found). It does not disclose runtime cost or the effect of motion/waitMs beyond what the schema already says.

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?

Purpose is front-loaded in the first clause, and the long status enumeration is necessary because no output schema exists. Dense but every sentence earns its place; the middle status list is the only part that reads as a run-on.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and seven parameters, the description compensates by explaining the shape of the result (criteria map plus conformance.verdict) and the judgment round-trip. An agent has everything needed to call it, interpret the result, and act on it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: judgments feed back into the criteria list and are the mechanism for resolving review items, and wcag is framed as 2.1-versus-2.2 selection. That is genuine semantics beyond the field descriptions.

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 — runs axe-core plus every check in the server — and returns a status per WCAG 2.2 criterion up to a target level. That distinguishes it from check_axe (a single check) and audit_site (site-wide) without needing to open the schema.

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?

Explains the intended flow explicitly: when criteria come back needs_judgment or review, gather material with collect_evidence, decide, then re-run with judgments. It also points out the wcag parameter for auditing against 2.1 instead of 2.2. It stops short of an explicit 'use audit_site instead when…' exclusion, so it is clear context rather than full routing.

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