Skip to main content
Glama

Target size, visual presentation and motion check (WCAG 2.5.5 / 2.5.8 / 1.4.8 / 2.2.2 / 1.4.2 / 1.3.5)

check_presentation
Read-only

Detect WCAG 2.2 presentation issues on a page: undersized or crowded tap targets, justified or poorly spaced text, motion lasting over 5 seconds, autoplaying audio, and missing autocomplete.

Instructions

Detects controls whose target is smaller than 44 × 44px, controls below 24 × 24px that are also too close to a neighbour, text that is justified or whose line height or line length is out of range, animations and other content that keep moving for more than 5 seconds (found from the declared animations and by comparing screenshots taken after 5 seconds), autoplaying media with sound, and personal-data fields without autocomplete. 2.5.5 and 1.4.8 are Level AAA criteria; 2.5.8 is a Level AA criterion of WCAG 2.2.

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_presentation"
  }
}

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.
motionNoWhether to compare screenshots to find motion made by scripts, videos, GIFs and canvas (2.2.2). It waits 5 seconds after load, so false saves about 2 seconds per page (about 6 seconds in check_presentation). Default true.
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.6/5.0
Behavior4/5

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

Annotations declare readOnlyHint and openWorldHint, so the safety profile is already covered, and the description adds genuinely useful behaviour: motion detection works by comparing screenshots taken after 5 seconds, waits ~5 seconds after load, and costs about 2 extra seconds when enabled. It also discloses the level classification of the criteria (AAA vs AA), which helps interpret severity. It stops short of saying how findings are reported or whether it navigates/loads external subresources.

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?

The content is front-loaded with the detection list and closed with a short, useful note on WCAG levels; no sentence is filler. The first sentence is an extremely long single run-on enumeration of seven checks, which makes it harder to scan than it needs to be, but nothing is wasted.

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

Completeness3/5

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

This is a complex multi-check tool with six parameters and no output schema, so the description has to carry more weight than average. It fully covers what is checked but says nothing about the shape of the results — whether findings are returned per criterion, whether they include selectors or evidence, or whether severity is attached — which an agent needs to plan an audit. Adequate on scope, incomplete on outcome.

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%, so every parameter already carries a description including defaults and bounds; the baseline of 3 applies. The description adds only indirect colour on the motion switch ('comparing screenshots taken after 5 seconds'), which the schema already spells out. It contributes no new meaning for url, width, height, waitMs or waitForSelector.

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 specific, verifiable things the tool detects — target sizes below 44×44px, sub-24×24px controls that are too close to a neighbour, justified text, line-height/line-length ranges, motion persisting past 5 seconds, autoplaying audio, and missing autocomplete — and maps them to named WCAG criteria. That is a concrete verb+scope rather than a restatement of the title. It loses a point because it never distinguishes itself from siblings like check_axe or check_text_spacing, which plausibly overlap on typography and general rule scanning.

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 the criteria list: run this when you need 2.5.5/2.5.8/1.4.8/2.2.2/1.4.2/1.3.5 coverage. There is no explicit statement of when to prefer it over check_axe or check_text_spacing, nor any note about preconditions or ordering within an audit. The only real guidance given is about the motion parameter's cost, which lives at parameter level rather than usage level.

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