Home / Servers / Hetzner Cloud API / set_firewall_rules
Set Rules
An MCP tool from the Hetzner Cloud API server, hosted on mcp.hjlabs.in.
Set Rules Set the rules of a Firewall. Overwrites the existing rules with the given ones. Pass an empty array to remove all rules. Rules are limited to 50 entries per Firewall and 500 effective rules. [POST /firewalls/{id}/actions/set_rules]
Name on the gateway: hetzner_api__set_firewall_rules · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
id required | integer | ID of the Firewall. |
rules required | array | Array of rules. Rules are limited to 50 entries per Firewall and 500 effective… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "hetzner_api__set_firewall_rules",
"arguments": {
"id": 0,
"rules": []
}
}Or connect the Hetzner Cloud API server directly, which lists 178 tools including this one:
claude mcp add --transport http hj-hetzner-api https://mcp.hjlabs.in/mcp/hetzner-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the set rules tool with id set to ….