Skip to main content
Glama

list_port_forwards

Read-onlyIdempotent

List port-forwarding and static NAT rules to see exposed ports and destination LAN hosts. Read-only view from the router's running config, with changes made in the web UI.

Instructions

List port-forwarding / static NAT rules as raw 'ip static' lines from the running-config (read-only). Use to see which ports are exposed to the internet and to which LAN host. This server cannot add or remove port forwards; change them in the router's web UI.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds that it reads the running-config and returns raw line output, and it discloses the server's inability to mutate port forwards. No contradiction with annotations.

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?

Three sentences with no filler: purpose and format, usage context, and a limitation. Each sentence earns its place and is front-loaded with the most important information.

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 zero-parameter read-only list tool with an output schema, the description covers purpose, usage, safety, and the key operational limitation. Nothing an agent needs to invoke it correctly 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?

The tool has zero parameters, so the schema entirely covers parameter semantics. The description doesn't need to add parameter-level detail; baseline 4 for a no-parameter tool.

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 ('List port-forwarding / static NAT rules') with a precise format ('raw ip static lines from the running-config'). Clearly distinguishable from sibling tools about leases and devices.

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?

Gives an explicit use case ('see which ports are exposed to the internet and to which LAN host') and a clear limitation ('cannot add or remove port forwards; change them in the router's web UI'). It does not name an alternative because no modifying sibling exists, but the when-to-use guidance is explicit.

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