Skip to main content
Glama
Unofficial-Proxmox-MCP

Unofficial-Proxmox-MCP

pve_set_firewall_rule

Add or modify a Proxmox VM or container firewall rule by setting its action, direction, protocol, port, and enabled state.

Instructions

Add or modify a firewall rule on a VM or container.

Args: vmid: Target VM or LXC Container ID. action: 'ACCEPT', 'DROP', or 'REJECT'. rule_type: 'in' (inbound) or 'out' (outbound). proto: Protocol: 'tcp', 'udp', 'icmp', etc. dport: Destination port or port range (e.g. '80', '443', '8000:8050'). comment: Brief description of the firewall rule. enable: Whether the rule is actively enabled. node: Optional node name.

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": {
      "vmid": "<vmid>",
      "action": "<action>"
    },
    "name": "pve_set_firewall_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeNo
vmidYes
dportNo
protoNotcp
actionYes
enableNo
commentNo
rule_typeNoin

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden and does not meet it: it does not say whether this is a create-or-replace upsert, whether an existing rule at the same position is overwritten, whether changes take effect immediately or need a reload, or what privileges are needed. For a mutation tool with zero annotation coverage, that is a significant omission.

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?

A single front-loaded purpose sentence followed by a compact Args list; nothing is padded or redundant. The structure is easy to scan, though the Args block restates parameter names in a fairly mechanical way.

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?

Return values are covered by the output schema, and parameters are well documented, so the core is present. What is missing is exactly the context an agent needs before mutating firewall state: upsert vs append semantics, interaction with existing rules, and whether the guest firewall must be enabled.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it largely does: it defines every one of the 8 parameters, gives the enumerated values for action and rule_type, and supplies concrete dport syntax including the range form ('8000:8050'). The remaining gap is 'node' — it is called optional but the description never says what happens when it is omitted.

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 first sentence names a specific verb pair ('Add or modify') and resource ('firewall rule') with its scope ('on a VM or container'), which is enough to distinguish it from the read-only sibling pve_get_firewall. It stops short of explicitly naming that sibling or stating what it is not, so it lands at clear-but-undifferentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to call this versus pve_get_firewall or other config tools, and no stated prerequisites such as the guest firewall needing to be enabled or what permissions are required. It also never explains the ambiguity of 'add or modify' — how the tool decides which rule to modify, since no rule index/position parameter exists.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.