Skip to main content
Glama
PanOS MCP Server

PanOS MCP Server

by apius-tech

add_security_rule

Destructive

Creates a new security policy rule in the candidate configuration, requiring a commit to activate.

Instructions

[MODIFIES CONFIG] Creates a new security policy rule. 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>",
      "application": "<application>",
      "service": "<service>",
      "action": "<action>"
    },
    "name": "add_security_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoTags to apply to the rule
nameYesRule name
actionYesRule action
sourceYesSource addresses or 'any'
log_endNoLog at session end (default: true in PanOS)
serviceYesServices (e.g. ['application-default', 'service-http']) 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'
profile_groupNoSecurity profile group name to apply

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.39

TDQS

A3.7/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false and destructiveHint=true, and the description reinforces this with the '[MODIFIES CONFIG]' tag. The genuinely additive piece is the staged-candidate-config semantics and the commit dependency, but it says nothing about rule ordering, name-collision behavior, or whether the new rule is enabled/logged by default.

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 short sentences, front-loaded with the mutation warning and then the staging constraint. Every clause carries information an agent needs; nothing is redundant.

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 15-parameter, 8-required mutation with no output schema, the definition covers the safety and staging story but leaves out placement in the rulebase — a notable omission given that move_security_rule exists as a sibling and new rules typically append at the end. An agent would know how to call it but not what state the resulting rulebase is in.

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 every one of the 15 parameters is documented in the schema itself, including defaults such as log_end and the conditional firewall requirement. The description adds no parameter-level meaning beyond the schema, which is the expected baseline here.

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 gives a concrete verb+resource ('Creates a new security policy rule'), which cleanly separates it from the decryption/NAT/PBF/QoS rule-creation siblings by resource type. It stops short of explicitly contrasting with those siblings, relying on the resource noun alone to do the disambiguation.

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?

It supplies the single most important workflow rule for this tool: the rule is staged in candidate config and 'requires commit to activate', which points the agent at the commit sibling. It offers no guidance on when not to create a rule (e.g. checking for an existing rule first via get_security_rules) or where in the rulebase the new rule lands.

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