Skip to main content
Glama

add_firewall_rule

Add firewall rules to Proxmox VMs, containers, nodes, or cluster with action, direction, protocol, ports, and source/destination filters.

Instructions

Add a firewall rule to a VM/CT, node, or cluster.

Args: action: Rule action: 'ACCEPT', 'DROP', or 'REJECT'. type_: Rule direction: 'in' (incoming) or 'out' (outgoing). vmid: Optional. Add rule to this VM/container. node: Optional. Add rule to this node. Ignored if vmid is provided. proto: Optional. Protocol: 'tcp', 'udp', 'icmp', etc. dport: Optional. Destination port or range (e.g. '80', '8000-9000', '80,443'). sport: Optional. Source port or range. source: Optional. Source IP/CIDR (e.g. '192.168.1.0/24'). dest: Optional. Destination IP/CIDR. iface: Optional. Network interface (e.g. 'net0'). enable: Enable rule immediately (default true). comment: Optional description for the rule. pos: Optional position in the rule chain (0 = first). If neither vmid nor node is provided, adds a cluster-level rule.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
posNo
destNo
nodeNo
vmidNo
dportNo
ifaceNo
protoNo
sportNo
type_Yes
actionYes
enableNo
sourceNo
commentNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden. It details operational behavior including default enablement ('enable: Enable rule immediately (default true)'), position in chain, and scope resolution. It could mention permissions or side effects, but the core behavioral traits are disclosed.

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?

The description is front-loaded with a clear one-line summary, followed by a compact parameter list. Each parameter line is informative and not redundant. It is slightly long due to 13 parameters, but each line earns its place with useful detail or examples.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (13 parameters, 3 scope modes), the description is complete: it explains every parameter, required and optional, and defines scope fallback behavior. The presence of an output schema reduces the need to describe return value. The description adequately covers how to invoke the tool correctly.

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

Parameters5/5

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

Schema description coverage is 0%, yet the description provides detailed semantics for all 13 parameters, including accepted values, examples, and optionality. This adds significant value beyond the schema's bare types and defaults, especially for fields like dport, source, iface, and pos.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Add a firewall rule to a VM/CT, node, or cluster' with a specific verb and target scope. It distinguishes this from sibling tools like list_firewall_rules and delete_firewall_rule by emphasizing the creation action and clarifying the three possible target levels.

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

Usage Guidelines4/5

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

The description provides clear usage context: if neither vmid nor node is provided, the rule applies at cluster level, and 'node' is ignored when vmid is set. It does not explicitly mention alternatives, but no alternative add tool exists, so exclusions are not necessary.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/antonio-mello-ai/mcp-proxmox'

If you have feedback or need assistance with the MCP directory API, please join our Discord server