Skip to main content
Glama

set_orientation

Idempotent

Rotate a connected iPhone or iPad to portrait, upside-down, or landscape orientations to test an app's rotated layouts; verify results with a screenshot.

Instructions

Set the device's orientation as the interface sees it, to test an app's rotated layouts. An app that doesn't support the orientation may not rotate, and this doesn't check; verify with screenshot. Coordinates change after a rotation, so call describe_ui again before tapping.

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

Input Schema

NameRequiredDescriptionDefault
deviceNoDevice UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device.
orientationYesOrientation to set

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.2
    • addedInput schema / properties / orientation / description
      Added value: +"Orientation to set"
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that the tool does not verify whether the app supports the orientation and that a failed rotation will be silent. It also flags a real state side-effect — screen coordinates shift after rotation — and prescribes re-reading the UI hierarchy, which annotations (idempotent, non-destructive) cannot convey.

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 purpose in the first clause, then caveats, then required follow-up actions; every sentence carries information. Slightly dense as a single block, but no sentence is wasted.

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, non-destructive device control with no output schema, the description covers purpose, silent-failure behavior, and the required post-call workflow. Nothing an agent needs in order to call it correctly and recover from it is missing.

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 description coverage is 100%, with both the device selector and the orientation enum fully documented in the schema, so the baseline is 3. The phrase 'as the interface sees it' hints at interpretation semantics, but the description adds no per-parameter detail beyond what the schema already supplies.

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 ('Set the device's orientation as the interface sees it') plus the intent ('to test an app's rotated layouts'). An agent can immediately distinguish this from read-only siblings like describe_ui or screenshot, which are instead referenced as follow-up steps.

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

Usage Guidelines4/5

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

Gives clear context for use (validating rotated layouts) and explicit follow-up sequencing: verify with screenshot, and call describe_ui again before tapping. It does not name an alternative tool or an explicit when-not-to-use case, but no plausible sibling performs this action, so the guidance is nearly complete.

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