Skip to main content
Glama

a11y-toolkit: Evidence pack (verifiable handoff)

a11y_evidence
Read-onlyIdempotent

Builds a tamper-evident WCAG evidence pack from audit reports: the 55-criterion A/AA matrix, remaining human review by effort, hashed artifacts, and a signature block for vendor-neutral handoff.

Instructions

Builds the verifiable evidence pack: the machine→human handoff object for WCAG conformance work. Takes one or more audit reports (any mode — static, rendered, reflow, keyboard, scroll) and returns: the full 55-criterion A/AA matrix (statuses: automated-fail / automated-review / not-flagged / not-run / manual-only / agent-verified — never a pass; not-flagged means an ACCEPTED report of a mode that can signal that criterion ran and found nothing, not-run names the missing tool, and reports carrying an error never count as coverage), remaining human review by effort class, with counts per class; every artifact SHA-256-hashed with timestamps, an empty signature block (name, credential, date) whose statement must reference the pack's own sha256, and the tamper-evidence rule stated. Vendor-neutral: any qualified human can review it. Evidence, never conformance. — The tier-3 handoff object; feed it every audit report you have. Returns the pack JSON (a11y-evidence-pack/3) as text content (the agent writes the file). Run after the audits you trust, and pass verified codes from the manual checklist — agent-verified never erases an automated-fail.

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": {
      "reports": "<reports>"
    },
    "name": "a11y_evidence"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoPack language: matrix status labels and notes (en default)
buildNoBuild reference sealed into the pack sha — the claim→artifact chain: {"commit":…, "ci_url":…} or {"ref": "git:716d870"}
scopeNoa11y_scope output: human-confirmed exclusions become not-applicable rows with their reason (machine proposals never exclude)
reportsYesaudit report objects (any mode)
reviewerNo{"name":…, "credential":…, "review_date":…} to prefill the signature block
snapshotNoa11y_snapshot output (optional)
verifiedNoCriterion codes an agent/human verified against this sample (manual checklist protocol) — they become agent-verified in the matrix; automated-fail stays fail

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv5.27.0
    • addedInput schema / properties / build
      Added value: +{
      +  "description": "Build reference sealed into the pack sha — the claim→artifact chain: {\"commit\":…, \"ci_url\":…} or {\"ref\": \"git:716d870\"}",
      +  "type": "object"
      +}
    • addedInput schema / properties / lang
      Added value: +{
      +  "description": "Pack language: matrix status labels and notes (en default)",
      +  "enum": [
      +    "en",
      +    "es"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / scope
      Added value: +{
      +  "description": "a11y_scope output: human-confirmed exclusions become not-applicable rows with their reason (machine proposals never exclude)",
      +  "type": "object"
      +}
  2. Changed7 schema fields changedv5.0.0
    • removedInput schema / properties / evaluador
      Removed value: -{
      -  "description": "{\"nombre\":…, \"credencial\":…, \"fecha_revision\":…} to prefill the signature block",
      -  "type": "object"
      -}
    • removedInput schema / properties / informes
      Removed value: -{
      -  "description": "audit report objects (any mode)",
      -  "items": {
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • addedInput schema / properties / reports
      Added value: +{
      +  "description": "audit report objects (any mode)",
      +  "items": {
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / reviewer
      Added value: +{
      +  "description": "{\"name\":…, \"credential\":…, \"review_date\":…} to prefill the signature block",
      +  "type": "object"
      +}
    • removedInput schema / properties / verificados
      Removed value: -{
      -  "description": "Criterion codes an agent/human verified against this sample (manual checklist protocol) — they become agent-verified in the matrix; automated-fail stays fail",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • addedInput schema / properties / verified
      Added value: +{
      +  "description": "Criterion codes an agent/human verified against this sample (manual checklist protocol) — they become agent-verified in the matrix; automated-fail stays fail",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "informes"
      -]New value: +[
      +  "reports"
      +]
  3. Changed1 schema field changedv4.0.0
    • addedInput schema / properties / verificados
      Added value: +{
      +  "description": "Criterion codes an agent/human verified against this sample (manual checklist protocol) — they become agent-verified in the matrix; automated-fail stays fail",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  4. Addedv3.12.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds genuinely useful behavior: the pack comes back as text content and the agent must write the file itself, artifacts are SHA-256 hashed with timestamps, and the signature block ships empty. It does not cover failure modes, size limits, or what happens when a report is rejected entirely (beyond 'reports carrying an error never count as coverage').

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and the call to action are front-loaded and the escaped em-dash callout ('tier-3 handoff object; feed it every audit report you have') works well. However, the definition is a single dense block with long parentheticals — most notably the 55-criterion status enumeration — that make it harder to parse than it needs to be for information that is largely essential.

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

Completeness5/5

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

Despite 7 parameters, nested objects, and no output schema, the description fully describes the return payload: the criterion matrix, review counts by effort class, per-artifact hashes and timestamps, the empty signature block and its sha256-referencing statement, and the delivery channel (text content, agent writes the file). Nothing an agent needs to invoke it correctly is missing.

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 description coverage is 100%, so the 3 baseline applies, but the description goes further by defining the status vocabulary and its edge cases ('not-flagged means an ACCEPTED report of a mode that can signal that criterion ran and found nothing, not-run names the missing tool') and by explaining that `verified` sets agent-verified while 'automated-fail stays fail.' The 'machine proposals never exclude' note likewise adds semantics for `scope` beyond its schema text.

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?

States a specific verb and artifact: 'Builds the verifiable evidence pack: the machine→human handoff object for WCAG conformance work,' and pins the output format (a11y-evidence-pack/3) plus the 'Evidence, never conformance' stance. It is clearly distinguishable from the audit-producing siblings by taking reports as input and emitting a sealed pack, though it never names a sibling generator (e.g. declaration/VPAT/OpenACR) to route against.

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?

'Run after the audits you trust' and 'feed it every audit report you have' give the agent an explicit sequencing rule and input-capture rule, plus a conditional for the `verified` path ('pass verified codes from the manual checklist'). It stops short of stating when not to use it or which sibling generator to pick for a different deliverable.

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