Skip to main content
Glama

screens.guide

Get a device's readings

get_device
Read-onlyIdempotent

Returns a device's measured readings: window, pixels, safe-area insets, corner radii, size classes, status, navigation and tab bars, content margin, reserved regions and fold, one reading per screen and rotation. Gives the current runtime's readings unless a runtime is named; narrow them by screen, orientation or rotation. A null value has its reason in the reading's missing.

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": {
      "id": "<id>"
    },
    "name": "get_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesA device id from list_devices, such as iphone-17 or pixel-8.
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.
orientationNo

Output Schema

NameRequiredDescriptionDefault
deviceYes
datasetYes
runtimeYes
readingsYes

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 cover the safety profile (readOnlyHint, idempotentHint, closed-world), yet the description still adds real context: one reading per screen and rotation, the runtime defaulting rule, and critically that a null value is explained by the reading's `missing` field. That last detail is the kind of behavior an agent could not infer from annotations or schema and prevents misreading nulls as errors.

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?

Three tightly packed sentences, front-loaded with the return content before the defaulting and filtering rules. The field enumeration is long but it is the highest-value information for tool selection, so it earns its space; nothing is redundant padding.

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 re-explain return shape, and it still gives the null/`missing` contract that the schema alone would not make obvious. What remains thin is routing guidance against siblings (check_layout, compare_devices), the only real gap for a read tool of this complexity.

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 80%, so the schema already documents all five parameters including the enum semantics for screen and rotation. The description adds only framing — that screen, orientation and rotation act as filters over the per-rotation readings and that runtime defaults to the current build — which largely restates the schema's own 'when omitted' note.

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?

The description opens with a specific verb and resource ("Returns a device's measured readings") and then enumerates exactly what kinds of readings: window, pixels, safe-area insets, corner radii, size classes, status/navigation/tab bars, content margin, reserved regions and fold. That enumeration lets an agent distinguish this from check_layout or compare_devices 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states useful defaults and narrowing behavior ("current runtime's readings unless a runtime is named; narrow them by screen, orientation or rotation"), which implies when this tool is the right call. But it never says when to prefer check_layout or compare_devices instead, nor any prerequisite beyond having an id, so guidance stays implicit rather than explicit.

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.