create_primary_ip

Create a Primary IP (datacenter-scoped; server must be off to assign). Provide datacenter OR assignee_id (server).

Server Hcloud xodus-co/hcloud-mcp
Category Write
Risk class Medium
Parameters 00 required

What create_primary_ip does on Hcloud

AI agents use create_primary_ip to create or update resources in Hcloud — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Hcloud environment.

Why create_primary_ip needs a policy

This tool creates a new Primary IP resource and assigns it to infrastructure (either a datacenter or a specific server). While this is reversible (IPs can be unassigned/deleted), it modifies the cloud infrastructure state and requires the server to be offline for assignment, indicating significant operational impact. It does not execute arbitrary code or delete data irreversibly, so Write is the appropriate category.

From the tool's definition Tool name 'create_primary_ip' and description 'Create a Primary IP' indicate data creation. The requirement to provide 'datacenter OR assignee_id (server)' shows it modifies cloud infrastructure configuration by assigning network identifiers.

Questions about create_primary_ip

What does the create_primary_ip tool do? +

Create a Primary IP (datacenter-scoped; server must be off to assign). Provide datacenter OR assignee_id (server). It is categorised as a Write tool in the Hcloud MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

How do I enforce a policy on create_primary_ip? +

Register the Hcloud MCP server in PolicyLayer and add a rule for create_primary_ip: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Hcloud. Nothing to install.

What risk level is create_primary_ip? +

create_primary_ip is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit create_primary_ip? +

Yes. Add a rate_limit block to the create_primary_ip rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block create_primary_ip completely? +

Set action: deny in the PolicyLayer policy for create_primary_ip. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides create_primary_ip? +

create_primary_ip is provided by the Hcloud MCP server (xodus-co/hcloud-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER SERVER

Every MCP server has a record like this.

Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.