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
| Name | Type | Description |
|---|---|---|
id | string | The unique identifier for the block storage volume. |
droplet_ids | array | An array containing the IDs of the Droplets the volume is attached to. Note… |
name required | string | A human-readable name for the block storage volume. Must be lowercase and be… |
description | string | An optional free-form text field to describe a block storage volume. |
size_gigabytes required | integer | The size of the block storage volume in GiB (1024^3). This field does not… |
created_at | string | A time value given in ISO8601 combined date and time format that represents… |
tags | array | A flat array of tag names as strings to be applied to the resource. Tag names… |
snapshot_id | string | The unique identifier for the volume snapshot from which to create the volume. |
filesystem_type | string | The name of the filesystem type to be used on the volume. When provided, the… |
region required | ams1 | ams2 | ams3 | blr1 | fra1 | lon1 | nyc1 | nyc2 | nyc3 | sfo1 | sfo2 | sfo3 | sgp1 | tor1 | syd1 | The slug identifier for the region where the resource will initially be… |
filesystem_label | string | The 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:
{
"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:
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 ….