Home / Servers / DigitalOcean API / firewalls_update

Update a Firewall

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

Update a Firewall To update the configuration of an existing firewall, send a PUT request to /v2/firewalls/$FIREWALL_ID. The request should contain a full representation of the firewall including existing attributes.… [PUT /v2/firewalls/{firewall_id}]

Name on the gateway: digitalocean_api__firewalls_update · may change things.

Parameters

NameTypeDescription
firewall_id requiredstringA unique ID that can be used to identify and reference a…
idstringA unique ID that can be used to identify and reference a firewall.
statuswaiting | succeeded | failedA status string indicating the current state of the firewall. This can be…
created_atstringA time value given in ISO8601 combined date and time format that represents…
pending_changesarrayAn array of objects each containing the fields "droplet_id", "removing", and…
name requiredstringA human-readable name for a firewall. The name must begin with an alphanumeric…
droplet_idsarrayAn array containing the IDs of the Droplets assigned to the firewall. Requires…
tagsarrayA flat array of tag names as strings to be applied to the resource. Tag names…
inbound_rules requiredarray
outbound_rulesarray

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_update",
  "arguments": {
    "firewall_id": "…",
    "name": "…",
    "inbound_rules": []
  }
}

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

More from DigitalOcean API