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

NameTypeDescription
firewall_id requiredstringA unique ID that can be used to identify and reference a…
droplet_ids requiredarrayAn 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:

call_tool arguments
{
  "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:

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 add droplets to a firewall tool with firewall_id set to ….

More from DigitalOcean API