Skip to main content
Glama

iPhone USB

iphone_usb
Destructive

Send touch and keyboard input to a paired iPhone over USB, capture PNG screenshots, launch installed apps, and verify each action using observation IDs.

Instructions

Control the enrolled, unlocked iPhone over paired USB. Observe returns native PNG pixels, image size and observationId. Tap/hold points:[[x,y]], swipe:[start,end], pinch:[start1,end1,start2,end2], all in returned image pixels. Mutations need a fresh UUID requestId; except launch, also supply latest observationId. Use type for printable ASCII in a visibly focused field, or paste for Unicode only when replacing the iPhone clipboard is intended. key sends a named key. Launch takes an installed bundle ID. Inspect the returned screen to verify the goal. Never repeat uncertain input; receipt reads the same requestId.

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": {
      "action": "<action>"
    },
    "name": "iphone_usb"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNo
keyNo
textNo
actionYes
pointsNo
requestIdNo
observationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing preconditions (device must be enrolled, unlocked, and paired over USB), the mutation contract (fresh UUID requestId, plus the latest observationId for everything except launch), the idempotency escape hatch via receipt, and the coordinate frame ('all in returned image pixels'). That materially changes how an agent sequences calls — observe first, then mutate with the returned observationId — which the destructiveHint/idempotentHint flags alone do not 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-loads the resource and transport, then walks through actions and requirements in a tight, information-dense sequence with no filler sentences. The telegraphic semicolon-heavy style and unusual syntax like 'points:[[x,y]]' cost some readability, but nearly every clause carries operational meaning.

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 7-parameter, 12-action, destructive, open-world tool with no output schema, the description covers preconditions, coordinate semantics, the mutation/idempotency contract, and the observe return payload (native PNG pixels, image size, observationId). The main remaining hole is behavior of the 'status' and 'image' actions relative to 'observe', which an agent must guess.

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?

With schema description coverage at 0%, the description carries the burden and mostly succeeds: it defines the points layouts per action (points:[[x,y]] for tap/hold, [start,end] for swipe, four points for pinch), the role of requestId and observationId, the app bundle ID for launch, and text/key usage. Gaps remain for the 'status' and 'image' actions and for constraints like the 192-character text cap, which are undocumented in both schema and prose.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ('Control the enrolled, unlocked iPhone over paired USB') and enumerates the concrete action surface (observe, tap/hold, swipe, pinch, type, paste, key, launch, receipt), so an agent knows exactly what capability this tool exposes. It never contrasts itself with siblings such as iphone_screen or iphone_receipt, so sibling differentiation is left to inference.

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 real when-to-use rules among the actions: type only for printable ASCII in a visibly focused field, paste only when deliberately replacing the iPhone clipboard, key for named keys, launch for an installed bundle ID. It also supplies retry guidance ('Never repeat uncertain input; receipt reads the same requestId') and a verification loop ('Inspect the returned screen to verify the goal'). It stops short of saying when this tool should be preferred over the sibling screen/observation tools.

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