Add a firewall rule
gpucloud_add_firewall_ruleOpens a port range (tcp/udp) or icmp on a ready server, from a source CIDR (default 0.0.0.0/0). Ports: single "8080" or range with portRangeMin/portRangeMax. (permission: firewall:write) [Requires a free GPU Cloud account and MCP key]
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": {
"serverId": "<serverId>",
"protocol": "<protocol>"
},
"name": "gpucloud_add_firewall_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| protocol | Yes | ||
| serverId | Yes | Server id (from gpucloud_list_servers). | |
| direction | No | ingress | |
| ethertype | No | IPv4 | |
| portRangeMax | No | ||
| portRangeMin | No | ||
| remoteIpPrefix | No | Source CIDR, e.g. 203.0.113.0/24 (default: anywhere). |