Skip to main content
Glama

stop_emulator

Destructive

Stops all running instances of an Android Virtual Device (AVD). If the AVD is leased, it refuses and names the lease holder; release that lease first.

Instructions

Stop every running instance of an AVD. Refuses while one is leased, naming the holder; free that lease first.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "stop_emulator"
  }
}

Input Schema

NameRequiredDescriptionDefault
avdNoAVD name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, and the description adds genuinely new behavior: the call fails when a lease exists and the error names the lease holder. It does not say what happens to in-flight device state or whether already-stopped instances are skipped, which keeps it below a 5.

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 short sentences, zero filler, with the scope front-loaded and the failure condition immediately after. Every clause carries information an agent needs.

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?

For a one-parameter destructive tool with full schema coverage, annotation coverage, and no output schema, the description covers scope and the main failure mode. It is slightly thin on what the result looks like (which instances were stopped) and on whether stopping preserves device data.

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% for the single avd parameter, so the schema already carries the semantics. The description only implies the target via "an AVD" and adds no naming or matching rules 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Stop every running instance of an AVD" gives a concrete verb, resource, and scope (all instances, not one). It does not explicitly differentiate itself from siblings such as start_emulator or free, so it stops short of a 5.

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?

The description states a hard precondition (refuses while leased) and points to the remedy (free the lease first), which implicitly routes the agent to the free tool. It does not state a positive when-to-use condition versus just leaving the emulator running, but the exclusion guidance is clear and actionable.

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