Skip to main content
Glama

Stop app

stop_app
Idempotent

Force-stops an Android app by package name so you can reset it to a clean state and reproduce bugs. Pair with launch_app for a fresh start.

Instructions

Force-stop an app by package name. Pair with launch_app to reset an app to a clean start when reproducing a bug.

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": {
      "package": "<package>"
    },
    "name": "stop_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
serialNoTarget device serial (adb -s). Optional when exactly one device is attached.
packageYesApplication package name (e.g. com.example.app).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds the 'force-stop' framing, which implies the process is killed without wiping state, but it never explicitly states that app data is preserved (unlike clear_app_data) or what happens if the app is not running.

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 with zero filler: the action is front-loaded and the workflow hint follows. Nothing is repeated from the title or annotations.

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 two-parameter, low-risk, output-schema-less tool, the description plus annotations cover everything needed to invoke it correctly. Minor omission: no note on behavior when the app is already stopped, though idempotentHint largely covers that.

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%: both 'serial' (with the single-device fallback) and 'package' (with an example) are fully documented in the schema. The description only reinforces that package is the selector and adds no syntax or format detail beyond what the schema provides, 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?

"Force-stop an app by package name" names a specific verb (force-stop), the resource (app), and the required identifier (package name). This clearly separates it from siblings like clear_app_data or uninstall_app, which act on app data rather than the running process.

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?

The description gives a concrete usage context: pair with launch_app to reset an app to a clean start when reproducing a bug, which names a sibling and a workflow. It stops short of explicitly excluding the nearest alternatives (clear_app_data, uninstall_app, reload_app), so the agent must infer the boundary.

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