Skip to main content
Glama

adb_connect

Connect to a device over TCP/IP using a host and optional port (default 5555), or specify a configured device name.

Instructions

Connect to a device over TCP/IP (adb connect host[:port], default port 5555). A configured device name is also accepted.

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

Input Schema

NameRequiredDescriptionDefault
addressYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, open-world, non-destructive operation; the description adds the default port and the accepted address forms, which is genuine added context. It does not say what happens on connection failure, whether the connection persists for later calls, or that it must be paired with adb_disconnect.

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, both front-loaded with the essential action and addressing rule, with the CLI form in parentheses as a compact reference. Nothing is redundant or padded.

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 single-parameter connection tool with an output schema available for return values, the description covers what an agent needs to call it correctly. The remaining gap is lifecycle behavior (persistence, disconnection), which is not stated but is adjacent rather than blocking.

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?

With zero schema description coverage and a bare 'Address' property, the description carries the burden and does so: it defines the expected syntax as host[:port], supplies the 5555 default, and notes that an already-configured device name also works. Only exact hostname format or IPv6 handling is left ambiguous.

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 definition gives a specific verb and resource ("Connect to a device over TCP/IP") and even pins the underlying command, so the agent knows exactly what operation is performed. It does not differentiate against siblings such as adb_disconnect or ssh_exec, which keeps it short of a 5.

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 precedes other device operations, and the note that a configured device name is acceptable hints at an alternative addressing mode. There is no explicit statement of when to prefer this over SSH targets or when the connection is unnecessary.

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