Skip to main content
Glama

start_driver

Starts the on-device XCUITest driver for iOS UI automation; UI tools start it automatically when controlling a connected iPhone or iPad.

Instructions

Start the on-device XCUITest driver (UI tools start it automatically). The first run on a device builds the runner and iOS asks for the passcode to allow UI automation.

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": "start_driver"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceNoDevice UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device.
rebuildNoForce a rebuild of the runner

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations, it discloses two non-obvious traits: the first run on a device compiles the runner (latency), and iOS will prompt for the passcode to authorize automation (an interactive authorization requirement). It does not say how long the build takes, whether the driver stays up until stop_driver, or what a failure looks like.

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?

Two tightly written sentences: the action plus its scoping caveat first, then the first-run side effects. Nothing is wasted and no clause is redundant.

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 two-optional-parameter tool with annotations and no output schema, this covers the essentials: what it does, that it is usually unnecessary, build cost, and the passcode prompt. Only the lifecycle relative to stop_driver and post-start state are left implicit.

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 coverage is 100%, so both parameters, including the device fallback chain and the rebuild flag, are already documented in the schema. The description's build-on-first-run note loosely contextualizes 'rebuild' but adds no syntax or defaulting detail beyond the schema.

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 and resource ('Start the on-device XCUITest driver') and immediately scopes it against the sibling UI tools by noting they start it automatically. An agent can tell whether it needs this call without opening the schema.

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 parenthetical 'UI tools start it automatically' gives a clear when-to-use signal (only when driving the driver directly / pre-warming), and the first-run note sets expectations. It stops short of an explicit 'call this when X, not when Y' rule or naming stop_driver as the counterpart.

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