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

XC-MCP: XCode CLI wrapper

by conorluddy

Delete Simulator

simctl-delete
DestructiveIdempotent

Permanently deletes iOS simulator devices and their data to free disk space; requires the simulator to be shut down and explicit confirmation before removal.

Instructions

simctl-delete

Permanently delete iOS simulator devices.

Overview

Permanently removes a simulator device and all its data from the system. This action cannot be undone. The simulator must be shut down before deletion. Useful for cleaning up unused simulators to save disk space (simulators can be 5-10GB each).

Confirmation

confirm: true is required before permanently deleting simulator or app data.

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 to delete (from simctl-list)

Returns

Deletion status with device information, confirmation that action is permanent, success indicator, command output, and guidance emphasizing permanent nature of deletion.

Examples

Delete specific simulator

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

Clean up old test device

await simctlDeleteTool({ deviceId: 'OLD-TEST-DEVICE-UDID' });
  • simctl-list: Find device UDID to delete

  • simctl-shutdown: Shutdown device before deletion (required)

  • simctl-create: Create new simulator after deletion

Notes

  • This action cannot be undone - device and all data permanently removed

  • Device must be shut down before deletion (safety check)

  • Simulators can be 5-10GB each - deletion frees significant disk space

  • Use simctl-erase instead if you want to keep device but reset state

  • Fast operation - completes in seconds

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-delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNo
confirmNoExplicitly confirm permanent data deletion.
runtimeNo
deviceIdNo
deviceTypeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv5.0.0
    • addedInput schema / properties / all
      Added value: +{
      +  "type": "boolean"
      +}
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "Explicitly confirm permanent data deletion.",
      +  "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

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description adds what the annotations cannot: the operation is irreversible, wipes all device data, requires a prior shutdown as a safety check, frees 5-10GB, and completes in seconds. It also discloses batch semantics (each attempted device reported independently), which is genuinely behavioral detail beyond structured fields.

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?

Front-loaded and well-sectioned, but the permanence warning is restated four separate times (Overview, Confirmation, Returns, Notes) and the two code examples are functionally identical, adding no information. Trimming those would lose nothing.

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?

There is no output schema, and the description still summarizes the return shape (per-device status, success indicator, command output). Combined with prerequisites, irreversibility, and sibling routing, an agent has everything needed to call it correctly and safely.

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 coverage is only 20% (just confirm), so the description must carry the load and mostly does: it explains deviceId as a UDID from simctl-list, confirm as the permanent-deletion gate, and all/deviceType/runtime as batch selectors used instead of deviceId. It falls short of 5 because the accepted format for runtime/deviceType values is never given and no enums exist to compensate, and it presents deviceId as "Required" while the schema lists zero required params and batch mode bypasses it.

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?

"Permanently delete iOS simulator devices" gives a specific verb (delete) and resource (simulator devices) plus a durability qualifier. The Related Tools section explicitly distinguishes it from simctl-erase (reset state, keep device) and simctl-shutdown (prerequisite), so an agent can route between them without reading schemas.

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?

States the preconditions (device must be shut down, confirm:true required), names the alternative for the adjacent use case ("Use simctl-erase instead if you want to keep device but reset state"), and routes to simctl-list for the UDID. This is explicit when/when-not/alternatives coverage.

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