Skip to main content
Glama

Boot emulator

boot_emulator
Destructive

Starts an Android Virtual Device by name, waits for full boot, and returns its device serial for use with later adb commands.

Instructions

Boot an AVD by name and return its device serial (e.g. emulator-5554). Launches the emulator detached so it outlives this call, and waits for full boot (sys.boot_completed) by default. Use the returned serial for later tools if you boot more than one device. Booting can take 30-120s on a cold start. If an emulator of this AVD is already running it returns that serial instead of launching a second one; no_snapshot and wipe_data then error, because they cannot apply to a running emulator (stop it with shutdown_emulator first).

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": {
      "avd": "<avd>"
    },
    "name": "boot_emulator"
  }
}

Input Schema

NameRequiredDescriptionDefault
avdYesAVD name to boot (see list_avds).
timeout_sNoBoot timeout in seconds. Default 180.
wipe_dataNoFactory-reset the AVD on this boot (-wipe-data). Default false. Use to start from a pristine device.
no_snapshotNoCold boot without loading a saved snapshot. Default true when launching; if the AVD is already running it is ignored unless set true, which errors.
wait_for_bootNoWait until fully booted before returning. Default true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.24.6
    • changedInput schema / properties / no_snapshot / description
      Previous value: -"Cold boot without loading a saved snapshot. Default true."New value: +"Cold boot without loading a saved snapshot. Default true when launching; if the AVD is already running it is ignored unless set true, which errors."
  2. First observedv1.0.0

TDQS

A4.9/5.0
Behavior5/5

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

The annotations only declare destructiveHint=true and openWorldHint=false; the description adds substantially more — detached launch that outlives the call, blocking on sys.boot_completed by default, a 30-120s cold-start expectation, idempotent behavior when an emulator is already running, and the specific error conditions for wipe_data/no_snapshot. This is exactly the operational context an agent needs before committing to a slow, data-destroying call.

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?

One tight paragraph that front-loads the action and return value, then layers timing, idempotency, and error conditions in the order an agent would need them. No filler sentences; every clause carries an operational fact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter mutation tool with no output schema, the description supplies the return value, blocking semantics, duration expectations, and failure modes. An agent has everything required to call it correctly and decide whether to call shutdown_emulator first.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description lifts it by explaining how no_snapshot and wipe_data interact with an already-running AVD — semantics the schema only hints at. It does not restate defaults or timeout behavior, which remain schema-only, so it stops short of 5.

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 ('Boot an AVD by name') plus the return value (device serial, e.g. emulator-5554), which no sibling tool provides. It also distinguishes itself from list_avds (naming) and shutdown_emulator (stopping), so an agent can select it without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly covers the multi-device case ('use the returned serial for later tools if you boot more than one device') and the already-running case (returns the existing serial instead of launching a second). It also gives a precise when-not plus the remedy: no_snapshot and wipe_data error against a running emulator, so stop it with shutdown_emulator first.

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