Skip to main content
Glama

Stop then launch on displays

mobile_app_relaunch_on_displays

Force-stop an app package and cold-start its main activity on each logical display in sequence to reproduce dual-display launch issues.

Instructions

Force-stop a package, then launch its main (or given) activity on each logical display in order. Use for dual-display cold-start / flash reproduction.

Input Schema

NameRequiredDescriptionDefault
serialYesExact ADB serial from mobile_devices_list; never inferred when multiple devices exist
userIdNocurrent
activityNo
settleMsNo
displayIdsYes
packageNameYes

Output Schema

NameRequiredDescriptionDefault
stoppedYes
launchesYes
packageNameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.9.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv0.5.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the bar is lower. The description adds real behavioral detail beyond them: the stop-then-launch ordering, per-display iteration "in order", and that it is a forced (not graceful) stop. It omits any permission/auth notes or what state is lost on the force-stop.

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 tight sentences with the action and sequencing front-loaded; every clause earns its place and no filler is present.

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?

An output schema exists, so return values need not be described, and annotations carry the safety profile. The main gap is the low schema coverage on userId and settleMs, which the description does not compensate for.

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 only 17%, so the description carries weight here. It touches packageName, activity ("main (or given) activity") and displayIds scope, but adds no meaning for serial, userId, or settleMs, whose defaults and constraints live only in the schema.

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 compound action (force-stop then launch) applied to a named resource (package/activity) across a scoped target (each logical display). It clearly distinguishes itself from siblings mobile_app_launch and mobile_app_stop by the ordered multi-display sequence.

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?

"Use for dual-display cold-start / flash reproduction" gives explicit context for selecting this tool over plain launch/stop. It does not state when not to use it or name an alternative for single-display cold starts, so it falls short of the top band.

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