Skip to main content
Glama

adb_connect

Connect to an Android device over TCP/IP for wireless debugging, or disconnect all devices. Use it to attach a phone by host:port before running shell, UI, or file commands.

Instructions

Attach a device over TCP/IP (wireless debugging): 'CONNECT phone:5555'.

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": {
      "target": "<target>"
    },
    "name": "adb_connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYeshost:port of the device, or empty to disconnect all
pair_codeNo6-digit pairing code (only needed once, with pair_port)
pair_portNopairing port shown by Android's Wireless debugging screen

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses the TCP/IP attach mechanism and a sample adb command, but does not explain connection persistence, pairing sequence, authentication requirements, failure behavior, or what happens when target is empty for disconnect-all.

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 a single front-loaded sentence with a concrete example and no filler. It is appropriately sized and immediately readable.

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?

Given three parameters and no output schema, the description is minimally adequate for a basic connect call because the schema richly documents parameters. However, for a tool with no annotations, it omits important context about pairing flow, disconnection semantics, and connection behavior after attach.

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 all three parameters including target format, disconnect-all behavior, and pairing fields are already documented in the schema. The description only reinforces the target format with 'phone:5555' and adds no meaningful parameter semantics beyond the schema baseline.

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: attach a device over TCP/IP for wireless debugging, with a concrete example 'CONNECT phone:5555'. It is clear what the tool does, though it does not explicitly distinguish itself from sibling device-selection tools such as device_select.

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?

The wireless-debugging context and the example imply when to use the tool, but there is no explicit guidance on when to prefer it over device_select or when the pairing parameters are required. The schema documents pair_code and pair_port, but the description itself gives only implied usage guidance.

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