Skip to main content
Glama

screens.guide

Compare devices

compare_devices
Read-onlyIdempotent

Compares 2 to 8 devices side by side, one row per device and screen: window size, pixels, pixels per unit, safe-area insets, the safe area's rectangle and corner radii. Uses each device's current runtime and natural orientation unless an orientation or runtime is named.

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": {
      "ids": "<ids>"
    },
    "name": "compare_devices"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYes
runtimeNoA runtime build such as 24A434, or a version such as 27.2; the device's current build when omitted.
orientationNo

Output Schema

NameRequiredDescriptionDefault
rowsYes
datasetYes
missingYesDevices or screens with no reading for the runtime or orientation asked, and why.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and closed-world, so the description correctly focuses elsewhere: it discloses the row-per-device-and-screen output shape and the defaulting rules for runtime and orientation, which the annotations do not cover. It stops short of describing failure modes (unknown id, mismatched runtimes) but the output schema carries the return shape.

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?

Two sentences, both load-bearing: the first defines scope and output shape, the second defines default behavior. Scope and cardinality are front-loaded with no filler.

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 covering return values and annotations covering the safety profile, the description supplies the remaining essentials: device-count bounds, per-row granularity, and override defaults. Only error/edge-case behavior is left unaddressed, which is a minor gap for a read-only comparison tool.

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 only 33%, and the description compensates by explaining that runtime and orientation are optional overrides that fall back to the device's current build and natural orientation — semantics absent from the schema. The 2–8 device range is merely restated from minItems/maxItems, but the defaulting behavior adds real meaning.

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 ("Compares 2 to 8 devices side by side") and enumerates exactly what is compared: window size, pixels, pixels per unit, safe-area insets, safe-area rectangle, corner radii. The multi-device, one-row-per-device framing clearly separates it from single-device siblings like get_device.

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 comparison framing and the 2–8 device bound, so an agent can infer this is the tool for multi-device side-by-side data. However, no sibling is named and there is no explicit when-not guidance (e.g., use get_device for a single device, check_layout for layout validation), leaving routing to inference.

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.