Home / Servers / Cloudflare API / create_policy

Create a new policy configuration

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

Create a new policy configuration Creates a new policy configuration that defines automated actions to be executed when security… [POST /accounts/{account_id}/data-security/posture/policies]

Name on the gateway: cloudflare_api__create_policy · may change things.

Parameters

NameTypeDescription
account_id requiredstringaccount_id parameter
actions requiredobjectActions to execute when this policy is…
applies_to_all_integrations requiredbooleanWhen true, the policy applies to all…
descriptionstringOptional description of what this policy does.
display_name requiredstringDisplay name for the policy configuration.
enabled requiredbooleanBoolean specifying if the policy is enabled or…
finding_type_id requiredstringThe finding type this policy is associated with.…
integration_idsarrayThe 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:

call_tool arguments
{
  "name": "cloudflare_api__create_policy",
  "arguments": {
    "account_id": "…",
    "actions": "…",
    "applies_to_all_integrations": true,
    "display_name": "…",
    "enabled": true,
    "finding_type_id": "…"
  }
}

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 create a new policy configuration tool with account_id set to ….

More from Cloudflare API