Skip to main content
Glama
Packet Tracer MCP — Node.js port

Packet Tracer MCP — Node.js port

pt_apply_nat

Applies static, dynamic, or PAT NAT rules to a Packet Tracer router through IOS CLI, configuring inside/outside interfaces, mappings, pools, and overload to enable LAN-to-WAN address translation.

Instructions

Applies NAT or PAT to a router in PT's active topology (IOS CLI through the bridge).

  • router: device name in PT (e.g. "R1"; see pt_query_topology).

  • mode: "static" (1:1 fixed mapping, e.g. a server reachable from outside), "dynamic" (pool of public IPs) or "pat" (overload: many hosts share one public IP, the usual case).

  • inside_interface / outside_interface: LAN-side and WAN-side interfaces.

  • static_mappings: static only. [{"inside_local": "192.168.1.10", "inside_global": "200.1.1.5"}]

  • inside_networks: dynamic/pat. "network wildcard" strings, e.g. ["192.168.1.0 0.0.0.255"] (not CIDR); emitted as an inline access-list.

  • acl_number: ACL number or name for the inside hosts (default "1").

  • pool_name, pool_start, pool_end, pool_netmask ("255.255.255.0" form): the public pool (dynamic, or pat without interface overload).

  • use_interface_overload: pat only. True = use outside_interface's IP instead of a pool.

  • dry_run: validate and return the payload without sending.

Typical PAT: mode="pat", inside_networks=["192.168.1.0 0.0.0.255"], use_interface_overload=True. Mode guidance and a full example: resource pt://guide, "Tool notes".

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "router": "<router>",
      "mode": "<mode>",
      "inside_interface": "<inside_interface>",
      "outside_interface": "<outside_interface>"
    },
    "name": "pt_apply_nat"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
routerYes
dry_runNo
pool_endNo
pool_nameNoNAT-POOL
acl_numberNo1
pool_startNo
pool_netmaskNo
inside_networksNo
static_mappingsNo
inside_interfaceYes
outside_interfaceYes
use_interface_overloadNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.11.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose that this is a config mutation pushed as IOS CLI and that dry_run validates the payload without sending, which is valuable safety context. It leaves unresolved whether existing NAT config is replaced, what a failure looks like, and what a successful call returns, which are meaningful gaps for an unannotated write tool.

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?

Front-loads the one-line purpose, then a tight per-parameter bullet list, a typical-usage example, and a pointer to further docs. Every bullet carries information, with only minor slack in the inside_interface/outside_interface line, which is thinner than the rest.

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 13-parameter mutation tool with no annotations and no output schema, the definition covers parameters, mode semantics, and dry-run behavior thoroughly. It stops short of describing preconditions (must the router already exist, will it overwrite) and error/return behavior, which the lack of an output schema leaves to the agent's guessing.

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

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With schema description coverage at 0% across 13 parameters, the description compensates almost completely: it explains each field's role, gives defaults (acl_number "1", pool_name), supplies formats (wildcard strings not CIDR, dotted netmask), and provides literal examples for static_mappings and inside_networks. This is exactly the meaning the schema does not convey.

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?

Names a precise verb and resource: it applies NAT or PAT to a specific router in PT's active topology, and discloses the mechanism (IOS CLI through the bridge). That cleanly separates it from the read/remove siblings (pt_read_nat, pt_remove_nat) without ambiguity.

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 real mode-selection guidance, including which mode fits which situation ("static" for a 1:1 server mapping, "pat" marked as "the usual case") and a concrete typical PAT invocation. It also points to pt_query_topology for device names and to pt://guide for full mode guidance, though it does not state prerequisites or when to prefer versus another approach.

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

Deploy Server

Other Tools