Skip to main content
Glama

Check the page on phone sizes

check_phone_fit
Read-onlyIdempotent

Checks a page at phone screen sizes to find mobile layout problems such as sideways scrolling, cut-off text, tiny tap targets, and blocking sticky bars.

Instructions

Loads one page at phone sizes from 320×568 to 430×932 (or the sizes given) in the Chrome or Edge on this computer, as a touch phone, and reports: anything wider than the screen (the page scrolls sideways) and which element; text cut off or drawn over other text; tap targets under 24×24 px without room around them (WCAG 2.5.8) and how many are under 44×44 px; text under 12 px; whether the main heading and a first button are on the first screen; fixed or sticky bars covering much of the screen.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe page to check, for example https://example.com
kindNoShow only this kind of problem, with every example. Use a `kind` name from an earlier answer; for 15 minutes the same arguments re-read that check instead of checking again.
sizesNoPhone sizes as WIDTHxHEIGHT in CSS pixels. Default: 320x568, 360x640, 375x667, 390x844, 412x915, 430x932.
delay_msNoPause between two requests to the site, in milliseconds (one request at a time).
ignore_robots_txtNoRead pages even where the site's robots.txt disallows crawling. Pass true only when the user has said the site is theirs or that they may test it (staging sites usually disallow everything). The report then says at the top that robots.txt was ignored.

Output Schema

NameRequiredDescriptionDefault
toolYes
factsYes
notesYes
passedYes
targetYes
readingYesHow to read this answer: the same lines end the text form
findingsYes
headlineYes
checked_atYes
robots_txtYes"ignored" only when the caller passed ignore_robots_txt
from_earlier_checkYesTrue when this answer re-reads an earlier check (because `kind` was given)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, openWorld and non-destructive, so the bar is lower; the description still adds real context by stating it drives Chrome or Edge locally, emulates a touch phone, and enumerates the six problem classes returned. It omits the 15-minute re-read caching behavior, which appears only in the schema for 'kind', but otherwise this is solid disclosure.

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?

One long but tightly constructed sentence that front-loads the action and the range, then lists findings with no filler. Every clause names a distinct check an agent can act on.

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?

With an output schema present and annotations covering safety, the description only needs to orient the caller, and it does so thoroughly for a 5-parameter tool. The one gap is that it doesn't help the agent decide between this tool and the other check_* siblings.

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 coverage is 100%, so every parameter is already documented, and the description adds no syntax or semantics beyond restating the size range and defaults the schema already lists. Baseline 3 is appropriate when the schema carries the load.

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 a specific verb and resource ('Loads one page at phone sizes') and details exactly what the report contains, so the agent knows this is viewport-width testing rather than a general page check. It never contrasts itself with the sibling check_page or check_accessibility, so routing between them still requires inference.

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 phrase 'at phone sizes' and the WCAG 2.5.8 mention, but there is no explicit 'use this when' or 'use check_accessibility instead' guidance. The only explicit conditional in the definition lives in the schema (ignore_robots_txt), not the description.

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