Skip to main content
Glama

WCAG audit across several pages

audit_site
Read-only

Audits multiple pages against WCAG, running per-page checks plus cross-page comparisons for consistent navigation, link names, titles and help placement, reporting each criterion's status for the whole site.

Instructions

Audits several pages and returns the status of each success criterion for the site as a whole. Runs the same checks as audit_page on every page, then compares pages for consistent navigation order (3.2.3), consistent names for links to the same destination (3.2.4), duplicate titles (2.4.2), the number of ways to reach a page (2.4.5), cues for the current location (2.4.8), a consistent position for help (3.2.6) and fields that ask for the same information again (3.3.7). When urls is omitted, same-site links on the url page are followed up to maxPages. Time grows with the number of pages.

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

Input Schema

NameRequiredDescriptionDefault
urlYesURL of the start page. When urls is omitted, same-site links on this page are followed.
urlsNoURLs of the pages to audit. When given, no links are followed; only the start page and this list are audited.
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.
maxPagesNoMaximum number of pages to audit. Default 5.
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.1/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 earns credit for disclosing the crawl-without-urls behavior, the page cap interaction, and the cost profile (runtime scaling with page count). It also notes that results reflect site-wide status rather than per-page raw output. Still absent is anything about how findings are aggregated or what the response structure looks like.

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 purpose is front-loaded in the first sentence, followed by the differentiating check list and then the parameter-behavior note. It is dense but each sentence carries information; the long enumeration of success-criterion numbers is the one stretch that could be trimmed, since the schema's judgments parameter covers criteria.

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 nine-parameter, multi-page audit tool with no output schema, the description covers mode selection, cost, and what is returned at a high level (status per success criterion for the site). It would be stronger with a note on result format or limits, but nothing critical to correct invocation is missing.

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 including the judgments sub-object is already documented, setting the baseline at 3. The prose only repeats the url/urls/maxPages interplay and adds no new syntax, defaults, or format detail beyond the schema.

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 resource ("Audits several pages") plus a clear scope ("for the site as a whole"), and explicitly distinguishes itself from the sibling audit_page by naming what it adds: cross-page comparisons for 3.2.3, 3.2.4, 2.4.2, 2.4.5, 2.4.8, 3.2.6 and 3.3.7. An agent can tell exactly when this tool is the right one without opening any 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?

It states the operating mode ("same checks as audit_page on every page, then compares pages"), which implicitly routes single-page work to audit_page and site-wide consistency work here, and it clarifies that omitting urls triggers link-following up to maxPages. It also warns that "Time grows with the number of pages." What's missing is an explicit when-not (e.g., use audit_page for one page / when you already have urls) and any noted preconditions.

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