Skip to main content
Glama

Stop App

app_stop
Idempotent

Force stop an Android application on a connected device by package name, optionally targeting a specific device serial.

Instructions

Force stop an application on a connected Android device

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

Input Schema

NameRequiredDescriptionDefault
deviceIdNoTarget device serial
packageNameYesApplication package name to stop

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds the notion of a 'force' stop, implying abrupt process termination, but never says that unsaved app state is lost or what happens when the target package is not running. No further behavioral context is offered beyond the annotations.

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?

It is a single front-loaded sentence with no filler and the key qualifier ('force') placed early. It is efficiently sized, though it offers no secondary detail an agent would benefit from.

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

Completeness3/5

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

For a two-parameter tool with full schema coverage and annotations covering the safety profile, the definition is minimally sufficient to call correctly. It is thin on consequences (loss of unsaved state) and on device selection behavior, which is a gap for a process-terminating action.

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 both parameters (deviceId, packageName) carry their own descriptions, so the description need not restate them. It adds no meaning beyond the schema, such as whether deviceId defaults to a single connected device or what format packageName expects, so the baseline 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?

The description states a specific verb plus resource ('Force stop an application') and its scope ('on a connected Android device'), which is more precise than the bare name. It does not explicitly differentiate itself from close siblings such as app_clear_data (wipes app data) or emulator_stop (shuts down an emulator), so the sibling contrast is left to inference.

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

Usage Guidelines3/5

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

The word 'force stop' implies termination of a running app rather than data removal, which hints at when this is preferred over app_clear_data, but the definition never states that alternative or any precondition. There is no guidance on required device state, whether the app must be running, or when not to use it.

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