Skip to main content
Glama

Audit accessibility (WCAG 2.2 / European Accessibility Act)

audit_accessibility_wcag
Read-only

Crawls pages in a real browser and runs WCAG 2.2 A/AA/AAA checks to identify accessibility issues, report scores, and provide code-level fixes.

Instructions

Crawls pages in a real browser and runs axe-core WCAG 2.2 checks (A/AA/AAA), mapping issues to WCAG success criteria and EN 301 549 / European Accessibility Act duties. Returns a score, issue counts by impact, the affected pages and concrete code-level fixes, plus a full-report link. Automated testing finds a subset of WCAG issues; it does not replace a manual audit. Runs on the caller's own Apify account (APIFY_TOKEN) and is billed by Apify pay-per-event; nothing is charged by this server.

Input Schema

NameRequiredDescriptionDefault
urlYesPublic website URL, e.g. "https://example.com" (https:// is added if missing). Private/internal addresses are rejected.
maxPagesNoPages to crawl on the same host.
waitSecsNoHow long to wait for results before returning status "running" with a runId (the scan keeps going; use get_audit_results). Default 240.
wcagLevelNoConformance level to test against (AA is the legal baseline in most regions).AA
maxCostUsdNoSpend cap for this run on YOUR Apify account (forwarded to Apify as maxTotalChargeUsd). Default from server config ($2).
includeBestPracticesNoAlso report axe "best-practice" rules that are not strict WCAG failures.

Output Schema

NameRequiredDescriptionDefault
runYes
checkYes
gradeYes
scoreYes
dryRunYestrue = sample data from the built-in mock, NOT a real scan
statusYes"running" = the Actor is still working; call get_audit_results with run.runId later
targetYes
metricsYes
summaryYes
findingsYes
reportUrlNoFull report (HTML/JSON) in the Apify key-value store
datasetUrlNo
findingsTotalYes
severityCountsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/non-destructive/non-idempotent, and the description layers substantial additional context on top: execution happens in a real headless browser, results can come back asynchronously as 'running' with a runId, and there is a billing/auth model (caller's own APIFY_TOKEN, Apify pay-per-event, nothing charged by this server). It also discloses the tool's accuracy limitation, which an agent needs in order to interpret results responsibly.

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?

Four sentences, front-loaded with the action and then descending into output, limitations, and billing/auth. Each sentence carries distinct, non-redundant information and nothing repeats the schema or annotations.

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 an output schema present, the description needn't enumerate return fields, and it still summarizes them (score, impact counts, pages, code-level fixes, report link). Combined with disclosed auth/billing, async behavior, and scope limits, an agent has everything needed to call this correctly and interpret the result.

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 enum on wcagLevel and the spend cap is already documented in structured form. The description adds no parameter-level detail beyond the schema (e.g. it never explains maxPages or maxCostUsd trade-offs), so 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?

States a specific verb and resource ('Crawls pages in a real browser and runs axe-core WCAG 2.2 checks'), names the conformance standards (WCAG 2.2 A/AA/AAA, EN 301 549, EAA) and what it returns. This is clearly distinguishable from siblings like full_website_audit or scan_speed_and_revenue, which address different audit dimensions.

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?

The use context (accessibility/legal compliance auditing) is implied strongly, and there is a useful caveat that automated testing covers only a subset of WCAG issues and does not replace a manual audit. However, no sibling alternatives are named and no explicit when-to-use/when-not routing is given, e.g. versus full_website_audit or when to follow up with get_audit_results (only the schema hints at that).

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