Skip to main content
Glama

Vultr MCP

by rsp2k

create_rule

Define firewall rules to control network traffic by specifying protocol, IP ranges, ports, and source types for enhanced security configuration.

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

NameRequiredDescriptionDefault
firewall_group_idYes
ip_typeYes
notesNo
portNo
protocolYes
sourceNo
subnetYes
subnet_sizeYes

Input Schema (JSON Schema)

{ "properties": { "firewall_group_id": { "title": "Firewall Group Id", "type": "string" }, "ip_type": { "title": "Ip Type", "type": "string" }, "notes": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Notes" }, "port": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Port" }, "protocol": { "title": "Protocol", "type": "string" }, "source": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Source" }, "subnet": { "title": "Subnet", "type": "string" }, "subnet_size": { "title": "Subnet Size", "type": "integer" } }, "required": [ "firewall_group_id", "ip_type", "protocol", "subnet", "subnet_size" ], "type": "object" }

Other Tools from Vultr MCP

Related Tools

    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