Skip to main content
Glama

AVD snapshot

avd_snapshot
Destructive

Save, load, delete, or list emulator AVD snapshots to reset Android devices deterministically between test runs without a wipe_data cold boot.

Instructions

Manage emulator AVD snapshots (adb emu avd snapshot): action=save|load|delete a named snapshot, or list them. Save a known-good state, then load it to reset the device deterministically between runs — faster than a wipe_data cold boot. Emulator-only.

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": {
      "action": "<action>"
    },
    "name": "avd_snapshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoSnapshot name. Required for save/load/delete; ignored for list.
actionYesOne of: "save", "load", "delete", or "list".
serialNoTarget device serial (adb -s). Optional when exactly one device is attached.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=false; the description adds real context beyond that by explaining that load resets the device, i.e. the destruction applies to current device state, and that the tool requires an emulator rather than a physical device. It stops short of stating whether delete is reversible or what happens on a missing snapshot name.

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: purpose and operation list first, then the operational rationale and constraint. No redundant restatement of the title, and every clause carries information.

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, and the description does not say what the list action returns or what a successful save/load reports, which is a modest gap for an agent verifying results. Everything needed to choose and invoke the tool correctly is present.

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%, so all three parameters and the action enum values are already documented in the schema. The description restates the action values and implies the name argument but adds no format, defaulting, or edge-case meaning (e.g. name collisions on save). Baseline 3 applies when the schema carries the semantics.

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 ("Manage emulator AVD snapshots") and enumerates the exact operations (save|load|delete|list). It also disambiguates from siblings like list_avds, boot_emulator, and shutdown_emulator by scoping to snapshot state and declaring "Emulator-only."

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 a concrete workflow rationale — save a known-good state, then load it to reset deterministically between runs — and contrasts it with the wipe_data cold boot alternative. It does not name a sibling tool explicitly, so selection still requires a small inference step, but the when-to-use guidance is clear.

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