Home / Servers / Hetzner Cloud API / change_primary_ip_protection
Change Primary IP Protection
An MCP tool from the Hetzner Cloud API server, hosted on mcp.hjlabs.in.
Change Primary IP Protection Changes the protection configuration of a Primary IP. A Primary IPs deletion protection can only be enabled if its auto_delete property is set to false. [POST /primary_ips/{id}/actions/change_protection]
Name on the gateway: hetzner_api__change_primary_ip_protection · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
id required | integer | ID of the Primary IP. |
delete required | boolean | Prevent the Resource from being deleted. |
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__change_primary_ip_protection",
"arguments": {
"id": 0,
"delete": true
}
}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 change primary ip protection tool with id set to ….