Skip to main content
Glama

launch_app

Destructive

Launch an installed iOS app in the foreground on a connected device, restarting it if already running, and optionally buffer its console logs for retrieval.

Instructions

Launch an app in the foreground, restarting it if it is already running. With captureLogs, the app's console output (print/NSLog and os_log/Logger messages) is buffered for get_app_logs, keeping the last 5000 lines; starting a new capture discards the old buffer. The app must already be installed. Use open_url to enter through a deep link.

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": "launch_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceNoDevice UDID or name substring. Defaults to the select_device choice, then IOS_DEVICE_MCP_DEVICE, else the single USB-connected device.
bundleIdYesApp bundle ID, e.g. com.example.MyApp (see list_apps)
logLevelNoWith captureLogs: debug (default) includes Logger.debug; info drops debug; stdout captures only print/NSLog
argumentsNoLaunch arguments passed to the app
captureLogsNoBuffer console output for get_app_logs (default false)
environmentNoEnvironment variables set for the app

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.2
    • addedInput schema / properties / arguments / description
      Added value: +"Launch arguments passed to the app"
    • addedInput schema / properties / bundleId / description
      Added value: +"App bundle ID, e.g. com.example.MyApp (see list_apps)"
    • addedInput schema / properties / captureLogs / description
      Added value: +"Buffer console output for get_app_logs (default false)"
    • addedInput schema / properties / environment / description
      Added value: +"Environment variables set for the app"
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, and the description explains exactly why: an already-running app is restarted, i.e. its current state is replaced. It adds behavior not in the structured fields: console output is buffered for get_app_logs, the buffer keeps the last 5000 lines, and starting a new capture discards the old buffer — plus the logLevel dependency on captureLogs.

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

Conciseness5/5

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

Four tight sentences with the primary action and its restart side effect front-loaded, followed by the logging contract and then prerequisites/alternatives. Each sentence carries information an agent needs to call the tool correctly; no filler.

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?

Covers the mutation side effect, the prerequisite, the logging lifecycle, and the deep-link alternative, which is strong for a 6-parameter tool with no output schema. Minor gaps remain: it does not say what happens when the bundle is not installed (error vs. auto-install) or how launch arguments are surfaced to the app.

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 100%, so the baseline is 3; the description earns more by explaining that captureLogs feeds get_app_logs, that only the last 5000 lines are retained, and that a new capture resets the buffer. It is silent on device resolution, arguments, and environment, but those are already described in the schema.

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 ('Launch an app in the foreground') plus a distinctive behavior ('restarting it if it is already running'). It explicitly separates itself from open_url for deep-link entry and points to list_apps for bundle IDs, so an agent can route between siblings without inspecting schemas.

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 clear preconditions ('The app must already be installed') and names the alternative for deep-link entry ('Use open_url to enter through a deep link'). It does not cover other nearby cases, such as when to use terminate_app or a reinstall flow instead, but the primary when-to-use context is explicit.

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