Skip to main content
Glama

port_reverse

Reverse-forwards an Android device port to a host port, letting the device access services running on the host through ADB.

Instructions

Reverse-forward a device port to a host port.

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": {
      "remote": "<remote>",
      "local": "<local>"
    },
    "name": "port_reverse"
  }
}

Input Schema

NameRequiredDescriptionDefault
localYes
remoteYes
serialNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, yet it says nothing about whether the mapping persists after adb disconnect, how port conflicts are handled, or whether it requires a selected device. Only the direction of the tunnel is conveyed.

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 padding or redundancy. It is terse rather than bloated, though its brevity leaves the gaps noted in other dimensions.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/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, but for a mutation-style networking tool with zero annotation coverage and fully undocumented parameters this description is insufficient. It lacks the direction mapping and lifecycle details an agent needs to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across three parameters, and the description never maps 'local' and 'remote' to host vs device ports — the very ambiguity an agent needs resolved. The optional 'serial' parameter is not explained at all.

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 gives a specific verb and resource ('Reverse-forward a device port to a host port') and the explicit direction of the mapping implicitly separates it from port_forward. It does not name the sibling it contrasts with, so the differentiation must be inferred from the direction wording.

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?

There is no statement of when to use this versus port_forward or port_reverse_remove, no prerequisite (e.g., a connected device via serial), and no cleanup guidance. The agent must guess that removal is a separate tool.

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