Skip to main content
Glama
rsp2k
by rsp2k

create_rule

Add firewall rules to control network access by specifying protocols, IP addresses, ports, and security groups for Vultr cloud resources.

Instructions

Create a new firewall rule.

Args: firewall_group_id: The firewall group ID or description (e.g., "web-servers" or UUID) ip_type: IP type (v4 or v6) protocol: Protocol (tcp, udp, icmp, gre) subnet: IP subnet (use "0.0.0.0" for any IPv4, "::" for any IPv6) subnet_size: Subnet size (0-32 for IPv4, 0-128 for IPv6) port: Port or port range (e.g., "80" or "8000:8999") - required for tcp/udp source: Source type (e.g., "cloudflare") - optional notes: Notes for the rule - optional

Returns: Created firewall rule information

Examples: # Allow HTTP from anywhere create_rule(group_id, "v4", "tcp", "0.0.0.0", 0, port="80")

# Allow SSH from specific subnet
create_rule(group_id, "v4", "tcp", "192.168.1.0", 24, port="22", notes="Office network")

# Allow ping from anywhere
create_rule(group_id, "v4", "icmp", "0.0.0.0", 0)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
firewall_group_idYes
ip_typeYes
protocolYes
subnetYes
subnet_sizeYes
portNo
sourceNo
notesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/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 discloses that this is a creation/mutation tool ('Create a new firewall rule') and provides parameter constraints (e.g., port required for certain protocols), but lacks critical behavioral details like required permissions, whether the rule takes effect immediately, rate limits, or error conditions.

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 well-structured with clear sections (Args, Returns, Examples) and front-loaded purpose. While comprehensive, some details in the parameter explanations could be more concise, but overall it avoids unnecessary verbosity.

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 creation tool with 8 parameters, 0% schema coverage, no annotations, but with an output schema, the description does well by thoroughly documenting parameters and providing examples. However, it lacks behavioral context (permissions, side effects) that would be important for a mutation tool, keeping it from a perfect score.

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?

Given 0% schema description coverage, the description fully compensates by explaining all 8 parameters with clear semantics, examples, and constraints (e.g., 'subnet_size: Subnet size (0-32 for IPv4, 0-128 for IPv6)', 'port: Port or port range... - required for tcp/udp'). This adds significant value beyond the bare schema.

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 the specific action ('Create a new firewall rule') and identifies the resource ('firewall rule'). It distinguishes from sibling tools like 'delete_rule', 'get_firewall_rule', and 'list_firewall_rules' by specifying creation rather than retrieval or deletion.

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 through parameter documentation (e.g., 'required for tcp/udp') and examples showing specific scenarios, but lacks explicit guidance on when to use this tool versus alternatives like 'setup_web_server_rules' or 'delete_rule'. No prerequisites or exclusions are mentioned.

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/rsp2k/mcp-vultr'

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