Skip to main content
Glama

iphone_select_device

Idempotent

Switch the server to a different connected iPhone by UDID so subsequent device commands target that phone. Use when multiple iPhones are connected; stop WebDriverAgent on the current phone first.

Instructions

Switch this server to another iPhone; every following iphone_* call acts on that one.

Use it when several iPhones are connected and the user names another one. The iPhone must have been set
up with `iphone-mcp setup`. Not allowed when an admin pinned the server to one iPhone (IPHONE_MCP_UDID) or
while this server still runs WebDriverAgent on the current iPhone – call iphone_stop_agent first. After
switching, call iphone_start_agent if the new iPhone has no agent running.

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>"
    },
    "name": "iphone_select_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
udidYesUDID of the iPhone to control, as shown by iphone_list_devices.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=true; the description goes well beyond them by disclosing the persistent routing side effect on all subsequent iphone_* calls, the setup prerequisite, the admin-pin lockout, and the agent-must-be-stopped ordering constraint.

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 scope-and-effect sentence is front-loaded, followed by eligibility, then the blocking preconditions and the follow-up. Every sentence carries an actionable constraint, with no restatement of the name or filler.

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 one-parameter stateful switch with an output schema already defined, the description covers the routing effect, prerequisites, ordering constraints, and the necessary next call. An agent has everything needed to invoke it safely and in the right sequence.

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?

The schema already documents udid at 100% coverage and points to iphone_list_devices, so the description need not restate syntax. It does add a genuine validity constraint beyond the schema: the target iPhone 'must have been set up with `iphone-mcp setup`', which tells an agent what makes a candidate udid acceptable.

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 description states a specific verb and resource ('Switch this server to another iPhone') and immediately makes the consequence explicit: 'every following iphone_* call acts on that one.' That scope statement distinguishes it from every other iphone_* tool, which all act on a single device.

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 gives the triggering condition ('when several iPhones are connected and the user names another one'), two explicit prohibitions (admin pin via IPHONE_MCP_UDID, and while WebDriverAgent is running on the current iPhone), and the required remediation ('call iphone_stop_agent first'), plus a follow-up step ('call iphone_start_agent if the new iPhone has no agent running').

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