Skip to main content
Glama

terminate_app

DestructiveIdempotent

Force-quit a running app by bundle ID without uninstalling it or deleting its data. Unsaved app state is lost; use launch_app to restart it.

Instructions

Force-quit a running app by bundle ID, without removing it or its data. Any unsaved state in the app is lost. Use launch_app to restart an app (it quits the old copy itself), and press_button home to leave an app without quitting it.

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": "terminate_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)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.2
    • addedInput schema / properties / bundleId / description
      Added value: +"App bundle ID, e.g. com.example.MyApp (see list_apps)"
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description is not carrying the safety profile alone. It still adds the concrete consequence the hints cannot express: unsaved state is lost, but the app and its data remain. That is the single most decision-relevant fact for a force-quit, though return behavior and failure modes (e.g. app not running) are not covered.

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?

Three sentences, each doing distinct work: what it does and its blast radius, then two alternative routes. The destructive consequence is front-loaded in the same sentence as the action, with 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?

A two-parameter, output-schema-less tool with full annotation coverage; the description covers action, scope, and side effects adequately. Minor gap only: nothing says what happens if the bundle ID is not currently running, which matters for a retry-prone idempotent operation.

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 coverage is 100%, with bundleId documented including an example and a pointer to list_apps, and device documented including its fallback chain. The description only restates that identification happens by bundle ID, adding no format or resolution detail beyond the schema, so the baseline 3 applies.

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 ("Force-quit a running app by bundle ID") and immediately scopes it against the nearest confusion, removal ("without removing it or its data"), which separates it from uninstall_app. An agent can identify the operation without consulting any schema.

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?

Explicitly routes to two alternatives with the condition that selects each: launch_app to restart (noting it quits the old copy itself) and press_button home to leave an app without quitting. This is exactly the when-to-use/when-to-use-something-else guidance that prevents misuse.

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