Skip to main content
Glama

a11y-toolkit: Hover dismissibility (1.4.13)

a11y_hover
Read-onlyIdempotent

Tests tooltip and overlay candidates on a page by hovering each and checking whether Escape dismisses them, flagging those that fail WCAG 1.4.13.

Instructions

Content on Hover or Focus (1.4.13): finds tooltip/overlay candidates, hovers each, and tests whether Escape dismisses the result — tooltips that do not dismiss are flagged. Requires local Playwright. — Scope: tooltips only; full audit is a11y_audit_dom, keyboard traps are a11y_keyboard. Returns JSON: {candidates, dismissed_on_escape, findings}.

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": {
      "url": "<url>"
    },
    "name": "a11y_hover"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPage URL to test
langNoOutput language (en default)
browserNoBrowser engine (auto = detect the first available)
timeoutNoPage load timeout (45 default)
auth_stateNoPath to a Playwright storage_state JSON (exported session) to audit behind login — stays local

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv5.27.0
    • addedInput schema / properties / browser
      Added value: +{
      +  "description": "Browser engine (auto = detect the first available)",
      +  "enum": [
      +    "auto",
      +    "chromium",
      +    "firefox",
      +    "webkit",
      +    "chrome",
      +    "msedge"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changedv5.5.0
    • addedInput schema / properties / auth_state
      Added value: +{
      +  "description": "Path to a Playwright storage_state JSON (exported session) to audit behind login — stays local",
      +  "type": "string"
      +}
  3. Addedv4.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds genuinely new behavioral facts: it drives a real browser, it exercises hover state, failures are flagged rather than silently reported, and it requires a local Playwright install. The one gap is that it does not warn whether hovering can trigger navigation or side effects on the page — relevant for a browser-driving tool — so it is not a full 5.

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 the criterion and the action, then scope, prerequisites, and return shape in a compact block. The em-dash-separated clause chain is dense but every clause earns its place; a slightly cleaner sentence split would read better.

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?

There is no output schema, and the description compensates by naming the return keys ({candidates, dismissed_on_escape, findings}). Combined with the scope exclusions and the local-Playwright prerequisite, nothing an agent needs to call this correctly is missing.

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% with enum values and defaults already documented, so the schema carries the parameter burden. The description adds no syntax or format detail for url, auth_state, timeout, or browser, so the 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?

Names the specific criterion (WCAG 1.4.13) and the concrete action chain: finds tooltip/overlay candidates, hovers each, tests Escape dismissal, flags failures. This is distinguishable from siblings, and the description explicitly says what it is not (a11y_audit_dom for full audits, a11y_keyboard for traps).

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

Usage Guidelines5/5

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

Gives an explicit scope boundary ("tooltips only") plus named alternatives for the adjacent needs, and states a hard prerequisite ("Requires local Playwright"). An agent knows both when to pick this tool and when to route elsewhere.

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