Skip to main content
Glama

Rotate screen

rotate_screen

Rotate an Android emulator to the next orientation to test portrait/landscape layouts and rotation-driven state loss. Emulator-only.

Instructions

Rotate the emulator to its next orientation (adb emu rotate) — the quick way to exercise landscape/portrait layout and rotation-driven state loss. Emulator-only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "rotate_screen"
  }
}

Input Schema

NameRequiredDescriptionDefault
serialNoTarget device serial (adb -s). Optional when exactly one device is attached.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare non-destructive and closed-world, so the description's real contribution is the emulator-only restriction plus the hint that rotation can trigger state loss, which matters for repeated calls. It still leaves the rotation cycle order and whether the new orientation is reported as output unspecified.

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?

One sentence of purpose with the underlying command inline, then a two-word scoping clause. Nothing is padded and the actionable constraint is front-loaded.

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 zero-required-param tool with no output schema, the definition covers purpose, mechanism, device scope, and the state-loss side effect. The only meaningful gap is how orientation cycles (clockwise vs. next enum value), which an agent must discover empirically.

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% and the single optional serial parameter is fully documented in the schema itself. The description adds no extra meaning about the serial beyond the implicit emulator constraint, so the baseline of 3 applies.

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?

"Rotate the emulator to its next orientation" gives a specific verb and resource, and the parenthetical "(adb emu rotate)" grounds it in a concrete operation. It is trivially distinguishable from siblings like press_key or set_sensor because none of them target display orientation.

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?

The description supplies the intent ("exercise landscape/portrait layout and rotation-driven state loss") and a hard scoping restriction ("Emulator-only"), which tells the agent when not to reach for it. It stops short of naming an alternative for physical devices, so it is clear context rather than an explicit routing rule.

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