Skip to main content
Glama

Review a page

review_page
Read-only

Checks a page you composed before the user sees it. Pass the direction_id and the files you wrote, each with its content (page file, block files, CSS). Returns findings, each with severity, file and line, the problem and the exact fix: contrast below WCAG AA, also across the whole page where sections with different backgrounds meet (text inheriting the page colours onto a band, components fitted for the page placed on an opposite band, elements pulled across a section edge), colours outside the direction, more than one statement piece on a screen, images without alt, missing landmarks or skipped headings, motion without a reduced-motion fallback, widths that overflow a 375px phone, placeholder copy, missing licence headers. When this server can render, also screenshots at 1440 and 375px and what it measured there (sideways scroll, clipped or overlapping text, small tap targets, real contrast). Free; fix every high finding, then review again.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "review_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoInstead of files: an object that holds them, { files: [{ path, content }] }.
entryNoOptional: the path of the file that renders the page, when it is not page.tsx, App.tsx or index.tsx.
filesNoThe page file, its block files and any CSS it imports. Installed component files are optional (without them each shows as a labelled box in the screenshot).
widthsNoOptional screenshot widths in px (default [1440, 375]).
direction_idNoThe direction the page was composed for.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false; the description goes much further by stating the return shape (findings with severity, file and line, problem and exact fix), the full list of lint categories, that screenshots and measurements are added only "when this server can render", and that calls are free. That is real behavior an agent cannot get from the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence and the closing "free; fix every high finding, then review again" are well front-loaded, but the middle is one enormous comma-separated run-on enumerating a dozen lint rules, including a nested parenthetical. The content is relevant yet poorly structured and heavy to parse for an agent deciding whether to call.

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 five parameters, no output schema, and nested objects, the description carries the return-value burden and does so fully: findings schema, screenshot widths covered, and the conditional availability of rendering. Nothing an agent needs to call it correctly or interpret its result is absent.

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 direction_id, files, page, entry and widths. The description echoes the two main inputs (direction_id and files with their content, covering page/block/CSS) but adds no format or edge-case detail beyond that, 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?

"Checks a page you composed before the user sees it" names a specific verb (checks) and resource (the composed page), and the surrounding text clarifies it is a pre-delivery audit returning findings, not a composer or a renderer like preview_component. An agent can tell this apart from compose_page or fit_preview without opening the 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?

Timing is explicit: run it after composing and before the user sees the page, and "fix every high finding, then review again" gives a concrete loop. What is missing is any exclusion or named alternative (e.g. when to use preview_component or fit_component instead); no "do not use for X" guidance appears.

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