create_allocation
Create new port allocations on a Pterodactyl node as an admin, supporting single ports or ranges. Specify node ID, bind IP, and ports to add server allocations via the Application API.
Instructions
Create new port allocations on a node (admin action). Ports can be individual ('25565') or ranges ('25565-25570'). Use list_nodes to find the node_id first. Requires Application API key.
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": {
"node_id": "<node_id>",
"ip": "<ip>",
"ports": "<ports>"
},
"name": "create_allocation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | IP address to bind the allocation to (e.g. '0.0.0.0' or '192.168.1.1') | |
| ports | Yes | Array of ports or port ranges to allocate (e.g. ['25565', '25570-25575']) | |
| node_id | Yes | Node ID to create allocations on (from list_nodes) |