Skip to main content
Glama

adb_devices

Read-only

List attached Android devices and emulators to confirm connectivity and fetch their serial IDs for subsequent debugging, app inspection, or instrumentation tasks.

Instructions

List Android devices and emulators visible to adb. Only reads, and the workspace parameter has no effect on the result - the listing is the same for any workspace. Call this first to confirm a device is connected and to get serials for the deviceSerial parameter of the other adb_* and frida_* tools. Returns { devices: [{ serial, state, extra }] } where state is e.g. "device", "unauthorized" or "offline" and extra is adb's remaining -l detail (model, transport). An empty list means nothing is connected. Requires adb on PATH.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceNoWorkspace name (not id). Created if it doesn't exist, and this call is recorded as a job in its history. Defaults to "default".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.3.7
    • changedInput schema / properties / workspace / description
      Previous value: -"Workspace name (not id) - created automatically if it doesn't exist yet. Defaults to \"default\"."New value: +"Workspace name (not id). Created if it doesn't exist, and this call is recorded as a job in its history. Defaults to \"default\"."
  2. First observedv1.3.0

TDQS

A4.7/5.0
Behavior4/5

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

Adds real behavioral context beyond the annotations: workspace has no effect on results, an empty list means nothing is connected, and adb must be on PATH. The read-only claim largely restates readOnlyHint=true, so it is not purely additive, but the environment and scoping disclosures are valuable.

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?

Front-loads the core purpose, then the usage guidance, then the return shape and prerequisite. Every sentence carries distinct information with no filler.

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?

With no output schema, the description supplies the return shape ({ devices: [{ serial, state, extra }] }) and explains the state enum values and extra field, filling exactly the gaps the structured fields leave.

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, but the description adds meaningful semantics beyond the schema by stating the workspace parameter does not affect the result, which the schema description alone does not clearly convey.

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 (List) and resource (Android devices and emulators visible to adb), and clearly distinguishes itself from the mutating/querying siblings like adb_shell and adb_install. An agent can tell exactly what this returns without opening the 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 says to 'Call this first to confirm a device is connected' and that its output feeds the deviceSerial parameter of other adb_* and frida_* tools. It even preempts a likely misuse by noting the workspace parameter has no effect.

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