Skip to main content
Glama

android_disconnect

Disconnect an active or specified Android ADB serial and clear cached UI references to reset device connection state.

Instructions

Disconnect the active or specified ADB serial and clear cached UI refs.

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

Input Schema

NameRequiredDescriptionDefault
serialNo

Output Schema

NameRequiredDescriptionDefault
okYes
errorNo
disconnectedNo
remaining_devicesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It does disclose a non-obvious side effect (clearing cached UI refs), which is genuinely valuable, but omits error behavior when nothing is connected, whether the disconnect is idempotent, and the consequence for subsequent tool calls.

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?

A single sentence with no filler, front-loading the action and appending the side effect. Nothing is wasted.

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?

The tool is simple and an output schema exists so return values need no explanation, but for a state-mutating teardown call with zero annotations the description should say what happens on failure or when no connection exists.

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 0%, so the description must compensate and does partially: it explains that the serial is optional and defaults to the 'active' connection. It does not clarify accepted serial formats (e.g., emulator-5554 vs host:port) or how 'active' is resolved when multiple devices are attached.

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+resource ('Disconnect the active or specified ADB serial') plus a secondary effect ('clear cached UI refs'). It is clearly the inverse of android_connect, though it never names that sibling explicitly.

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?

'active or specified' implicitly tells the agent that omitting the serial targets the current connection, which is useful context, but there is no explicit when-to-use/when-not guidance or mention of what must be true first (an existing connection).

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