Skip to main content
Glama

Stop Emulator

emulator_stop
Idempotent

Stop a running Android emulator by device ID to end the session and free resources before restarting or switching devices.

Instructions

Stop a running Android emulator

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": {
      "deviceId": "<deviceId>"
    },
    "name": "emulator_stop"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceIdYesDevice serial ID (e.g. 'emulator-5554'). Use device_list to find it

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.9/5.0
Behavior2/5

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

The annotations already disclose the important behavioral traits: readOnlyHint=false, idempotentHint=true, and destructiveHint=false. The description adds nothing beyond them: it does not explain what happens to the device after the stop (whether it disappears from device_list), whether AVD state is preserved, or whether this affects running apps. For a state-changing lifecycle operation, an extra sentence would be valuable.

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?

The description is a single short sentence with no wasted words, and the central action is front-loaded. It is arguably too terse, but terseness is under-specification rather than verbosity, so it does not lose more points here.

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

Completeness3/5

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

For a one-parameter lifecycle tool with complete schema coverage and a full annotation set, the definition gives just enough for an agent to invoke it correctly. It is missing post-condition context and sibling differentiation, which would be cheap to add and would materially help the agent decide between emulator_stop and app_stop or emulator_start.

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?

There is only one parameter, and the schema describes deviceId fully at 100% coverage, including an example serial and a pointer to device_list. The description adds no meaning beyond the schema, which is the baseline expectation when schema coverage is high.

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?

The description names a specific verb ('Stop') and resource ('a running Android emulator'), which is unambiguous on its own. It does not, however, differentiate itself from the sibling emulator_start or clarify how it differs from app_stop, leaving the agent to infer the boundary from the names alone.

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

Usage Guidelines2/5

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

There is no guidance on when to use this instead of alternatives such as emulator_start (for later restart) or device_list (for checking liveness). The only routing hint in the whole definition, that device_list finds the serial, lives in the schema, not in the description. The definition supplies no preconditions, confirmations, or exclusions.

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