Manage a server firewall
firewallA server's firewall. action list shows the rules in the order they are checked (the first match decides; traffic no rule matches is allowed). add appends one rule; remove deletes one rule by rule_id. add and remove change who can reach the server, so ask the person first and set confirm to the server id. list needs vm:read; add and remove need vm:destroy.
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": {
"server_id": "<server_id>",
"action": "<action>"
},
"name": "firewall"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | No | Only for add | |
| action | Yes | ||
| confirm | No | For add and remove: repeat the server id | |
| rule_id | No | Only for remove: from action list | |
| server_id | Yes | ||
| request_id | No | An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action. |