Skip to main content
Glama

port_forward_remove

Removes an ADB port forward for a selected Android device, or clears all forwards when no local port is specified. Use it to free forwarded ports and clean up device connections.

Instructions

Remove one port forward, or all if local 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": "port_forward_remove"
  }
}

Input Schema

NameRequiredDescriptionDefault
localNo
serialNo

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?

With no annotations, the description carries the full burden, and it discloses only that omitting 'local' removes every forward — an important, dangerous default given both parameters are nullable. It says nothing about whether removals affect live connections, whether the operation is reversible, whether it errors when no match exists, or what permissions/device state are required.

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 zero filler, and the scope condition is placed where it will be read. However, one sentence is undersized for a bulk-destructive operation with two nullable parameters, so terseness here trades against completeness.

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 is present, so return values need no explanation. But for an unannotated, zero-coverage, no-required-parameter delete tool whose default invocation wipes all forwards, the definition lacks the device-targeting and safety context 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%, so the description must compensate. It does define 'local' semantics and the omission-means-all behavior, but 'serial' is never mentioned even though it presumably selects the target device and also defaults to null — an agent cannot tell what omitting it does.

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 ('Remove one port forward') and clarifies the scope variant (all vs. one), which distinguishes it from the sibling port_forward and from port_reverse_remove. It does not explicitly name the forward/reverse split, so the differentiation from the reverse-side sibling is left implicit.

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 clause 'or all if local is omitted' implies the bulk-delete use case, but there is no explicit guidance on when to use this versus port_reverse_remove, nor any precondition such as whether a device connection or serial must be established first. Usage is inferable rather than stated.

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