Skip to main content
Glama

Connect wireless

connect_wireless

Connects to an Android device over Wi-Fi/TCP via adb, and can pair first using the 6-digit code from Android 11+ Wireless debugging.

Instructions

Connect to a device over Wi-Fi/TCP (adb connect), optionally pairing first (adb pair) with the 6-digit code from Android 11+ Wireless debugging. Pass host:port; for pairing also pass the pairing address + code shown on the device.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "host_port": "<host_port>"
    },
    "name": "connect_wireless"
  }
}

Input Schema

NameRequiredDescriptionDefault
host_portYesDevice address to connect to, host:port (e.g. 192.168.1.42:5555).
pair_addressNoPairing address host:port (Android 11+ Wireless debugging), if different from host_port. Only needed when pairing.
pairing_codeNo6-digit pairing code shown on the device. Provide to pair before connecting.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true and destructiveHint=false, so the bar is lower, and the description adds real context: pairing is a distinct prerequisite step that must happen before connecting and requires a code displayed on the device. It does not mention failure behavior (timeouts, unauthorized keys), which keeps it from a 5.

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?

Two sentences, front-loaded with the core action and followed by the pairing condition and argument guidance. Every clause carries information an agent needs, with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter, no-output-schema connection tool whose annotations already convey the safety profile, the description covers the necessary inputs and the pairing prerequisite. Only edge-case behavior on failed connections is left unstated.

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 coverage is 100%, so each parameter is already documented, and the description largely restates schema content such as pair_address differing from host_port and pairing_code enabling pairing. It adds only the framing that host_port is the primary argument and pairing args are conditional, which matches the baseline for a fully documented schema.

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 names a specific verb and resource ('Connect to a device over Wi-Fi/TCP') and names the underlying mechanism (adb connect / adb pair), so an agent can tell exactly what the tool does and how it differs from device-listing or app-launching siblings.

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?

It states the required host:port input and the condition under which pairing extra arguments apply ('Android 11+ Wireless debugging' with a 6-digit code), which is clear context for use. It stops short of explicit exclusions such as when to prefer a USB/emulator connection path over this one.

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