Skip to main content
Glama

Remove a port forward

remove_forward
Idempotent

Removes an existing ADB port forward on a connected Android device by specifying the host-side local spec previously forwarded, optionally targeting a device serial.

Instructions

Remove a port forward created with forward_port (adb forward --remove <local>).

Input Schema

NameRequiredDescriptionDefault
localYesHost-side spec previously forwarded, e.g. "tcp:8080".
deviceNoDevice serial from list_devices; optional when exactly one device is connected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true, so the safety profile is largely covered. The description adds the inverse relationship to forward_port and the underlying adb command, but says nothing about what happens if the forward does not exist or what the response is.

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 front-loaded sentence with no waste; the verb, the resource, and the creating sibling all appear immediately.

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?

For a simple, non-destructive removal tool with full schema coverage, annotations covering the safety profile, and no output schema, the definition supplies the key inverse relationship. Only edge-case behavior (missing forward) is left unspecified.

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 100% and both parameters (local, device) are documented in the schema itself, so the baseline of 3 applies; the description adds no format or syntax detail beyond what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ("Remove a port forward") and names the sibling that creates it (forward_port), letting an agent distinguish it from remove_reverse and other removal tools without opening the schema.

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

Usage Guidelines4/5

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

The clause "created with forward_port" establishes the prerequisite and implicitly routes the agent to the create/remove pair. It does not explicitly exclude or contrast with remove_reverse, but the intended usage is clear.

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