Skip to main content
Glama

app_stop

Force-quit a running app on a specified virtual device by providing its device ID and app package or bundle identifier.

Instructions

Force an app to quit.

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": {
      "device": "<device>",
      "app": "<app>"
    },
    "name": "app_stop"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesApp id: Android package, Apple bundle identifier; on "mac" the bundle identifier or app name (required there)
deviceYesDevice id (or exact name) from the devices tool

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing beyond "force". It does not say whether unsaved state is discarded, whether the call errors when the app is not running, what permissions or OS restrictions apply, or whether termination is immediate or asynchronous.

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

Conciseness4/5

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

A single short, front-loaded sentence with no filler or redundant restatement of the schema. It is efficient, though its brevity reflects thin content rather than disciplined editing of rich content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is structurally simple (2 required string params, no output schema), which lowers the bar, but a force-termination mutation with zero annotations needs the description to explain side effects and failure modes, and it does neither.

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% and the two parameters (app, device) are fully documented in the schema, including platform-specific app-id formats. The description adds no additional meaning about parameter usage, so the baseline of 3 applies.

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?

"Force an app to quit" names a specific verb (force quit) and resource (app), so the agent knows exactly what the call does. It does not, however, differentiate itself from neighbors like app_reset or device_stop, which could plausibly be confused with it without opening their schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this versus app_reset (restart?) or device_stop, and no mention of prerequisites such as the app needing to be running. The word "force" hints at unresponsive-app scenarios, but this is left entirely to inference.

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