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

NameTypeDescription
zone_id requiredstringzone_id parameter
per_pageintegerMaximum number of results per page.
pageintegerPage number of paginated results.
statearraystate parameter
hostarrayFilter operations by host.
hostnamearrayFilter operations by host.
methodarrayFilter operations by method.
endpointarrayFilter operations by endpoint. Allows substring…
excludearrayIgnore operations that were otherwise included…
includearraySelect 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:

call_tool arguments
{
  "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:

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 preview a token validation rule tool with zone_id set to ….

More from Cloudflare API