Skip to main content
Glama

Launch / stop / reset app

android_launch
Destructive

Launch a default or specified Android app activity, stop or restart an app, or clear app data by package name; optionally target a device serial.

Instructions

Launch (default or given activity), stop, restart, or clear_data (wipes app 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": {
      "appPackage": "<appPackage>"
    },
    "name": "android_launch"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNoDefault launch
serialNoDevice serial; optional if one device
activityNoe.g. .MainActivity
appPackageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known. The description adds real value by specifying that clear_data wipes app data, but it does not say whether stop is a force-stop, whether launch starts a fresh process, or whether clear_data also stops a running app.

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?

A single front-loaded sentence enumerating the four modes with the destructive one flagged inline. Nothing is redundant and nothing needs to be read twice.

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 four-parameter mutation tool with no output schema, the definition covers the action surface and the destructive caveat but omits prerequisites, the appPackage format, and any indication of what success or failure looks like.

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 75% with an enum on action and an example for activity, so the schema carries most of the load. The description adds the meaning that omitting activity yields the default launcher activity, but the required appPackage parameter has no description anywhere and its expected format is never clarified.

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 names concrete verbs (launch, stop, restart) plus a named action (clear_data) against a clear resource (the app), which is enough to distinguish it from siblings like android_install or android_current_screen. It stops short of any explicit sibling differentiation, so it lands just below the top.

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 action list implies when each mode applies, and 'default or given activity' hints that activity is optional on launch. There is no guidance on when to use restart versus stop-then-launch, no prerequisite such as the app being installed or a device being connected, and no explicit warning about choosing clear_data.

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