Skip to main content
Glama

List Android devices

android_list_devices
Read-onlyIdempotent

List all Android devices and emulators connected via adb, showing model, Android version, screen size, and connection state to identify ready devices and detect unauthorized or offline ones.

Instructions

List every Android device and emulator currently visible to adb, with model, Android version and screen geometry.

Call this first in any session: other tools need a serial when more than one device is attached, and this is where devices in a bad state (unauthorized, offline) surface.

Args:

  • detailed (boolean): also query each device for Android version, SDK level, screen size, density and rotation. Costs one extra adb round trip per device (default: true)

  • response_format ('markdown' | 'json'): output format (default: 'markdown')

Returns: { "count": number, "devices": [ { "serial": string, // e.g. "R3CN70XXXXX" or "192.168.0.12:5555" "state": string, // "device" = ready; "unauthorized" / "offline" = not usable "wireless": boolean, // connected over TCP/IP rather than USB "model": string, "androidVersion": string, // when detailed=true, e.g. "14" "sdkLevel": number, // when detailed=true, e.g. 34 "screenSize": string, // when detailed=true, e.g. "1080x2340" "density": string, // when detailed=true, e.g. "420" "rotation": number // when detailed=true, degrees: 0/90/180/270 } ] }

Examples:

  • Use when: starting work and you need a serial for the other tools

  • Use when: an install failed and you want to check the device is still authorized

  • Don't use when: you already have a serial and just want app logs (use android_logcat)

Error Handling:

  • Returns an empty device list rather than an error when nothing is plugged in

  • Devices in state 'unauthorized' need the on-screen "Allow USB debugging?" prompt accepted

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
detailedNoQuery per-device properties (version, screen size, rotation).
response_formatNoOutput format: 'markdown' for human-readable, 'json' for machine-readable.markdown
Behavior5/5

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

Beyond the annotations (readOnlyHint=true, etc.), the description adds meaningful behavioral context: devices in 'unauthorized' or 'offline' states surface here, the tool returns an empty list rather than erroring when nothing is plugged in, and detailed mode costs an extra adb round trip. It also explains the significance of the 'unauthorized' state and on-screen prompt, enriching the agent's understanding without contradicting annotations.

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?

The description is long but highly organized with clear sections (Description, Args, Returns, Examples, Error Handling). Every sentence serves a purpose: it explains core behavior, usage timing, parameter semantics, return shape, and failure modes. It is front-loaded with the most critical 'call this first' guidance, making it efficient for quick scanning.

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?

The description is self-contained and comprehensive. It defines the return object structure even though no output schema exists, covers error handling (empty list, unauthorized state), and explains when to use the tool in the broader workflow. The annotations handle safety/profile, so the description covers all other needed context for an agent to invoke it correctly.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds significant value beyond the schema. For 'detailed' it lists exactly which properties are queried (Android version, SDK level, screen size, density, rotation) and notes the performance cost. For 'response_format' it clarifies the human-readable vs machine-readable tradeoff. The Args section is rich and directly useful for parameter selection.

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?

The description opens with 'List every Android device and emulator currently visible to adb, with model, Android version and screen geometry,' a specific verb+resource+scope statement. It clearly distinguishes this tool from siblings by focusing on device enumeration and serial discovery, explicitly contrasting with tools like android_logcat.

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?

The description gives explicit when-to-use guidance: 'Call this first in any session: other tools need a serial when more than one device is attached.' It also provides a when-not-to-use example with a named alternative: 'Don't use when: you already have a serial and just want app logs (use android_logcat).' This fully covers usage context and exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jjs03111/android-build-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server