Home / Servers / Cloudflare API / update_policy
Update a policy configuration
An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.
Update a policy configuration Updates an existing policy configuration and replaces its actions. [PUT /accounts/{account_id}/data-security/posture/policies/{policy_id}]
Name on the gateway: cloudflare_api__update_policy · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
account_id required | string | account_id parameter |
policy_id required | string | policy_id parameter |
actions required | object | Actions to execute when this policy is… |
applies_to_all_integrations required | boolean | When true, the policy applies to all… |
description | string | Optional description of what this policy does. |
display_name required | string | Display name for the policy configuration. |
enabled required | boolean | Boolean specifying if the policy is enabled or… |
integration_ids | array | The integrations this policy applies to.… |
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": "cloudflare_api__update_policy",
"arguments": {
"account_id": "…",
"policy_id": "…",
"actions": "…",
"applies_to_all_integrations": true,
"display_name": "…",
"enabled": true
}
}Or connect the Cloudflare API server directly, which lists 3,127 tools including this one:
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 policy configuration tool with account_id set to ….