Skip to main content
Glama

disconnect

Terminate the TCP/IP connection to an Android device, or to all devices when no host and port are provided.

Instructions

Disconnect a TCP/IP device, or all if host_port is omitted.

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

Input Schema

NameRequiredDescriptionDefault
host_portNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral burden. It usefully discloses that omitting the parameter widens the operation to all devices, but it says nothing about permission/auth needs, error behavior for an unknown host_port, or whether the action is reversible.

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?

One short sentence that front-loads the verb and resource and ends with the conditional that matters most. No filler, no redundancy.

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?

An output schema exists, so return values need not be described, and the single parameter is addressed. For a simple disconnect operation this is largely sufficient; only failure behavior and prerequisites would meaningfully improve it.

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 0%, so the single parameter is undocumented structurally. The description does explain that host_port accepts null and that its absence means 'all devices', but it never states the expected host:port string format, leaving part of the semantics to the parameter name.

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 (disconnect) and resource (a TCP/IP device), and adds scope: it disconnects one device, or all when host_port is omitted. That distinguishes it from a bulk-ambiguous operation, though the sibling 'connect' is not named.

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 conditional 'or all if host_port is omitted' implicitly tells the caller how to choose between single and bulk disconnect, which is genuine usage guidance. It does not state prerequisites (e.g. the device must currently be connected) or mention the connect sibling as the counterpart.

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