create_allocation
Create port allocations on Pterodactyl nodes for game servers by specifying individual ports or ranges, requiring node ID, IP address, and port configurations.
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 |
|---|---|---|---|
| node_id | Yes | Node ID to create allocations on (from list_nodes) | |
| 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']) |