Skip to main content
Glama

rotate

Set the target iOS Simulator or Android Emulator orientation to test layout in portrait, landscape, or upside-down modes.

Instructions

Set the device orientation. Use when testing 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 on a TV target, or if the target device is not booted.

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": {
      "udid": "<udid>",
      "orientation": "<orientation>"
    },
    "name": "rotate"
  }
}

Input 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, the description carries the full burden and does so well: it discloses the mutation's side effect on frame coordinates, the return shape ({ orientation }), and two failure modes. The foldable iOS quirk — `Portrait` producing a landscape UI and vice versa — is exactly the kind of counterintuitive behavior an agent could not infer elsewhere.

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?

The primary action is front-loaded in the first sentence, followed by follow-up guidance, the edge-case caveat, and the return/failure contract. Every sentence carries distinct operational information with no restatement of the name or schema.

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?

For a two-parameter mutation with no output schema and no annotations, the description supplies the return value, side effects, preconditions, failure cases, and the sibling to use for the adjacent operation. Nothing an agent needs to call it correctly is missing.

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 baseline would be 3; the description earns above that by redefining what the `orientation` value actually means on an unfolded foldable device, where the value controls the device rather than the UI. It does not elaborate on `udid` beyond the schema, which already points to `list-devices`.

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 opening sentence gives a specific verb and resource ("Set the device orientation"), immediately distinguishing it from siblings such as gesture-rotate, describe, and fold. A reader knows exactly what state this tool mutates without opening the schema.

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 states the triggering scenario ("Use when testing layout in a different orientation"), prescribes a concrete follow-up call (re-run `describe` because frame coordinates shift), and routes the folding case to the sibling `fold`. It also names two conditions under which the call fails: a TV target and an unbooted device.

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