Home / Servers / DigitalOcean API / volumes_create

Create a New Block Storage Volume

An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.

Create a New Block Storage Volume To create a new volume, send a POST request to /v2/volumes. Optionally, a filesystem_type attribute may be provided in order to automatically format the volume's filesystem. Pre-formatted volumes… [POST /v2/volumes]

Name on the gateway: digitalocean_api__volumes_create · may change things.

Parameters

NameTypeDescription
idstringThe unique identifier for the block storage volume.
droplet_idsarrayAn array containing the IDs of the Droplets the volume is attached to. Note…
name requiredstringA human-readable name for the block storage volume. Must be lowercase and be…
descriptionstringAn optional free-form text field to describe a block storage volume.
size_gigabytes requiredintegerThe size of the block storage volume in GiB (1024^3). This field does not…
created_atstringA time value given in ISO8601 combined date and time format that represents…
tagsarrayA flat array of tag names as strings to be applied to the resource. Tag names…
snapshot_idstringThe unique identifier for the volume snapshot from which to create the volume.
filesystem_typestringThe name of the filesystem type to be used on the volume. When provided, the…
region requiredams1 | ams2 | ams3 | blr1 | fra1 | lon1 | nyc1 | nyc2 | nyc3 | sfo1 | sfo2 | sfo3 | sgp1 | tor1 | syd1The slug identifier for the region where the resource will initially be…
filesystem_labelstringThe label applied to the filesystem. Labels for ext4 type filesystems may…

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:

call_tool arguments
{
  "name": "digitalocean_api__volumes_create",
  "arguments": {
    "name": "…",
    "size_gigabytes": 0,
    "region": "…"
  }
}

Or connect the DigitalOcean API server directly, which lists 874 tools including this one:

Run in your terminal
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create a new block storage volume tool with id set to ….

More from DigitalOcean API