Home / Servers / Cloudflare API / create_zone_ruleset
Create a zone ruleset
An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.
Create a zone ruleset Creates a ruleset at the zone level. [POST /zones/{zone_id}/rulesets]
Name on the gateway: cloudflare_api__create_zone_ruleset · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
zone_id required | string | zone_id parameter |
dry_run | boolean | Validates the request without persisting changes… |
description | string | An informative description of the ruleset. |
id required | string | The unique ID of the ruleset. |
last_updated required | string | The timestamp of when the ruleset was last… |
name required | string | The human-readable name of the ruleset. |
version required | string | The version of the ruleset. |
kind required | managed | custom | root | zone | The kind of the ruleset. |
phase required | string | The phase of the ruleset. |
rules | array | The list of rules in the ruleset. |
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_zone_ruleset",
"arguments": {
"zone_id": "…",
"id": "…",
"last_updated": "…",
"name": "…",
"version": "…",
"kind": "…",
"phase": "…"
}
}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 zone ruleset tool with zone_id set to ….