Skip to main content
Glama
XC-MCP: XCode CLI wrapper

XC-MCP: XCode CLI wrapper

by conorluddy

Shutdown Simulator

simctl-shutdown
Idempotent

Shut down specific, booted, or all iOS simulator devices via UDID, batch filters, or 'all' to free resources and prepare simulators for deletion.

Instructions

simctl-shutdown

Shutdown iOS simulator devices with intelligent device management.

Overview

Gracefully shuts down one or more iOS simulator devices. Supports shutting down specific devices, all currently booted devices, or all devices at once with smart targeting options. Better error handling with clear feedback when devices cannot be shut down.

Batch selection

Use all:true or deviceType/runtime filters instead of deviceId. Batch operations target available simulators; erase/delete require confirm:true. Results report each attempted device independently.

Parameters

Required

  • deviceId (string): Device UDID, "booted" for all booted devices, or "all" for all devices

Returns

Shutdown status with device information, duration, success indicator, command output, and next step guidance. Handles common scenarios like device already shutdown gracefully.

Examples

Shutdown specific device

await simctlShutdownTool({ deviceId: 'ABC-123-DEF' });

Shutdown all booted devices

await simctlShutdownTool({ deviceId: 'booted' });

Shutdown all devices

await simctlShutdownTool({ deviceId: 'all' });
  • simctl-boot: Boot device after shutdown

  • simctl-list: Find device UDID to shutdown

  • simctl-delete: Delete device after shutdown (required for deletion)

Notes

  • Smart device targeting: "booted", "all", or specific UDID

  • Graceful shutdown operation

  • Handles "already shutdown" scenario without error

  • State tracking updates internal device state for better recommendations

  • Batch operations efficiently handle multiple device shutdowns

  • Required before device deletion (safety check)

  • Use "booted" to quickly shutdown all running simulators

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": "simctl-shutdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNo
runtimeNo
deviceIdNo
deviceTypeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv5.0.0
    • addedInput schema / properties / all
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / deviceType
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / runtime
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "deviceId"
      -]
  2. Addedv4.1.0
  3. Removedv1.1.0
  4. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=false and idempotentHint=true, so the safety profile is known; the description adds meaningful behavior beyond that: graceful shutdown, 'already shutdown' handled without error, internal state tracking, per-device independent results, and duration/command output in the response.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Headers and examples aid scanning, but the content is repetitive — the booted/all/UDID targeting is restated in the Parameters section, three examples, and the Notes — and marketing filler like 'intelligent device management' and 'Better error handling' adds no callable information.

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?

With no output schema, the Returns section usefully describes response contents (status, duration, success, command output, next steps) and error scenarios, and the mutation-safety context is covered. The remaining gap is the undocumented all/deviceType/runtime parameters, which an agent would have to infer.

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 0% on 4 parameters, so the description must compensate. It fully explains deviceId (UDID, 'booted', 'all') but only alludes to all/deviceType/runtime in one batch-selection sentence with no types or filtering semantics; it also calls deviceId 'Required' while the schema marks zero required parameters.

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 ('Gracefully shuts down one or more iOS simulator devices') plus the targeting modes (specific device, booted, all), and the Related Tools section makes the contrast with simctl-boot and simctl-delete explicit.

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 routing guidance: prefer all:true or deviceType/runtime filters over deviceId for batches, use deviceId='booted' to shut down all running simulators, and note that shutdown is required before deletion. It does not explicitly say when NOT to use this tool versus simctl-erase/simctl-delete beyond the safety-check note.

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