Skip to main content
Glama

a11y-toolkit: aria-live monitor snippet

a11y_aria_live_snippet
Read-onlyIdempotent

Generate JavaScript to monitor ARIA live region announcements, logging time, politeness, role, and text for screen reader diagnostics.

Instructions

Returns injectable JavaScript for an aria-live announcement monitor (bookmarklet or page.evaluate): logs every dynamic-region announcement with time, politeness, role and text — what a screen reader would say, visible on screen. — Diagnostics aid to inject in a browser; not an audit by itself.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNomonitor panel language (en default)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.12.0
    • changedInput schema / properties / lang / description
      Previous value: -"monitor panel language (es default)"New value: +"monitor panel language (en default)"
  2. Changed1 schema field changedv3.3.0
    • changedInput schema / properties / lang / description
      Previous value: -"Idioma del panel del monitor (es por defecto)"New value: +"monitor panel language (es default)"
  3. First observedv2.3.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, so safety is covered. The description adds behavioral detail: it logs announcements with time, politeness, role, and text, and is visible on screen, which goes beyond the structured metadata.

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, front-loaded with the purpose, no redundant words.

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?

For a simple tool with one optional parameter and no output schema, the description explains the return value (injectable JavaScript), its purpose, and its non-audit nature. It could mention the exact return type but is sufficient.

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 covers the only parameter (lang) with a description and default, so the description adds nothing about parameters. Baseline 3 applies.

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?

States a specific verb (Returns) and resource (injectable JavaScript for an aria-live announcement monitor), and explicitly distinguishes itself from an audit. Clear and unambiguous.

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?

Provides usage context by calling itself a diagnostics aid and clarifying it is not an audit, but does not name alternative tools or specify when to prefer it over siblings.

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