Skip to main content
Glama
allchemylabs

@allchemylabs/aether-wcag-scanner

Official
by allchemylabs

aether_get_fix

Resolve WCAG violations with a concrete, verified fix or a rule-level explanation. Supply the failing HTML for a fix; omit it for success criteria, techniques, and failure patterns.

Instructions

Get a RAG-powered fix OR explanation for a WCAG violation. Pass html (the failing element) to get a concrete fixHtml plus a measured verification. Omit html to get a rule-level explanation (WCAG success criteria, technique code examples, failure patterns, and fix guidance). Requires ALLCHEMY_API_KEY for RAG output; falls back to templates without it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoURL where the violation was found (context only; not navigated to)
htmlNoThe failing HTML element's outerHTML. Omit to get a rule-level explanation instead of an element-specific fix.
ruleIdYesAxe-core rule ID (e.g. "button-name", "image-alt", "color-contrast")
verifyNoRe-run real axe on original vs fixed HTML to measure whether the fix works (default true). Ignored in explanation mode.
parentHtmlNoParent element's outerHTML for context
siblingHtmlNoSibling elements' opening tags (tight lockups) — lets contrast flag logo-adjacent text
childrenHtmlNoChildren innerHTML for context
failureSummaryNoAxe's failureSummary string

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden of behavioral disclosure. It reveals RAG dependence, API key requirements, template fallback, and the verify-only-in-fix-mode behavior. This is substantial, though it does not disclose response shape details or potential error/rate-limit behavior.

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?

Three tightly written sentences front-load the purpose, then explain the mode switch, then disclose the credential dependency. There is no filler, and each sentence 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?

Given the eight-parameter schema, high schema coverage, and absence of an output schema, the description covers the key behavioral branches and dependencies. It could be slightly more specific about the exact response shape, but it explains both modes and the key constraint, making it sufficient for an agent to select and call the tool correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds meaningful parameter-interaction semantics: html omission switches modes institution, and verify is 'Ignored in explanation mode.' This goes beyond a simple restatement of schema fields.

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: 'Get a RAG-powered fix OR explanation for a WCAG violation.' It clearly distinguishes the two operating modes (fix with html, explanation without) and is semantically distinct from siblings like aether_check_html and aether_verify_fix.

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?

The description gives explicit conditional guidance: 'Pass html ... to get a concrete fixHtml' versus 'Omit html to get a rule-level explanation.' It also notes the ALLCHEMY_API_KEY requirement and fallback behavior. No explicit comparison with sibling tools is provided, but the mode-based guidance is clear enough for correct invocation.

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