Skip to main content
Glama

iphone_batch

Runs a known sequence of iPhone actions in one call, stops at the first failed step, and reports each step's result to reduce round trips for repeatable flows.

Instructions

Run a known sequence of actions in one call, e.g. open an app, tap through a menu, type and submit, then look once at the end.

Each step is a normal iphone_* tool call with the same arguments and the same admin policy checks, so
nothing is possible here that is not possible step by step. Use iphone_wait_for steps to wait for a screen
instead of fixed pauses. The batch stops at the first failed step (unless it is optional or stop_on_error
is false), when the iPhone gets locked, or after 300 s, and reports every step's result. Use it only for
steps you are sure of; when the next action depends on what appears, look first.

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": {
      "steps": "<steps>"
    },
    "name": "iphone_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYes1–50 steps run in order, each one tool call.
finishNoWhat to return after the last step: nothing more, the UI tree, or a screenshot.none
stop_on_errorNotrue stops at the first failed step that is not marked optional.

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 cover the safety profile (readOnlyHint=false, openWorldHint=true, idempotentHint=false), and the description adds substantial behavior beyond that: first-failure abort with optional-step exception, stop_on_error override, termination on a locked iPhone, a 300 s cap, and per-step result reporting. It also discloses that each step inherits the same admin policy checks as a standalone call, which is exactly the kind of context annotations cannot convey.

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?

Three short paragraphs: what it does, how steps behave and terminate, and the caution about using it only for known sequences. The caution is front-loaded at the end of the first paragraph rather than buried, and no sentence restates the title or schema.

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 no-output-schema compound tool with 50 max steps, the description covers termination conditions, failure semantics, per-step reporting, and the 'finish' return option, which is everything an agent needs to call it correctly. Nothing material is left to inference from the schema alone.

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?

Schema description coverage is 100%, so the baseline is 3; the description still adds value by contrasting iphone_wait_for steps against fixed pauses and by explaining why a sequence must be 'known' (dependent actions should be inspected first). It does not add syntax detail for 'steps' or 'finish' beyond the schema, keeping it a step above baseline rather than fully additive.

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 opens with a specific verb and scope: 'Run a known sequence of actions in one call,' and immediately explains the relationship to single-step siblings ('nothing is possible here that is not possible step by step'). An agent can tell this apart from iphone_tap / iphone_swipe without opening any schema.

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 states when to use it ('a known sequence'), when not to ('when the next action depends on what appears, look first'), and offers an in-batch alternative for a specific need ('Use iphone_wait_for steps to wait for a screen instead of fixed pauses'). That is explicit routing guidance, not implied usage.

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