Skip to main content
Glama

device_wait

Blocks until an Android device reaches the requested state, so you can safely continue after connecting or rebooting; set serial and timeout to control the wait.

Instructions

Block until a device reaches state 'device' (use after adb_connect / reboots).

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

Input Schema

NameRequiredDescriptionDefault
serialNoSerial to wait for (default: any online device)
timeoutNoSeconds to wait (default 30)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the key trait that the call blocks until a condition is met rather than returning immediately. It does not say what happens on timeout, whether it polls, or what the call returns, and there is no output schema to fall back on, so meaningful gaps remain.

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?

A single compact sentence with the blocking behavior front-loaded and the usage hint in parentheses. It is efficient, though the terse phrasing leans toward under-specification of timeout and return behavior.

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 simple two-parameter wait tool with full schema coverage, the description covers the core semantics adequately. It is incomplete on timeout semantics and return value, which matter for an agent deciding how to sequence adb_connect, this wait, and follow-up actions.

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 description coverage is 100%, so serial, the 'any online device' default, the timeout, and the 30-second default are already documented in the schema. The description adds no syntax, units, or format detail beyond that, making the baseline 3 appropriate.

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?

States a specific verb and resource: block until a device reaches the 'device' state, which maps to a concrete adb state rather than a vague 'wait'. It doesn't explicitly distinguish itself from the sibling ui_wait, which is also a wait tool, so the agent must infer the difference from the device-vs-UI wording.

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 parenthetical 'use after adb_connect / reboots' gives a clear triggering context, which is exactly the right placement guidance. It stops short of naming the alternative (ui_wait) or stating when not to use it, so it is clear context without exclusions.

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