Skip to main content
Glama

stop_driver

Idempotent

Stops the XCUITest driver on an iOS device to free resources or reset driver state; succeeds even if no driver is running.

Instructions

Stop the XCUITest driver on the device. Rarely needed: it stops when the server exits, and the next tool that needs it starts it again. Succeeds even if no driver is running.

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": "stop_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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true, so the description is not carrying the safety profile alone. It still adds real context beyond those flags: the driver self-terminates with the server, restarts lazily on the next dependent call, and the call "succeeds even if no driver is running." It stops short of saying whether an in-flight test session or app state is affected, which is the one remaining behavioral question.

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 sentences, each doing distinct work: action, usage guidance, and idempotency guarantee. Front-loaded with the operation, no 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-optional-parameter lifecycle tool with annotations covering safety and no output schema, this covers everything an agent needs: what it does, that it is usually unnecessary, and that it is safe to call unconditionally.

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 description coverage is 100% and the single optional `device` parameter is fully documented with its default resolution chain. The description adds no parameter detail, so the baseline 3 applies.

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 concrete verb and resource ("Stop the XCUITest driver on the device"), which is the clear lifecycle counterpart to the sibling start_driver. An agent can distinguish it from every other listed tool 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-not-to-use guidance: "Rarely needed: it stops when the server exits, and the next tool that needs it starts it again." That tells the agent the default path is to skip this tool and that there is no cleanup obligation, which is stronger than a bare when-to-use statement.

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