Skip to main content
Glama

connect

Opens a TCP/IP link to an Android device or emulator at a specified host and port, enabling remote ADB control.

Instructions

Connect to a device over TCP/IP, e.g. 192.168.1.10: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": {
      "host_port": "<host_port>"
    },
    "name": "connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
host_portYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden and does not meet it. It says nothing about prerequisites (adb tcpip mode on the target), failure/timeout behavior, whether the connection persists across calls, or whether it returns an error versus throwing.

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 front-loaded sentence with no filler, and the example is placed where it is immediately useful. It is efficient but leans on brevity that leaves gaps rather than resolving them.

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?

An output schema exists, so return values need not be explained, and the tool is conceptually simple with one parameter. However, with no annotations at all, an agent still lacks guidance on failure modes and connection prerequisites for a network operation.

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?

The schema documents only one parameter at 0% description coverage, but the inline "e.g. 192.168.1.10:5555" conveys the required host:port format, which the schema does not. That is real added meaning, though port defaults and IPv6 or hostname forms remain unaddressed.

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 ("Connect to a device over TCP/IP") with an address example, so an agent knows exactly what it does. It does not distinguish itself from siblings like list_devices or disconnect, leaving that routing to inference.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance, and no alternatives named. It never says to call list_devices first to discover the address, or that disconnect is the counterpart operation.

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