Skip to main content
Glama

create_cluster_firewall_rule

Create a cluster-level firewall rule to accept, drop, or reject traffic based on source, destination, protocol, and ports, with optional logging and macros.

Instructions

Create a cluster-level firewall rule.

Args: action: 'ACCEPT', 'DROP', 'REJECT'. type: 'in', 'out', 'group'. enable: 1 = enabled, 0 = disabled. source: Source address/range (CIDR or alias). dest: Destination address/range. proto: Protocol (tcp, udp, icmp, etc.). sport: Source port(s). dport: Destination port(s). iface: Network interface. macro: Use predefined macro (e.g. 'SSH', 'HTTP', 'HTTPS', 'Ping'). comment: Description. log: Log level: 'emerg', 'alert', 'crit', 'err', 'warning', 'notice', 'info', 'debug', 'nolog'. pos: Rule position (-1 = append).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
typeYes
enableNo
sourceNo
destNo
protoNo
sportNo
dportNo
ifaceNo
macroNo
commentNo
logNo
posNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

Without annotations, the description fails to disclose behavioral traits such as required permissions, idempotency, or consequences of creating a rule. It only lists parameters, missing broader context like scope (all nodes) or interaction with other firewall tools.

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 concise, with a clear introductory sentence followed by a parameter list. It efficiently conveys necessary information without verbosity, though a more structured grouping (e.g., required vs optional) could improve readability.

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?

The description covers all parameter semantics but lacks higher-level context, such as how cluster rules interact with other firewall rules or prerequisites. The presence of an output schema mitigates the need for return-value details, but overall completeness is adequate.

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?

The input schema has no parameter descriptions (0% coverage), but the description provides meaningful inline definitions for all 13 parameters, including allowed values (e.g., action: 'ACCEPT', 'DROP', 'REJECT') and defaults. This compensates fully for the schema gap.

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 'Create a cluster-level firewall rule,' which precisely identifies the tool's action and scope. It distinguishes from sibling tools like create_container_firewall_rule and create_vm_firewall_rule by specifying 'cluster-level.'

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 description implies usage for cluster-level rules but does not explicitly provide guidance on when to use this tool versus alternatives (e.g., create_vm_firewall_rule for VM-specific rules). It lacks exclusion criteria or contextual triggers.

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/GethosTheWalrus/proxmox-mcp'

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