Home / Servers / Cloudflare API / cws_update_domain_acl

Update a domain ACL and replace its entries

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

Update a domain ACL and replace its entries Replaces the domain access control list's name, default action, and entries. [PUT /accounts/{account_id}/cws/domain-acls/{domain_acl_id}]

Name on the gateway: cloudflare_api__cws_update_domain_acl · may change things.

Parameters

NameTypeDescription
account_id requiredstringaccount_id parameter
domain_acl_id requiredstringdomain_acl_id parameter
default_action requiredALLOW | BLOCKDefault action when no entry matches
entries requiredarrayReplacement set of domain entries. Each domain…
name requiredstringName of the domain ACL

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": "cloudflare_api__cws_update_domain_acl",
  "arguments": {
    "account_id": "…",
    "domain_acl_id": "…",
    "default_action": "…",
    "entries": [],
    "name": "…"
  }
}

Or connect the Cloudflare API server directly, which lists 3,127 tools including this one:

Run in your terminal
claude mcp add --transport http hj-cloudflare-api https://mcp.hjlabs.in/mcp/cloudflare-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the update a domain acl and replace its entries tool with account_id set to ….

More from Cloudflare API