Skip to main content
Glama
PanOS MCP Server

PanOS MCP Server

by apius-tech

set_config

Destructive

Sets or creates firewall configuration at a specific XPath, staging changes in the candidate config so you can review and commit them separately.

Instructions

[MODIFIES CONFIG] Sets or creates configuration at a specific XPath location on the firewall. Changes are staged in the candidate config and require a separate 'commit' to take effect on the running firewall.

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": {
      "xpath": "<xpath>",
      "element": "<element>"
    },
    "name": "set_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
xpathYesXPath to the configuration location (e.g., '/config/devices/entry[@name="localhost.localdomain"]/vsys/entry[@name="vsys1"]/address')
elementYesXML element to set at the xpath location (e.g., '<entry name="test-addr"><ip-netmask>10.0.0.1/32</ip-netmask></entry>')
firewallNoTarget firewall name (from firewalls.json). Required when multiple firewalls are configured; optional otherwise.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.39

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the description isn't required to establish mutation. It earns credit by adding non-obvious behavior: changes land in the candidate config and do not affect the running firewall until a separate commit. It stops short of saying whether an existing node is merged or replaced, which matters for a destructive set.

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 tightly written sentences with zero waste, and the staging constraint is stated immediately after the action. The bracketed '[MODIFIES CONFIG]' marker is mildly redundant with readOnlyHint=false but reads as a useful front-loaded signal.

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 destructive, low-level config writer with no output schema, the commit/staging lifecycle is the key missing piece and it is covered. However, overwrite-vs-merge semantics and any validation or failure behavior are absent, leaving a real gap for a tool marked destructive.

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%, with each of xpath, element, and firewall documented including format patterns and examples, so the baseline is 3. The description adds no parameter-level meaning beyond what the schema already carries.

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: sets or creates configuration at a given XPath on the firewall. The generic XPath-based nature is clear, but the description never contrasts this low-level setter with the typed siblings like add_address_object, so an agent must infer the boundary from names alone.

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?

Usage is implied through the staging note ('require a separate commit to take effect'), which tells the agent this is a two-step flow with the commit sibling. There is no explicit when-to-use-this vs when-to-use-add_address_object guidance or stated exclusions.

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