Skip to main content
Glama

upnp_port_mappings

Lists UPnP IGD port forwards opened on the LAN router and shows which devices are reachable from the internet without adding or removing mappings.

Instructions

List the port forwards the LAN router opened via UPnP IGD (read-only: never adds or removes a mapping). Shows which devices are reachable from the internet.

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": "upnp_port_mappings"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral burden and explicitly states the key safety trait: read-only, never adds or removes a mapping. It also discloses that the data comes from the LAN router via UPnP IGD and indicates reachability. It does not cover failure modes such as UPnP being disabled, but the core behavior is well disclosed.

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?

The description is two tight sentences with no wasted wording. The read-only constraint is front-loaded and the purpose is immediately clear.

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 no-parameter, read-only listing tool with no output schema, the description is largely complete: it states what is listed, where it comes from, and that it does not mutate state. A minor gap is the absence of caveats about UPnP availability or return format, but the essential context is present.

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 there are no parameter semantics to explain. The baseline for a no-parameter tool is 4, and the description does not need to compensate for missing schema details.

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?

The description uses a specific verb and resource: "List the port forwards the LAN router opened via UPnP IGD." It also clarifies the source and scope by saying these are mappings opened via UPnP IGD and that the tool shows which devices are reachable from the internet. This is enough for an agent to distinguish it from generic scan or capture tools.

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 gives clear usage context: it is for listing UPnP IGD port forwards and is read-only, never adding or removing mappings. It does not explicitly name when to use a different sibling tool, but the read-only scope and UPnP-specific purpose make the intended use clear.

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