Create Volume
hetzner_create_volumeCreates a new Hetzner Cloud volume by specifying a name and size; provide a location or assignee to determine placement and optionally attach it to a server.
Instructions
Create a new volume. Either location or assignee must be provided to determine placement.
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": {
"name": "<name>",
"size": "<size>"
},
"name": "hetzner_create_volume"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the volume | |
| size | Yes | Size of the volume in GB | |
| format | No | Filesystem format for the volume | |
| labels | No | Labels as key-value pairs | |
| server | No | Deprecated alias for assignee {id: server, type: "server"}; do not combine with assignee | |
| assignee | No | Resource to attach the volume to once created; the volume is created in its location | |
| location | No | Location name (e.g. "fsn1"). Required if no assignee is set | |
| automount | No | Auto-mount the volume after attaching it to the assignee |