Home / Servers / Cloudflare API / token_validation_rules_preview
Preview a token validation rule
An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.
Preview a token validation rule Returns zone operations annotated as included or excluded to preview the rule's coverage before… [POST /zones/{zone_id}/token_validation/rules/preview]
Name on the gateway: cloudflare_api__token_validation_rules_preview · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
zone_id required | string | zone_id parameter |
per_page | integer | Maximum number of results per page. |
page | integer | Page number of paginated results. |
state | array | state parameter |
host | array | Filter operations by host. |
hostname | array | Filter operations by host. |
method | array | Filter operations by method. |
endpoint | array | Filter operations by endpoint. Allows substring… |
exclude | array | Ignore operations that were otherwise included… |
include | array | Select all matching operations. |
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__token_validation_rules_preview",
"arguments": {
"zone_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 preview a token validation rule tool with zone_id set to ….