Skip to main content
Glama

a11y_audit_dom

Audit a rendered page for WCAG 2.2 issues with Playwright/Chromium: contrast against composited backgrounds, target size, focus visibility, alt text, labels, and headings.

Instructions

Deep RENDERED WCAG audit via local Playwright/Chromium: real computed text contrast against effective backgrounds with alpha compositing (1.4.3), minimum target size 24×24 (2.5.8, new in WCAG 2.2), visible focus indicator heuristic (2.4.7), plus rendered versions of the static checks (alt, accessible names, labels, headings, lang/title, tabindex, aria-hidden, captions, tables). Findings include remediation. Requires playwright: pip install playwright && playwright install chromium.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
langNo
timeoutNopage load timeout seconds (45 default)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.3.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses the Playwright/Chromium runtime dependency with the exact install command, describes what each check measures (alpha compositing, 24×24 targets), and states that findings include remediation. It stops short of describing failure modes, rate limits, or output shape.

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?

A single dense paragraph that front-loads the primary purpose before the parenthetical criterion list and ends with the prerequisite. The criterion parentheticals are information-rich, though slightly heavy; every clause earns its place.

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 3-param tool with no output schema and no annotations, the description covers purpose, scope, checks, remediation output, and runtime prerequisites well. The gap is parameter-level semantics, which is the one area left thin.

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

Parameters2/5

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

Schema coverage is 33% – url and lang have no descriptions, and only timeout is documented in the schema. The description adds nothing about the parameters (no URL format, no explanation of the lang enum's effect on locale-specific checks), so it fails to compensate for the coverage gap.

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?

Names a specific verb+resource ('deep RENDERED WCAG audit via local Playwright/Chromium') and enumerates the exact checks performed with WCAG criterion numbers. It also implicitly distinguishes itself from a11y_audit_url by describing 'rendered versions of the static checks'.

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 'Deep RENDERED' framing and the 'rendered versions of the static checks' phrase imply this is the heavier Playwright-based counterpart to the static a11y_audit_url, but no explicit when-to-use or when-not-to-use guidance is given. An agent must infer the routing from the adjective 'deep'.

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