Skip to main content
Glama

Check a page's accessibility

check_accessibility
Read-only

Inspect a WordPress page's rendered HTML for accessibility problems, covering headings, images, links, forms, iframes, and colors, with WCAG references and fix suggestions.

Instructions

Fetch a page on the configured site and run deterministic accessibility checks on its server-rendered HTML: html lang, page title, a single h1 and no skipped heading levels, images without alt (alt="" is treated as decorative), links and buttons with no accessible name, generic link text ("read more", "click here"), form controls without labels, duplicate ids, iframes without title, autoplaying media, a viewport that disables zoom, and WCAG contrast of block colour classes (has-{slug}-color / has-{slug}-background-color and inline colours) resolved against the theme palette. Each issue has a WCAG reference, severity, snippet and fix. Works on draft-theme preview URLs from get_preview_url. It does not run JavaScript or compute CSS, so it complements rather than replaces a browser audit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoPath or full same-site URL, e.g. "/about/", or a preview URL from get_preview_url (its query parameters are kept)./
rulesNoOnly run these rules. Omit for all.
site_idNoWhich configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids.
max_issuesNoCap on issues listed; counts always cover every issue found.
preview_tokenNoToken from get_preview_url, to check a draft theme when passing a plain path.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already mark it read-only and non-destructive, and the description adds a substantial amount beyond that: it does not run JavaScript or compute CSS, it is deterministic, and every issue includes a WCAG reference, severity, snippet, and fix. This is especially valuable because there is no output schema to document the return 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?

The definition is front-loaded with the core action and then lists the checks and limitations in one dense paragraph. The exhaustive rule list and issue-format details all earn their place, though the single paragraph could be more scannable with bullets or separation between purpose, checks, output, and limitations.

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?

For a tool with no output schema and a complex rule set, the description is complete: it covers what it checks, what each issue contains, what it cannot do, and how it relates to preview URLs and browser audits. An agent has enough context to invoke it correctly and interpret results.

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 the schema already documents all five parameters, including preview-token and rules semantics. The description does not add parameter-level meaning beyond what the schema provides, but it does not need to; 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 resource: 'Fetch a page on the configured site and run deterministic accessibility checks on its server-rendered HTML.' It enumerates the exact rule set and explicitly positions the tool as a complement to browser audits, so an agent can distinguish it from generic audit or validation tools.

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 gives clear context for when to use the tool: server-rendered HTML, draft-theme preview URLs from get_preview_url, and situations where a full browser audit is unnecessary or out of scope. It does not, however, explicitly name sibling alternatives or state 'use this instead of X', so it stops short of full when-to-use/when-not-to-use guidance.

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

Deploy Server

Other Tools