Skip to main content
Glama

Robot Actions — Remote Device Control

iOS orientation get HID

ios_orientation_get_hid
Read-onlyIdempotent

Read the device orientation and whether the iOS orientation lock is on, without touching the screen (no automation session needed). Returns JSON {orientation, non_flat_orientation, locked}: orientation can be faceUp/faceDown when the device lies flat, and non_flat_orientation is the last upright one, which is what the UI is laid out for. The lock can be read but not changed here. Returns "no HID available" on iOS 17.x / no-tunnel.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
udidYesiOS device UDID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations cover safety hints, but the description adds substantial behavioral context beyond them: the exact JSON return shape, field meanings (faceUp/faceDown, non_flat_orientation), the read-only lock limitation, and the 'no HID available' failure mode on iOS 17.x/no-tunnel. This is exactly the kind of detail an agent needs.

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?

Four sentences, each earning its place: purpose/benefit first, then return format, then a key limitation, then an error condition. No filler, front-loaded, easy to scan.

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 simple read tool with one parameter, rich annotations, and no output schema, the description fully covers what the agent needs: what it returns, how to interpret fields, what it cannot do, and when it fails. Nothing material 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?

Only one parameter (udid) and schema coverage is 100%, so the schema already fully documents it. The description adds no parameter-specific meaning, which is acceptable given the baseline of 3 for high schema coverage.

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 ('Read the device orientation and whether the iOS orientation lock is on') and immediately distinguishes itself from session-based siblings with 'without touching the screen (no automation session needed)'. The scope and mechanism are unambiguous.

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: use when no automation session is desired, and notes the lock cannot be changed here. It does not name specific alternative tools or state when *not* to use it, but the primary usage condition is explicit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources