Skip to main content
Glama

Connect ADB over WiFi

adb_wifi_connect
Idempotent

Connect an Android device over WiFi by switching a USB-connected device to TCP/IP mode, detecting its IP address, and establishing a wireless ADB connection.

Instructions

Connect to a device over WiFi ADB. Switches to TCP/IP mode, detects IP, and connects wirelessly

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

Input Schema

NameRequiredDescriptionDefault
portNoTCP port for WiFi ADB
deviceIdNoUSB device serial to switch to WiFi (must be connected via USB first)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, but they do not say what actually changes on the device. The description supplies that: it puts the device into TCP/IP mode (a persistent state change) and auto-detects the IP before connecting, which is exactly the extra context an agent needs before invoking it.

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?

Two short sentences, front-loaded with the purpose and then the mechanism. Minor redundancy between 'over WiFi ADB' and 'connects wirelessly', but nothing is wasted overall.

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 two-optional-parameter tool with no output schema, the description is close to sufficient, and the schema covers the parameters. It still omits practical operational context an agent would want: that the USB connection must exist beforehand, that the device and host must share a network, and what to do afterward (adb_wifi_disconnect).

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 both port and deviceId are already fully documented in the schema, including the USB-first constraint. The description adds no port syntax, default behavior, or deviceId selection advice beyond that, so the baseline 3 applies.

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 states a specific verb and resource ('Connect to a device over WiFi ADB') and then enumerates the internal steps (TCP/IP mode, IP detection, wireless connect), which makes the operation concrete. It contrasts implicitly with the sibling adb_wifi_disconnect, though it never names that counterpart.

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

Usage Guidelines3/5

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

Usage is only implied: the agent can infer this is the tool for moving a device onto wireless ADB. There is no explicit when-to-use vs. when-not guidance, no mention of the USB prerequisite (that detail lives only in the deviceId schema entry), and no pointer to adb_wifi_disconnect for reverting.

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