timeweb_create_firewall_rule
Create inbound or outbound firewall rules for Timeweb Cloud groups by defining protocol, port, and CIDR range.
Instructions
Create a new firewall rule in a group
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": {
"group_id": "<group_id>",
"direction": "<direction>",
"protocol": "<protocol>",
"cidr": "<cidr>"
},
"name": "timeweb_create_firewall_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cidr | Yes | CIDR block (e.g., '0.0.0.0/0' for any, '192.168.1.0/24' for specific subnet) | |
| port | No | Port or port range (e.g., '22', '80-443', or empty for all) | |
| format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | |
| group_id | Yes | Firewall group ID | |
| protocol | Yes | Network protocol | |
| direction | Yes | Traffic direction (ingress = incoming, egress = outgoing) | |
| description | No | Rule description |