create_firewall_rule
Create a firewall rule to control inbound traffic by IP address or port with accept or reject actions on a RunCloud server.
Instructions
Create a new firewall rule
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>",
"type": "<type>"
},
"name": "create_firewall_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Port number (for port type) | |
| type | Yes | Rule type (ip, port) | |
| protocol | No | Protocol (tcp, udp) | |
| serverId | Yes | The ID of the server | |
| ipAddress | No | IP address (for ip type) | |
| firewallAction | No | Action (accept, reject) |