Skip to main content
Glama
PanOS MCP Server

PanOS MCP Server

by apius-tech

panorama_add_device_group_nat_rule

Destructive

Creates a NAT rule in a Panorama device group pre- or post-rulebase, staging the change in candidate configuration for commit and push to devices.

Instructions

[MODIFIES CONFIG] Creates a NAT rule in a Panorama device group (pre or post rulebase). Staged in candidate config — requires 'panorama_commit' then 'panorama_push_to_devices' 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": {
      "device_group": "<device_group>",
      "rulebase": "<rulebase>",
      "name": "<name>",
      "from_zones": "<from_zones>",
      "to_zones": "<to_zones>",
      "source": "<source>",
      "destination": "<destination>",
      "service": "<service>"
    },
    "name": "panorama_add_device_group_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.
rulebaseYesRulebase type: 'pre' or 'post'
to_zonesYesDestination zones
dnat_portNoDestination NAT translated port
snat_typeNoSource NAT type
from_zonesYesSource zones
descriptionNoOptional description
destinationYesDestination addresses or 'any'
device_groupYesName of the device group
dnat_addressNoDestination NAT translated address
snat_addressNoSource NAT translated address
snat_interfaceNoSource NAT interface (for dynamic-ip-and-port)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.39

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the safety profile is covered. The description adds context that is not in the annotations and that the agent really needs: the [MODIFIES CONFIG] tag and the fact that the rule lands in candidate config and stays inert until a commit followed by a push. It does not discuss permissions, rollback, or failure modes, which keeps it short of a 5.

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?

Two compact sentences, with the modification tag and the action front-loaded and the activation workflow second. Nothing is redundant with the title and every clause carries information.

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 16-parameter mutation tool with no output schema, the definition covers what the tool does and the commit/push prerequisite, which is the most important non-obvious fact. It is silent on how the snat_* and dnat_* parameter families interrelate and on what creation returns, though the 100% schema coverage mitigates the former.

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% across 16 parameters, so the schema already explains names, zones, addresses, service, rulebase enum, and the snat/dnat fields. The description adds no parameter-level meaning of its own, only the generic pre/post rulebase mention; baseline 3 applies when the schema does all the work.

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?

The description uses a specific verb plus resource: "Creates a NAT rule in a Panorama device group (pre or post rulebase)", and pins the scope to Panorama device groups, which implicitly separates it from firewall-level add_nat_rule. It does not explicitly name a sibling to contrast with, so an agent must infer the Panorama-vs-firewall distinction from the qualified name.

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?

The description gives useful lifecycle guidance: the change is staged and needs 'panorama_commit' then 'panorama_push_to_devices'. However, it offers no guidance on when to choose this over add_nat_rule, the pre/post security-rule siblings, or move/delete tooling, and no criteria for choosing pre versus post rulebase beyond the enum label.

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