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

XC-MCP: XCode CLI wrapper

by conorluddy

Uninstall App from Simulator

simctl-uninstall
DestructiveIdempotent

Uninstalls iOS apps from simulators by bundle ID, removing app data and preferences for clean testing or space cleanup.

Instructions

simctl-uninstall

Uninstall iOS apps from simulators.

Overview

Removes an installed app from a simulator by its bundle ID. This cleans up all app data, preferences, and the app bundle itself from the simulator. Useful for clean testing, data removal, space management, and workflow automation.

Confirmation

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

Parameters

Required

  • udid (string): Simulator UDID (from simctl-list)

  • bundleId (string): App bundle ID (e.g., com.example.MyApp)

Returns

Uninstall status with bundle ID, simulator info (name, state, availability), success indicator, command output, and guidance for reinstallation or app management.

Examples

Uninstall app from simulator

await simctlUninstallTool({
  udid: 'ABC-123-DEF',
  bundleId: 'com.example.MyApp'
});

Clean install workflow

// Uninstall old version
await simctlUninstallTool({
  udid: 'TEST-DEVICE',
  bundleId: 'com.example.MyApp'
});
// Then reinstall
await simctlInstallTool({
  udid: 'TEST-DEVICE',
  appPath: '/path/to/MyApp.app'
});
  • simctl-install: Reinstall app after uninstall

  • simctl-list: Find simulator UDID

  • simctl-get-app-container: Check app container before uninstall

Notes

  • Bundle ID must follow format: com.company.appname

  • Removes app and all associated data/preferences

  • Validates simulator exists before attempting uninstall

  • Useful for clean testing workflows

  • Frees simulator disk space by removing unused apps

  • Test cycles requiring clean app installs benefit from uninstall automation

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>",
      "bundleId": "<bundleId>"
    },
    "name": "simctl-uninstall"
  }
}

Input Schema

NameRequiredDescriptionDefault
udidYes
confirmNoExplicitly confirm permanent data deletion.
bundleIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv5.0.0
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "Explicitly confirm permanent data deletion.",
      +  "type": "boolean"
      +}
  2. Addedv4.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is partly structured. The description still adds real behavioral context beyond that: the mandatory 'confirm: true' gate, that app data and preferences are removed along with the bundle, and that the simulator is validated first. It does not state failure modes when the app is not installed, which keeps it from a 5.

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?

Well structured with front-loaded headings, but bloated: the 'Notes' section largely repeats the Overview ('clean testing workflows', 'frees disk space', 'clean app installs') and the two code examples overlap. Roughly a third of the text could be cut without losing information an agent needs.

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 destructive two-parameter tool with no output schema, this covers the essentials: confirmation requirement, parameter sources, return payload shape, and related tools for follow-up. The remaining gap is disambiguation from idb-uninstall, the nearest equivalent sibling.

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 33% (just the confirm flag), so the description must carry the load, and it does: udid is sourced from simctl-list and bundleId is given a format with an example (com.example.MyApp). The confirm gate is also restated in its own section. Minor gap: no note on whether bundleId is case-sensitive or what an invalid ID returns.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: 'Uninstall iOS apps from simulators', and the Overview adds the keying mechanism ('by its bundle ID'). That is enough for an agent to distinguish it from reads like simctl-list or simctl-get-app-container, though the description never differentiates it from the sibling idb-uninstall, which plausibly does the same thing.

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?

It gives clear usage contexts ('clean testing, data removal, space management, and workflow automation') and a concrete clean-install workflow pairing uninstall with simctl-install. What is missing is an explicit when-not-to-use, particularly versus the sibling idb-uninstall or the broader simctl-erase, which also remove data.

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