Skip to main content
Glama
PanOS MCP Server

PanOS MCP Server

by apius-tech

add_nat_rule

Destructive

Creates source, destination, or combined NAT policy rules in the candidate configuration, ready for commit. Use it to stage new NAT translations on PAN-OS firewalls.

Instructions

[MODIFIES CONFIG] Creates a new NAT policy rule (source NAT, destination NAT, or both). Staged in candidate config — requires 'commit' to activate.

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": {
      "name": "<name>",
      "from_zones": "<from_zones>",
      "to_zones": "<to_zones>",
      "source": "<source>",
      "destination": "<destination>",
      "service": "<service>"
    },
    "name": "add_nat_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesNAT rule name
sourceYesSource addresses or 'any'
serviceYesService (e.g. 'any', 'service-http')
disabledNoCreate rule in disabled state
firewallNoTarget firewall name (from firewalls.json). Required when multiple firewalls are configured; optional otherwise.
to_zonesYesDestination zones
dnat_portNoDestination NAT translated port
snat_typeNoSource NAT type
from_zonesYesSource zones
descriptionNoOptional description
destinationYesDestination addresses or 'any'
dnat_addressNoDestination NAT translated address
snat_addressNoSource NAT translated address (address object or IP)
snat_interfaceNoSource NAT interface (for dynamic-ip-and-port with interface)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.39

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already declare this as non-read-only and destructive, and the description adds meaningful behavior beyond them: it modifies configuration, stages the result in candidate config, and requires a separate commit to activate. It still does not explain error handling, duplicate behavior, or rollback details.

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 tightly front-loaded with the '[MODIFIES CONFIG]' tag, then states the action and the commit requirement in one compact sentence. Every clause carries useful information and there is no redundant wording.

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

Completeness3/5

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

For a complex 14-parameter create tool, the description covers the core purpose and the commit workflow, while the rich schema and annotations fill in parameter and safety details. However, it does not clarify how to choose between SNAT and DNAT configurations or how firewall targeting works when multiple firewalls exist.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema itself documents all 14 parameters. The description adds only high-level context about source NAT, destination NAT, or both, without clarifying conditional field requirements or how the SNAT/DNAT parameters relate to each mode.

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: 'Creates a new NAT policy rule,' and clarifies it supports source NAT, destination NAT, or both. It clearly separates NAT from security, decryption, and QoS rules, though it does not explicitly distinguish itself from the Panorama NAT-rule sibling.

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

Usage Guidelines3/5

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

Provides implied usage through the creation purpose and the important workflow note that the rule is staged in candidate config and requires 'commit' to activate. It does not say when to use this versus Panorama variants or other rule-creation tools, and gives no when-not guidance.

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