Home / Servers / DigitalOcean API / vpc_subnets_create
Create a VPC Subnet
An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.
Create a VPC Subnet To create a subnet within a VPC, send a POST request to /v2/vpcs/$VPC_UUID/subnets with a name and, optionally, an IP range. [POST /v2/vpcs/{vpc_uuid}/subnets]
Name on the gateway: digitalocean_api__vpc_subnets_create · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
vpc_uuid required | string | The unique identifier of the VPC to which the subnet… |
name required | string | The human-readable name of the VPC subnet. |
ip_range | string | An RFC1918 CIDR range between /16 and /24 that does not overlap another team… |
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__vpc_subnets_create",
"arguments": {
"vpc_uuid": "…",
"name": "…"
}
}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 vpc subnet tool with vpc_uuid set to ….