Skip to main content
Glama

port_forward_remove

Destructive

Remove a router port-forward rule by section ID or name; preview changes by default and apply them with rollback protection only when confirmed.

Instructions

Remove a port forward, by section id or name. Only ones this server created unless force=true. Without confirm=true this only returns a preview of the UCI changes and changes nothing. With confirm=true it applies them with the router's rollback timer, checks the router still answers, and confirms; if the check fails, the router restores the old config by itself.

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
nameNo
forceNo
confirmNo
sectionNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, readOnlyHint=false) it discloses that the default call is a no-op preview, that confirmed calls run under the router's rollback timer, that connectivity is re-checked, and that failure triggers automatic config restoration. That is exactly the safety and reversibility context an agent needs before invoking a destructive tool.

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?

Four sentences, front-loaded with the action and targets, then the guard, then the confirm/no-confirm contract and failure behavior. No filler or repeated information; every clause carries operational meaning.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, rollback-protected mutation, the description covers targeting, safety gating, and failure recovery, and an output schema exists so return values need not be described. Nothing essential for a correct call is missing.

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

Parameters4/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 carry all four parameters, and it explains confirm, force, and the section/name selectors with real semantics (preview vs apply, server-created-only guard). It leaves a gap on precedence when both name and section are supplied, and on what happens if neither is given.

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 and resource ("Remove a port forward") and immediately narrows the target with two selectors, "by section id or name," which also disambiguates it from sibling add/remove tools for other resources.

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 description effectively defines the tool's two operating modes: with confirm unset it 'only returns a preview' and with confirm=true it applies changes, plus force=true gates removal of entries not created by this server. It gives clear conditions for each flag but never names an alternative tool or states when an agent should use a different tool instead.

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