Skip to main content
Glama

Stop Android app

android_force_stop_app
DestructiveIdempotent

Terminate a running Android app package via ADB to free resources or reset its state without clearing stored app data. Specify the package name and an optional device serial.

Instructions

Force-stop one installed package. This does not clear application data.

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

Input Schema

NameRequiredDescriptionDefault
deviceNoADB serial. Omit when exactly one device is ready.
packageNameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false. The description adds one genuinely useful clarification — that app data is not cleared — which softens the otherwise scary destructive hint. However, it says nothing about what force-stopping does to a running process, whether the app must be running, or what happens if the package is not installed, leaving meaningful behavioral gaps against annotations that only carry hint flags.

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?

Two short sentences, no filler, with the core action front-loaded and the data caveat immediately after. Every sentence earns its place.

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?

For a simple two-parameter mutation tool with no output schema and rich annotations, the description covers the action and the most important side-effect clarification. Only minor gaps remain, such as post-stop state or error behavior for a non-running or uninstalled package.

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 50%: the device parameter is documented in the schema while packageName is not. The description's phrase "one installed package" adds two useful constraints (singular, must be installed) beyond the bare string schema, but nothing about format or the device selector. Baseline 3 fits given partial schema documentation.

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 gives a specific verb+resource ("Force-stop one installed package") and bounds the scope to a single package. It is clearly distinguishable from siblings like android_launch_app or android_list_packages by action, though it does not name any sibling explicitly.

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 explicit when-to-use or when-not-to-use guidance, and no mention of alternatives (e.g., that relaunching requires android_launch_app). The intended usage is only implied by the verb "force-stop"; the second sentence is a behavioral caveat rather than routing guidance.

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