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
| Name | Type | Description |
|---|---|---|
account_id required | string | account_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… |
finding_type_id required | string | The finding type this policy is associated with.… |
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__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:
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 ….