Skip to main content
Glama

Scan a local HTML file for accessibility issues

scan_file

Run an axe-core accessibility audit on a local HTML file to detect WCAG violations and receive fix guidance.

Instructions

Runs an axe-core accessibility audit against a local .html file on disk (loaded via file:// so linked CSS/assets resolve). Use for static-site build output. Note: single-page-app build files are usually empty shells hydrated by JS — scan the running dev server with scan_url instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to a local .html file (absolute, or relative to the server's cwd).
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
includeNoOptional CSS selector to scope the scan to one region of the page.
maxNodesNoMax offending elements to list per rule when detail=full.
timeoutMsNoLoad timeout in ms (default 30000).
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.
Behavior3/5

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

No annotations provided, so description carries full burden. It discloses the file:// loading behavior but does not mention side effects, error handling, or whether the file is modified. While safe to assume read-only, more detail on outcomes would improve transparency.

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?

Two sentences are front-loaded with purpose and usage guidance. Every sentence adds value, with no wasted words.

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?

Despite having 9 parameters and no output schema, the description covers purpose and key context. However, it lacks explanation of the output format, which is needed since no output schema exists. This gap prevents a higher score.

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 does not mention any parameters or add meaning beyond the schema, so it does not exceed baseline.

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 runs an axe-core audit against a local .html file, specifying the file:// loading mechanism. It distinguishes itself from sibling tools by advising against scanning SPAs and directing to scan_url instead.

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?

Explicitly states when to use (static-site build output) and when not to (single-page app build files), providing a clear alternative (scan_url). This gives an agent actionable guidance.

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