Skip to main content
Glama

Reading order check

check_reading_order
Read-only

Static check for WCAG 1.3.2 Meaningful Sequence and 2.4.3 Focus Order. Pass source as HTML with style blocks and inline styles, or as bare CSS. Flags CSS order, row-reverse and column-reverse, grid-auto-flow: dense, explicit grid placement, absolute and fixed positioning, right floats, positive tabindex, a footer before main in the DOM and skipped heading levels. Returns the DOM sequence of landmarks and headings so you can compare it with the visual order. Reads the pasted source only; nothing is rendered or run, stored or logged. It does not compute layout, so media-query rules are flattened and selectors are not matched to elements.

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": {
      "source": "<source>"
    },
    "name": "check_reading_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesHTML with style blocks, or CSS.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the readOnlyHint/openWorldHint annotations with concrete disclosure: source is never rendered, run, stored or logged, and media-query rules are flattened while selectors are not matched to elements. That last point is exactly the kind of caveat an agent needs to avoid misreading results as a rendering check.

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 criteria and input format before the long flag list, and every clause is substantive. The enumeration of flagged patterns is dense but necessary for an agent to predict which findings come back.

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?

With no output schema, the description steps in to describe the return value (DOM sequence of landmarks and headings, to be compared against visual order) and the analytical limits. Nothing an agent needs to invoke it or interpret the response is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and there is only one parameter, so the schema already carries the baseline. The description still adds value by clarifying that inline styles are accepted alongside style blocks, which the schema summary omits.

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 and resource ('Static check for WCAG 1.3.2 Meaningful Sequence and 2.4.3 Focus Order') plus the exact set of conditions it flags. An agent can distinguish it from neighbours like plan_focus_order or site_heading_outline without opening any schema.

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?

The description makes the operating context explicit: pass pasted HTML or bare CSS, nothing is rendered, so it complements rather than replaces rendered audits. It never names a specific sibling as an alternative, which is why it falls short of a 5, but the when-to-use condition is unambiguous.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources