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

XC-MCP: XCode CLI wrapper

by conorluddy

Uninstall App (IDB)

idb-uninstall
DestructiveIdempotent

Uninstall a user-installed iOS app by bundle ID and remove its data and preferences to enable a clean reinstall; system apps are protected.

Instructions

idb-uninstall

Uninstall application from iOS target - remove apps with complete data deletion for clean installs.

Overview

Removes installed applications by bundle ID with complete data and preferences deletion. Automatically terminates running apps before uninstall. Cannot remove system apps (user-installed only). Provides detailed error guidance for common failures (app not found, system app protection, uninstall errors).

Confirmation

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

Parameters

Required

  • bundleId (string): App bundle identifier to uninstall

Optional

  • udid (string): Target identifier - auto-detects if omitted

Returns

Uninstallation status with success indicator, bundle ID, command output, error details if failed, and troubleshooting guidance (app not found, system app protection, termination advice, alternative tools).

Examples

Uninstall app for clean reinstall

const result = await idbUninstallTool({
  bundleId: 'com.example.MyApp'
});

Uninstall from specific device

await idbUninstallTool({
  bundleId: 'com.example.MyApp',
  udid: 'DEVICE-UDID-123'
});
  • idb-install: Reinstall app after uninstall

  • idb-terminate: Stop app before uninstall (auto-handled)

  • idb-list-apps: Verify app is removed after uninstall

Notes

  • Removes app from target system completely

  • Deletes all app data and preferences

  • Automatically terminates app if running

  • Only user-installed apps can be uninstalled (system apps protected)

  • Clean install testing workflow: uninstall -> install -> test

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

Input Schema

NameRequiredDescriptionDefault
udidNo
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

A4/5.0
Behavior4/5

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

Annotations already declare destructive=true and readOnly=false, but the description goes beyond them: it discloses that app data and preferences are deleted permanently, that running apps are auto-terminated first, that system apps are protected, and that confirm:true is required. It doesn't cover permissions or rate limits, but for a destructive tool this is well above the annotation baseline.

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 with the core action, but the body is bloated: data deletion is repeated in Overview, Confirmation, and Notes; auto-termination appears in both Overview and Notes; and two near-identical code examples illustrate the same optional udid. Roughly a third of the text could be removed without losing information.

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?

With no output schema, the Returns section spells out the response shape (success indicator, bundle ID, command output, error details, troubleshooting guidance), and the Notes and Related Tools blocks cover the clean-install workflow. Nothing an agent needs to call this correctly is missing.

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 description coverage is only 33%, so the description must compensate, and it largely does: bundleId is identified as the app identifier, udid is said to auto-detect when omitted, and confirm is explained in the Confirmation section. One weakness is that the Confirmation section calls confirm required while the schema's required list contains only bundleId, leaving the agent with an ambiguous obligation.

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+resource pair ('Uninstall application from iOS target') and qualifies the scope ('remove apps with complete data deletion'). It does not, however, distinguish itself from the sibling simctl-uninstall, which an agent will see in the same tool list and could easily confuse with this one.

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 usage context: clean-install testing workflow, 'only user-installed apps can be uninstalled (system apps protected)', and a Related Tools block naming idb-install/idb-terminate/idb-list-apps as the surrounding steps. What's missing is an explicit statement of when to prefer this over simctl-uninstall.

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