Skip to main content
Glama
PanOS MCP Server

PanOS MCP Server

by apius-tech

run_op_command

Destructive

Executes arbitrary PAN-OS operational XML commands against a firewall API, supporting custom queries and actions; commands may read or modify state, so use caution.

Instructions

[ADVANCED] Executes an arbitrary PanOS operational XML command. The command will be sent directly to the firewall API. Use with caution — the command could be read-only or state-modifying depending on its content.

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": {
      "command": "<command>"
    },
    "name": "run_op_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandYesXML operational command to execute (e.g., '<show><system><info></info></system></show>')
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 destructiveHint=true and openWorldHint=true, and the description adds the key nuance that the effect depends on the payload — it could be read-only or state-modifying. It does not cover auth requirements, error handling, or the shape of the returned XML.

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 with the advanced/escape-hatch nature front-loaded and the risk caveat immediately after. No filler or repetition.

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 raw passthrough tool with no output schema, the definition covers the essential risk profile and targeting. It leaves the return payload format unstated, which is a minor gap given the agent must parse raw XML responses.

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 coverage is 100%, so both the XML command format and the firewall targeting rules are already documented in the schema. The description adds only the note that the command bypasses validation and goes straight to the API, without expanding on parameter behavior.

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: executes an arbitrary PanOS operational XML command sent directly to the firewall API. The [ADVANCED] tag and 'arbitrary' framing separate it from the typed add_/get_/delete_ siblings, though no sibling is named explicitly.

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 caution sentence implies this is a fallback for cases not covered by dedicated tools, but it never states when to prefer it over a specific tool or when to avoid it. There is no explicit when-not or alternative named.

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