Skip to main content
Glama

proxmox_add_firewall_rule

Add a confirmed Proxmox VE firewall rule at cluster, node, or guest scope to control inbound, outbound, or security-group traffic. Use confirm:true to perform the write.

Instructions

Add a firewall rule at the cluster, node, or guest scope (POST {base}/firewall/rules). Tier-2 write; requires confirm:true.

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": {
      "scope": "<scope>",
      "type": "<type>",
      "action": "<action>",
      "confirm": "<confirm>"
    },
    "name": "proxmox_add_firewall_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
posNoInsert position (default: prepend at 0).
destNoDestination CIDR/IP/alias.
nodeNoNode name (required when scope='node').
typeYesRule direction: 'in', 'out', or 'group' (attach a security group).
vmidNoGuest VMID (required when scope='guest').
dportNoDestination port(s), e.g. '22' or '8000:8100'.
macroNoPredefined macro, e.g. 'SSH', 'HTTP'.
protoNoProtocol, e.g. tcp, udp, icmp.
scopeYesFirewall scope: 'cluster', 'node' (needs node), or 'guest' (needs vmid).
sportNoSource port(s).
actionYesACCEPT, DROP, REJECT, or a security-group name when type='group'.
enableNoWhether the rule is active (default true).
sourceNoSource CIDR/IP/alias.
commentNoHuman-readable comment.
confirmYesMust be true to write. Tier-2 safe-write gate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.2

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the write-but-non-destructive profile is known. The description adds meaningful context beyond that: the 'tier-2 write' classification and the mandatory confirm:true safe-write gate. It stops short of saying whether the rule takes effect immediately or how success is reported, so with annotations carrying much of the load a 3 (rather than a 4) is appropriate.

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 compact sentences with no filler, and the scope enumeration plus endpoint arrive first, followed by the write-tier warning. Efficient, though the parenthetical endpoint notation is somewhat developer-oriented and slightly crowds out reader-facing guidance.

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 mutation with no output schema and no enum on the action field, the description is thin: it omits what a successful add returns, whether duplicate rules are deduplicated, and how the group/action interaction works (left entirely to the schema). The scope options and confirm gate are covered, but not enough behavioral context is supplied for a mutation of this complexity.

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 each of the 15 parameters (scope, node, vmid, type, action, ports, macro, etc.) is documented inline in the schema, including the node/vmid requirements tied to scope. The description only reinforces the confirm parameter, so it adds little semantic meaning beyond the schema and lands at the baseline 3.

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?

"Add a firewall rule at the cluster, node, or guest scope" states a specific verb, resource, and the three scopes it operates on, and even names the underlying endpoint (POST {base}/firewall/rules). The verb 'Add' inherently separates it from list_firewall_rules and delete_firewall_rule siblings, but the description never explicitly names those alternatives, keeping it just short of a 5.

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 prerequisite "Tier-2 write; requires confirm:true" tells the agent a gate must be satisfied before the call, which is genuinely useful usage context. However, it gives no guidance on when to prefer this tool over related ones (e.g., firewall_options, set_firewall_enabled) or any exclusions, so usage is only implied.

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