Skip to main content
Glama
PanOS MCP Server

PanOS MCP Server

by apius-tech

panorama_add_pre_rule

Destructive

Creates a security pre-rule in a Panorama device group, staged in candidate config. Commit and push to devices to activate it.

Instructions

[MODIFIES CONFIG] Creates a security pre-rule in a Panorama device group (pushed before local firewall rules). 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>",
      "name": "<name>",
      "from_zones": "<from_zones>",
      "to_zones": "<to_zones>",
      "source": "<source>",
      "destination": "<destination>",
      "application": "<application>",
      "service": "<service>",
      "action": "<action>"
    },
    "name": "panorama_add_pre_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoTags to apply to the rule
nameYesRule name
actionYesRule action
sourceYesSource addresses or 'any'
log_endNoLog at session end
serviceYesServices (e.g. ['application-default']) or 'any'
disabledNoCreate rule in disabled state
firewallNoTarget firewall name (from firewalls.json). Required when multiple firewalls are configured; optional otherwise.
to_zonesYesDestination zones (e.g. ['untrust'])
log_startNoLog at session start
from_zonesYesSource zones (e.g. ['trust', 'dmz'])
applicationYesApplications (e.g. ['web-browsing', 'ssl']) or 'any'
descriptionNoOptional description
destinationYesDestination addresses or 'any'
device_groupYesName of the device group
profile_groupNoSecurity profile group name to apply

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.39

TDQS

A4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and destructiveHint=true, and the description adds meaningful context beyond them: the '[MODIFIES CONFIG]' prefix and the fact that changes are staged in candidate config and inert until a commit plus push. It does not cover error behavior (e.g. duplicate rule names) or what the tool returns, but the staging semantics are the key behavioral fact an agent needs.

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 sentences, zero waste, with the mutation nature and resource scope front-loaded before the operational follow-up steps. Every clause earns its place.

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 with no output schema, the description covers the essential operational facts: what it creates, where it lands, and how to activate it. Gaps are minor — no note on return value, name collisions, or the device_group vs firewall targeting relationship beyond what the schema already documents.

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, including examples for zones, applications, and the conditional 'firewall' parameter, so the schema carries the semantics. The description adds no parameter-level meaning such as how 'source'/'destination' accept 'any' or how 'profile_group' interacts with the action, so the baseline 3 applies.

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 security pre-rule in a Panorama device group') and adds the scope qualifier '(pushed before local firewall rules)', which implicitly distinguishes it from the post-rule and local security-rule siblings. It stops short of naming those siblings explicitly, so an agent must infer the pre/post distinction from the parenthetical.

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 concrete lifecycle guidance: the rule is staged in candidate config and requires 'panorama_commit' then 'panorama_push_to_devices' to activate, naming two siblings in the correct order. It does not state when to choose a pre-rule over 'panorama_add_post_rule' or 'add_security_rule', leaving the pre-vs-post choice to inference.

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