Skip to main content
Glama
PanOS MCP Server

PanOS MCP Server

by apius-tech

add_pbf_rule

Destructive

Creates a new policy-based forwarding (PBF) rule in the candidate configuration; commit the change to activate routing.

Instructions

[MODIFIES CONFIG] Creates a new policy-based forwarding (PBF) 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>",
      "source": "<source>",
      "action": "<action>"
    },
    "name": "add_pbf_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesRule name
actionYesPBF action
sourceYesSource addresses or 'any'
disabledNoCreate rule in disabled state
firewallNoTarget firewall name (from firewalls.json). Required when multiple firewalls are configured; optional otherwise.
from_zonesYesSource zones
descriptionNoOptional description
next_hop_typeNoNext-hop type (for 'forward' action)
next_hop_valueNoNext-hop IP address or FQDN value
egress_interfaceNoEgress interface (required for 'forward' action)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.39

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the mutation profile is known. The description adds genuine context beyond that — the change is staged in candidate config and inactive until commit — but says nothing about validation failures, duplicate-name handling, or what the response contains. Useful but not rich.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences plus a bracketed operation tag; the resource is front-loaded and the staging caveat follows. No wasted wording, though the tag is somewhat redundant with the 'Creates' verb and the destructive annotation.

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 10-parameter mutation tool with no output schema, the definition covers the key thing an agent needs beyond the schema: that the change is inert until commit. Conditional parameter requirements are already handled by the schema descriptions, so the remaining gap is minor.

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 all 10 parameters, including the conditional 'egress_interface (required for forward action)' and firewall requirement, are already documented in the schema. The description adds no parameter meaning beyond that, 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 new policy-based forwarding (PBF) rule' — and the [MODIFIES CONFIG] tag signals the operation class. It is distinguishable from sibling rule-creation tools (add_nat_rule, add_qos_rule) by naming the PBF rule type, though it never explicitly contrasts with them.

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 clear workflow context: the rule is staged in candidate config and 'requires commit to activate', which points the agent to the commit sibling. It does not state when-not to use this tool or name alternative approaches, so it stops short of full when/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