Skip to main content
Glama
PanOS MCP Server

PanOS MCP Server

by apius-tech

delete_config

Destructive

Deletes firewall configuration at a specified XPath and stages the change in the candidate config, requiring a separate commit to apply it.

Instructions

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

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>"
    },
    "name": "delete_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
xpathYesXPath to the configuration element to delete (e.g., '/config/devices/entry[@name="localhost.localdomain"]/vsys/entry[@name="vsys1"]/address/entry[@name="test-addr"]')
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.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 known. The description adds meaningful behavior beyond that: changes are staged in the candidate config and require a separate commit to take effect, which materially changes how an agent sequences calls. It stops short of describing failure behavior for a nonexistent or invalid XPath.

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, front-loaded with the mutation tag and the core action, followed immediately by the staging/commit caveat. No redundant restatement of the tool name and no filler.

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 destructive, two-parameter tool with no output schema, the description covers what it does and the key side-effect (staged candidate config). It leaves out what an agent might want when a delete fails or when the XPath matches multiple/no nodes, which keeps it from being fully complete.

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%, and the schema already provides the XPath pattern, format constraint, an example, and the firewall-selection rule. The description adds no parameter-level 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?

The description gives a specific verb and resource: "Deletes configuration at a specific XPath location on the firewall," plus the [MODIFIES CONFIG] tag. It does not explicitly contrast itself with the many sibling delete_* tools (delete_address_object, delete_nat_rule, etc.), so an agent must infer that this is the generic XPath-based delete while those are typed helpers.

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 commit requirement implies the post-delete workflow step, which is useful context for when this tool fits in a sequence. However, there is no explicit guidance on choosing this generic tool over a specialized sibling such as delete_address_object or delete_security_rule, and no note on prerequisites such as valid firewall targeting.

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