Skip to main content
Glama

pt_remove_nat

Removes NAT/PAT configuration from a Cisco router, clearing interface roles and deleting related translations, pools, and access lists.

Instructions

Removes the NAT/PAT configuration from a router.

Removes the ip nat inside/outside marks from the interfaces and deletes the associated translations, pool and access-list.

Parameters:

  • router: device name in PT

  • mode: "static" | "dynamic" | "pat"

  • inside_interface: interface marked as ip nat inside

  • outside_interface: interface marked as ip nat outside

  • acl_number: number/name of the access-list used (default "1")

  • pool_name: name of the NAT pool to remove (only dynamic/pat with a pool)

  • static_mappings: mode="static" only. List of dicts with inside_local/inside_global to generate the "no ip nat inside source static ..." commands

  • dry_run: if True, returns the payload without sending it

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_remove_nat"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
routerYes
dry_runNo
pool_nameNo
acl_numberNo1
static_mappingsNo
inside_interfaceYes
outside_interfaceYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it discloses the destructive scope (interface NAT marks, translations, pool, and access-list are all deleted) and explains that dry_run returns the payload without sending it, giving the agent a safe preview path. It still omits idempotency/error behavior (what happens if no NAT is configured) and whether the removal is reversible, which matters for a destructive operation.

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?

Front-loaded with the purpose, then the side effects, then a parameter block — the reading order matches the agent's decision order. Every line carries information (including the note that static_mappings generates 'no ip nat inside source static ...' commands); nothing is redundant with the title or schema.

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?

An output schema exists, so return values need not be explained, and the dry_run flag covers the preview path; the parameter block is exhaustive. The remaining gap is failure-mode context — behavior when the referenced ACL/pool or NAT marks are absent — which is not covered by the output schema or annotations.

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?

Schema description coverage is 0% and the schema has bare titles, so the description must compensate entirely — and it does, defining every one of the 8 parameters including the mode values ("static"|"dynamic"|"pat", absent from the schema as an enum), the conditional nature of pool_name, the acl_number default, and the inside_local/inside_global structure of static_mappings. This is meaning an agent cannot obtain from the schema alone.

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

Purpose4/5

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

States a specific verb and resource ("Removes the NAT/PAT configuration from a router") and immediately enumerates the concrete artifacts removed, so an agent knows exactly what the operation targets. It does not explicitly name the sibling alternatives (pt_apply_nat, pt_read_nat), so differentiation is by verb only rather than by stated contrast.

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

Usage Guidelines2/5

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

There is no when-to-use, when-not-to-use, or prerequisite guidance: nothing says to call pt_read_nat first to discover existing config, or that pt_apply_nat is the inverse. The only usage signal is the implicit "use this to undo NAT," and required parameters (router, mode, inside_interface, outside_interface) are never framed as preconditions the agent must satisfy or verify.

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