Skip to main content
Glama

Audit accessibility gaps

audit_accessibility

Scans React design-system code and flags images missing alt text, inputs without accessible names, and icon-only clickable elements lacking accessible names.

Instructions

Flags with no alt, with no accessible name, and icon-only clickable elements with no accessible name.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "rootDir": "<rootDir>"
    },
    "name": "audit_accessibility"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootDirYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations exist, so the description carries the full burden. It discloses the detection rules, which is genuinely useful, but says nothing about whether the tool is read-only, whether it scans recursively under rootDir, which file extensions it inspects, or what the results look like (there is no output schema either). For a scanner with zero annotation coverage, these are material omissions.

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 sentence with zero filler, and the concrete rule list is front-loaded. It is efficient, though its brevity contributes to the specification gaps noted elsewhere.

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

Completeness2/5

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

With no annotations, no output schema, an undocumented required parameter, and no routing to sibling audit tools, the definition leaves too much for the agent to infer about scope, safety, and return values.

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?

The single parameter rootDir has 0% schema description coverage, and the description never mentions it, so nothing explains whether it is a project root, a recursive scan target, or how paths are interpreted. The description does not compensate for the schema gap at all.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb ("Flags") and enumerates the precise detection targets: img without alt, input without an accessible name, icon-only clickable elements without a name. That is far more concrete than the title alone. It falls short of a 5 because it never states the scope of the operation (scanning a directory tree) and does nothing to distinguish itself from siblings like run_full_audit or scan_components.

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

Usage Guidelines2/5

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

There is no guidance on when to call this instead of run_full_audit or scan_components, and no mention of prerequisites, file types covered, or whether it must run before or after other audits. The agent must infer usage entirely from the name.

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