Skip to main content
Glama

Interaction check (WCAG 1.4.13 / 2.1.4 / 3.2.2 / 2.5.1 / 2.5.2 / 2.5.4 / 2.5.7 / 3.3.8 / 1.4.11 / 2.3.1 / 4.1.3)

check_interaction
Read-only

Operates a live page in a real browser to verify interaction-related WCAG criteria: hover dismissibility, keyboard shortcuts, field stability, motion listeners, contrast, flashing, and paste-blocked fields.

Instructions

Checks by actually operating the page. Hovers elements to see whether the revealed content can be dismissed and hovered, looks for shortcuts triggered by a character key alone, and checks that changing a field's value does not move the page. Also inspects event listeners for pointer and device motion, the contrast of field boundaries, fast flashing, status message regions, elements operated by dragging, and password fields that reject paste or CAPTCHAs. Navigation requests and non-GET requests are blocked, so no data on the server is changed.

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": "check_interaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL of the page to check (http, https or file). A dev server such as http://localhost:3000/ works too.
widthNoViewport width in CSS px. Default 1280.
heightNoViewport height in CSS px. Default 720.
waitMsNoExtra time to wait after load, in milliseconds.
waitForSelectorNoAfter load, wait until an element matching this CSS selector appears. Use it to wait for an SPA to render.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, but the description adds materially: it explains that navigation requests and non-GET requests are blocked so server data is never changed, which resolves the tension between openWorldHint and the interaction-based probing. It stops short of saying how long a run takes or how the per-criterion results are reported.

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 block, front-loaded with the operating mechanism before the enumeration of checks, and closed with the safety guarantee where it matters most. Nothing is redundant, though the middle sentence is a long comma-spliced list that is harder to scan than a bulleted structure.

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 five-parameter, no-output-schema tool with full schema coverage, the description supplies what annotations cannot: which techniques are exercised and what side effects are blocked. The main remaining gap is the response shape and per-criterion result granularity, which the agent must infer.

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 description coverage is 100% and each parameter (url, width, height, waitMs, waitForSelector) is already documented in the schema, including defaults and the localhost case. The description adds no additional parameter meaning, 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?

The description opens with a specific verb and mechanism ('Checks by actually operating the page') and then enumerates the concrete checks: hover dismissal, single-character shortcuts, field-value-induced movement, pointer/motion listeners, field boundary contrast, flashing, status regions, drag operations, and paste/CAPTCHA-blocked password fields. That scope is clearly distinct from static-analysis siblings like check_reflow or check_text_spacing.

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 by 'actually operating the page' and the listed interaction checks, which signals this is the runtime/interaction-level tool rather than a static renderer. However, it never states when to prefer it over check_keyboard_focus or check_presentation, nor any prerequisites such as needing a headless browser or live page.

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