Skip to main content
Glama

rotate

Changes the simulator or emulator device orientation to Portrait, LandscapeLeft, LandscapeRight, or PortraitUpsideDown. Use it to test how your app's layout adapts to different screen orientations.

Instructions

Set the device orientation to Portrait, LandscapeLeft, LandscapeRight, or PortraitUpsideDown. Use to test layout in a different orientation. Re-run describe afterwards — frame coordinates change with the orientation. On an unfolded foldable iOS simulator (the iPhone Duo), the value sets the orientation of the device, not of the UI: Portrait gives a landscape UI and LandscapeLeft gives a portrait UI. To fold or unfold the device, use fold. Returns { orientation }. Fails if the target device is not booted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
udidYesTarget device id from `list-devices` (iOS UDID or Android serial).
orientationYesTarget orientation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.0

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations provided, the description fully carries the behavioral burden. It discloses the foldable simulator anomaly, the device-vs-UI orientation difference, the return value, the failure condition, and the fact that frame coordinates change with orientation.

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?

Every sentence earns its place: purpose, usage guidance, foldable caveat, return value, and failure mode. The description is front-loaded with the action and contains no filler or redundancy.

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?

Despite having only 2 parameters and no output schema, the description is complete enough for an agent to call the tool correctly and interpret the result. It covers purpose, post-conditions, return shape, failure cases, and a device-specific edge case.

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 100%, so the baseline is 3. The description adds valuable semantics for the `orientation` parameter by explaining the iPad Duo foldable-specific mapping, which is not in the enum description. The `udid` parameter gains no new detail, but the schema already covers it.

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 begins with a specific verb and resource: 'Set the device orientation', and enumerates all four permitted values. This clearly distinguishes it from related sibling tools like `fold` and `gesture-rotate`.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

It explicitly states when to use the tool: 'Use to test layout in a different orientation.' It also provides a follow-up action (re-run `describe`) and routes fold/unfold operations to the `fold` sibling, giving clear guidance on alternatives.

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