Skip to main content
Glama

rotate_device

Set the screen to a fixed portrait or landscape orientation and disable auto-rotate to keep Android UI tests and screenshots consistent.

Instructions

Rotate the device screen to a fixed orientation (disables auto-rotate). Android only.

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": "rotate_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
observeNoCapture screenshot after rotating. Default: none
platformNoTarget platform. Inferred if omitted.
device_idNoDevice ID. Omit for the connected device.
orientationYesTarget orientation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the mutation profile is partially covered, and the description usefully adds the non-obvious side effect that auto-rotate is disabled. It does not say whether the orientation persists across app launches, how to restore auto-rotate afterwards, or whether any permission prompt may occur — all relevant for a persistent device-state mutation.

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?

A single front-loaded sentence with the action first, followed by the side effect and the platform constraint in parentheses. Every clause carries information; 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?

For a simple 4-parameter tool with full schema coverage and no output schema, the description covers purpose, side effect, and platform limitation adequately. The only real gap is post-call state behavior — persistence and how to re-enable auto-rotate — which an agent managing device state would reasonably want.

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%, so all four parameters are documented in the schema and the baseline is 3. The description adds one piece of meaning beyond the schema — that despite a 'platform' enum containing 'ios', this tool is Android-only — but says nothing about orientation values or the observe/screenshot option.

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+resource ('rotate the device screen') with the exact scope of the change ('to a fixed orientation') and a platform constraint ('Android only'). No sibling tool performs rotation, and the phrase 'disables auto-rotate' separates this from one-off view changes such as screenshot or get_screen_state.

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?

'Android only' is an explicit when-not condition, which is more than a bare purpose statement. However, no alternatives or prerequisites are named — there is no guidance on when to prefer this over set_appearance or when a caller should simply not rotate at all, and the implicit condition (needing a persistent orientation) is left to be inferred.

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