Skip to main content
Glama

Scan raw HTML for accessibility issues

scan_html

Run an accessibility audit on any HTML snippet. Detect WCAG violations and get fix guidance for markup not served at a URL.

Instructions

Runs an axe-core accessibility audit against a raw HTML string (rendered in headless Chromium). Use for markup snippets or generated HTML that isn't served at a URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
htmlYesThe HTML markup to scan.
tagsNoWCAG / rule tags to run, e.g. ["wcag2a","wcag2aa","wcag21aa","best-practice"]. Omit to run the default rule set.
rulesNoOnly run these axe rule ids, e.g. ["color-contrast","image-alt"].
detailNo"summary" lists violated rules and counts only; "full" (default) also lists offending elements and fix guidance.full
maxNodesNoMax offending elements to list per rule when detail=full.
excludeRulesNoAxe rule ids to skip.
includeIncompleteNoAlso report axe "incomplete" items — checks that need manual review (e.g. color-contrast over images, aria-hidden focus). Off by default; set true to surface likely issues automated rules could not confirm.
Behavior4/5

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

No annotations provided, so the description carries full burden. It discloses that the scan runs axe-core in headless Chromium, which is transparent for a read-only scan. However, it does not mention potential limitations (e.g., handling of external resources) or return value details.

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?

The description is extremely concise—two sentences with no extraneous text. It front-loads the core purpose and follows with a clear usage statement, earning high marks for efficiency.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 7 parameters and no output schema, the description is minimally adequate. It covers purpose and use case but omits any description of return values or output structure, leaving agents without expectations for what the tool returns.

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 baseline is 3. The description adds no parameter-specific information beyond what the schema already provides, meeting the baseline but not exceeding it.

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 clearly states the tool's purpose: running an axe-core accessibility audit on a raw HTML string. It distinguishes itself from siblings by specifying usage for markup snippets or generated HTML not served at a URL.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit guidance on when to use: 'Use for markup snippets or generated HTML that isn\'t served at a URL.' This clearly defines the use case and implicitly excludes URL-based scans, differentiating from siblings like scan_url.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ravindrabisht12/axe-devtool-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server