Skip to main content
Glama

List Android devices

list_devices
Read-onlyIdempotent

Lists connected, authorized Android devices with serial and state so you can get a target serial for foreground and snapshot actions. Call first; unauthorized or offline devices are omitted.

Instructions

List the Android devices ADB reports as connected and authorized, as a list of {serial, state} objects (state is always "device"). On a --device scoped server only that device can appear, and the list is empty if it is unplugged or unauthorized. Call this first to get a serial for foreground and snapshot; unauthorized or offline devices are omitted. Does not touch the device screen.

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": "list_devices"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still adds real behavior beyond them: the exact result shape, that state is always "device", the empty-list outcome for unplugged/unauthorized hardware, and the --device-scoped server constraint. Its one gap is that it does not say whether the list is stable between calls or how an agent should react to an empty result, so it is additive but not fully diagnostic.

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-loaded with what is returned, then edge cases, then the call-first instruction, and it closes with a negative side-effect statement. Every clause carries distinct information; nothing is restated from the schema or annotations.

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?

An output schema exists, so return-value explanation is technically optional, but the description's summary of the result shape is consistent with it rather than redundant baggage. For a zero-parameter discovery tool with full annotation coverage, the definition supplies everything an agent needs to select and invoke it correctly.

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?

The tool takes no parameters, so the baseline is 4; the description correctly does not invent any. It does clarify that scoping comes from the server mode (--device) rather than from a call parameter, which usefully explains why there is no filtering argument.

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 ('List the Android devices ADB reports as connected and authorized') and pins down the return shape ({serial, state}). It also explicitly distinguishes itself from the siblings by saying the serial it returns is the input needed for foreground and snapshot.

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?

Gives explicit sequencing guidance ('Call this first to get a serial for foreground and snapshot'), names the alternative tools that consume its output, and states the exclusion condition (unauthorized or offline devices are omitted). Nothing about when to reach for this tool is left to inference.

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

Deploy Server

Other Tools