Skip to main content
Glama

Launch app

launch_app

Launch an Android app by package name on a selected device, starting its launcher activity and reporting the resolved component or a clear error if unavailable.

Instructions

Launch an app by package name (starts its LAUNCHER activity) and echo the resolved component on success. Fails with a clear message (not a raw monkey dump) when the package isn't installed or has no launcher activity. Combine with stop_app to restart an app cleanly from a known state.

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": "launch_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.1/5.0
Behavior4/5

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

Annotations already declare non-destructive and non-open-world, so the safety profile is covered; the description adds what the agent actually needs beyond that — the LAUNCHER-activity targeting, that the resolved component is echoed on success, and that failure produces a clear message rather than a raw monkey dump.

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?

Three short sentences, front-loaded with the action and mechanism, then failure behavior, then the sibling pairing. The parenthetical "(not a raw monkey dump)" is a slightly incidental implementation aside but still communicates error quality, so it 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?

There is no output schema, so the description usefully states what success returns (the resolved component) and what failure looks like. Device targeting is covered by the schema. Only the relationship to restart-adjacent siblings remains unaddressed, which is minor for a simple two-parameter 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 description coverage is 100%, so both `package` and `serial` are already documented, including the single-device default for `serial`. The description reinforces that `package` is a package name but adds no format or resolution detail beyond the schema, so the baseline of 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?

States a specific verb and resource ("Launch an app by package name") and immediately explains the mechanism — starting the package's LAUNCHER activity — which separates it from siblings like install_app, reload_app, and app_state without needing to name them.

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?

Gives an explicit combination pattern: pair with stop_app to restart from a known state. It does not explicitly exclude or contrast with reload_app or launch_dev_client, which are the closest ambiguous alternatives, so routing guidance is strong but not complete.

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