Skip to main content
Glama

a11y-toolkit: DOCX accessibility screening

a11y_docx_screen
Read-onlyIdempotent

Screens local .docx files for accessibility issues such as missing alt text, fake headings, missing document language, and tables without header rows, returning JSON findings for review.

Instructions

DOCX accessibility screening — the other half of enterprise paperwork. Zero-dep structural pass on a LOCAL .docx with namespace-aware XML: images with no alt text (docPr without descr), fake headings (bold+big paragraphs with no Heading style — invisible to navigation pane and TOC), document language, tables without marked header row. Full review needs a human; this finds what makes it pointless. Returns JSON: {mode: "docx", language, images, tables, findings, summary, limits}.

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": {
      "path": "<path>"
    },
    "name": "a11y_docx_screen"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNooutput language
pathYeslocal .docx file path

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv5.9.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely new behavioral context: it is a static structural pass (not a rendered audit), it is namespace-aware XML parsing, it reports a 'limits' field, and it explicitly warns the result is not a full review. Missing only error behavior for unreadable/non-.docx paths.

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?

Front-loaded with purpose, then checks, then the human-review caveat, then the return shape — a sensible order with no repetition. One clause ('the other half of enterprise paperwork') is decorative rather than informative, a minor tax on an otherwise tight paragraph.

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?

No output schema exists, and the description compensates by listing the JSON keys returned (mode, language, images, tables, findings, summary, limits). Combined with the enumerated checks, an agent knows what it will get and what the tool will not do; only failure modes for bad paths are unaddressed.

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 coverage is 100% for both parameters and the schema already says 'local .docx file path' and 'output language' with an en/es enum. The description's only added constraint is the emphasis on LOCAL, which largely restates the schema — baseline 3 applies.

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 names a specific verb and resource — 'DOCX accessibility screening', a 'zero-dep structural pass on a LOCAL .docx' — and enumerates concrete checks (missing alt text via docPr without descr, fake headings, document language, unmarked table header rows). It clearly separates itself from URL/DOM/PDF siblings by file type, though it never names a sibling alternative explicitly.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: 'LOCAL .docx' tells the agent this is not for URLs, and 'Full review needs a human; this finds what makes it pointless' frames it as a screening step rather than a certification. There is no explicit when-to-use/when-not or pointer to a11y_audit_pdf for the PDF counterpart.

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