Skip to main content
Glama

screens.guide

Check a layout against a device

check_layout
Read-onlyIdempotent

Checks up to 200 frames of a screen's layout against a device's measured window: whether each frame reaches outside the window, into a safe-area inset, past the display's rounded corner, under the status, navigation or tab bar, across a foldable's fold, or into a reserved region such as a camera. Each finding gives its numbers; a frame near a rounded corner gets the concentric radius. Frames are in the device's unit, in window coordinates from the top left.

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": {
      "device": "<device>",
      "frames": "<frames>"
    },
    "name": "check_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceYesA device id from list_devices, such as iphone-17 or pixel-8.
framesYes
screenNoA foldable's pose: closed, open, half-open or tent; every other device has main only.
runtimeNoA runtime build such as 24A434, or a version such as 27.2; the device's current build when omitted.
rotationNoThe device's rotation; 90 puts its top edge on the window's left.
orientationNoThe window shape; the reading at rotation 0 when neither this nor rotation is given.

Output Schema

NameRequiredDescriptionDefault
deviceYes
framesYes
screenYesA foldable's pose: closed, open, half-open or tent; every other device has main only.
windowYes
datasetYes
runtimeYes
rotationYes
cornerRadiiNo
orientationYes
safeAreaInsetsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world, so the safety profile is covered; the description adds real context beyond that — the 200-frame cap, the specific violation classes checked, and the note that each finding reports its numbers with the concentric radius near corners. Coordinate origin and unit are disclosed, which is the kind of detail an agent cannot get from annotations. It stops short of saying how a missing/invalid device or unsupported pose is handled.

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 core verb and resource, then a compact enumeration of check types and a closing note on coordinate semantics. The opening is dense but no sentence is filler; the long middle clause is the only place that reads like a run-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, the description need not explain the return shape, and it doesn't need to — yet it still sketches what a finding contains. For a 6-parameter tool with rich enum'd geometry options, the description covers what is checked and in what coordinate space; the main omissions are error handling and how findings should be interpreted or prioritized.

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 83%, so the baseline is 3, and the description mostly restates what the schema already documents (device, frames, the 200 cap). It does add one genuinely new fact — frames must be expressed in the device's unit and in window coordinates from the top left — which meaningfully constrains how frames are supplied.

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 ("Checks … frames of a screen's layout against a device's measured window") and then enumerates exactly which violations are detected: overflow, safe-area inset, rounded corner, status/navigation/tab bar, fold, reserved regions. Nothing among the siblings (get_device, compare_devices, convert_units, list_devices) overlaps with this layout-validation job, so the agent can route on purpose alone.

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 rather than stated: the agent can infer this is the tool for validating frame geometry, and the schema's device hint points at list_devices for ids. There is no explicit when-to-use/when-not, no statement that a measured window is required, and no mention of what to do with the findings afterwards.

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.