Skip to main content
Glama

stop-simulator-server

Stops the transport session for one device and frees its resources. Use it to restart a wedged transport or stop one device's transport while keeping others running.

Instructions

Stop the transport session for a specific device (iOS simulator / Android: simulator-server process; physical iOS: the on-device runner; Chromium: CDP WebSocket) and free its resources; on a TV target it also reaps that device's TV-control daemons. Use to restart a wedged transport, or when the user is done with one device but wants to keep others running - not just because a task on it finished, since the next task on that device would start cold again. On iOS / Android / TV it deliberately leaves this device's native-devtools, accessibility, profiler and debugger services running - to drain those as well, use stop-all-simulator-servers with devices. On CHROMIUM, stopping the transport also ends the JS-runtime debugger session and its captured console history - reconnect with debugger-connect afterwards. Returns { stopped, udid }; stopped is false, not an error, when no session is open for the id.

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": "stop-simulator-server"
  }
}

Input Schema

NameRequiredDescriptionDefault
udidYesTarget device id (iOS UDID, Android serial, or Chromium id) whose transport session to stop

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.15.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses exactly what is torn down versus deliberately left running per platform, that TV targets additionally reap TV-control daemons, that Chromium stops also end the debugger session and console history, and that a false `stopped` is not an error.

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?

The core action and the primary when-to-use reason are front-loaded, and the remaining clauses are information-dense rather than filler. It is long for a one-parameter tool, but each clause (platform scope, what survives, Chromium debugger loss, return semantics) contributes distinct facts.

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?

Although there is no output schema, the description documents the return payload ({ stopped, udid }) and the meaning of the false case. For a single-parameter teardown tool with no annotations, nothing an agent needs to invoke or interpret it is missing.

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% and the schema already defines `udid` as the device id across iOS/Android/Chromium, so the description's restatement of the id meaning adds little beyond it. Baseline 3 applies since the schema does the heavy lifting for the single parameter.

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 ('Stop the transport session for a specific device') and then enumerates what the transport actually is per platform (simulator-server process, on-device runner, CDP WebSocket), which unambiguously separates it from session-management siblings.

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-to-use conditions ('restart a wedged transport', 'user is done with one device but wants to keep others running'), an explicit when-not ('not just because a task on it finished, since the next task would start cold again'), and names the alternative for draining auxiliary services (stop-all-simulator-servers with `devices`).

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