Skip to main content
Glama

Reflow check (WCAG 1.4.10)

check_reflow
Read-only

Detects horizontal scrolling, overflowing elements, and clipped text at narrow viewport widths. Renders pages at 320px and returns findings with WCAG criteria and CSS selectors.

Instructions

Renders the page at 320px wide (1280px zoomed to 400%) and detects horizontal scrolling, elements that overflow the viewport and text that gets clipped when narrowed. Each finding carries the success criterion and a CSS selector for the element. Severity fail is a failure confirmed mechanically; review needs a human decision.

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

Input Schema

NameRequiredDescriptionDefault
urlYesURL of the page to check (http, https or file). A dev server such as http://localhost:3000/ works too.
widthNoWidth to check in CSS px. Default 320.
heightNoHeight to check in CSS px. Default 256.
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.8/5.0
Behavior4/5

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

Beyond the readOnly and openWorld annotations, the description explains the rendering approach, the types of defects detected, the finding metadata, and the distinction between mechanically confirmed 'fail' and human-decided 'review' severities. It does not cover error handling or limitations, but it substantially describes behavior and return semantics.

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?

The description is three short sentences with no wasted wording. It is front-loaded with the rendering action and detection scope, then adds finding contents and severity semantics in a logical order.

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 read-only check with no output schema and full parameter documentation, the description sufficiently explains what is checked, what findings include, and how severities should be interpreted. Minor gaps remain around error cases or edge conditions, but the core behavioral picture is complete enough to call the tool correctly.

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 the schema already documents each parameter. The description adds the default viewport context of 320px and 1280px zoomed to 400%, but does not meaningfully expand on waitMs, waitForSelector, width, height, or URL beyond what the schema provides.

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 states a specific action and resource: render the page at 320px and detect reflow problems such as horizontal scrolling, overflow, and clipped text. It is clear what the tool does, though it does not explicitly distinguish itself from sibling checks like check_text_spacing or check_presentation.

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 WCAG 1.4.10 context and the description of narrowing the viewport, but there is no explicit when-to-use guidance or comparison to alternative checks. An agent can infer the context but is not routed away from or toward siblings.

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