Skip to main content
Glama

Check accessibility (WCAG 2.2 AA)

check_accessibility
Read-onlyIdempotent

Checks a page for WCAG 2.2 AA accessibility issues at phone and desktop widths, including real-pixel text contrast over images, gradients, and video, then reports each problem by element and rule.

Instructions

Runs axe-core (WCAG 2.2 AA rules) on one page at phone and desktop widths, after scrolling through it so lazy and below-the-fold sections are drawn. Then measures contrast on the real pixels for every line of text axe leaves 'to review' (text over a photograph, a gradient or a video): each line against the worst of what is actually behind it. Reports each problem with the element, what is wrong and the WCAG rule. Uses the Chrome or Edge on this computer.

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_accessibility"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe page to check, for example https://example.com
kindNoShow only this kind of problem, with every example. Use a `kind` name from an earlier answer; for 15 minutes the same arguments re-read that check instead of checking again.
widthsNoCheck at phone width, desktop width, or both.both
delay_msNoPause between two requests to the site, in milliseconds (one request at a time).
ignore_robots_txtNoRead pages even where the site's robots.txt disallows crawling. Pass true only when the user has said the site is theirs or that they may test it (staging sites usually disallow everything). The report then says at the top that robots.txt was ignored.

Output Schema

NameRequiredDescriptionDefault
toolYes
factsYes
notesYes
passedYes
targetYes
readingYesHow to read this answer: the same lines end the text form
findingsYes
headlineYes
checked_atYes
robots_txtYes"ignored" only when the caller passed ignore_robots_txt
from_earlier_checkYesTrue when this answer re-reads an earlier check (because `kind` was given)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, open-world, non-destructive, so the safety bar is met. The description adds genuinely useful behavior: it scrolls the page so lazy/below-the-fold sections render, it measures real pixels behind text over photos/gradients/video, it uses a specific local browser, and the robots.txt override is disclosed in the parameter and report. Runtime cost and request pacing are only hinted at via the delay_ms parameter.

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?

The key capability is front-loaded in the first clause and each following sentence covers a distinct mechanism (scrolling, pixel contrast, reporting, browser). It is dense but nearly every clause earns its place; the browser sentence at the end is the most expendable.

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 an output schema present, return structure need not be explained, and the description correctly focuses on how checking is performed and what is reported (element, problem, WCAG rule). What is missing is rough guidance on how heavy a run is, which matters for a tool that drives a browser across two widths.

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%, so every parameter is already documented with defaults, bounds, enum values and the 15-minute re-read caching behavior. The description adds no parameter-level meaning beyond that; the baseline of 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?

The description opens with a specific verb and engine ("Runs axe-core (WCAG 2.2 AA rules)") scoped to "one page at phone and desktop widths", and adds the second, distinguishing capability of pixel-level contrast measurement for inconclusive text. This separates it clearly from broader siblings like check_site or check_page.

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?

"on one page" vs the site-wide siblings gives clear scope, and the local Chrome/Edge requirement sets a precondition. However, it never explicitly says when to use check_page or check_site instead, nor does it state exclusions, so routing is implied rather than spelled out.

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