Home / Servers / DigitalOcean API / firewalls_assign_droplets
Add Droplets to a Firewall
An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.
Add Droplets to a Firewall To assign a Droplet to a firewall, send a POST request to /v2/firewalls/$FIREWALL_ID/droplets. In the body of the request, there should be a droplet_ids attribute containing a list of Droplet IDs.… [POST /v2/firewalls/{firewall_id}/droplets]
Name on the gateway: digitalocean_api__firewalls_assign_droplets · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
firewall_id required | string | A unique ID that can be used to identify and reference a… |
droplet_ids required | array | An array containing the IDs of the Droplets to be assigned to the firewall. |
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__firewalls_assign_droplets",
"arguments": {
"firewall_id": "…",
"droplet_ids": []
}
}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 add droplets to a firewall tool with firewall_id set to ….