list_access_rules
List IP, ASN, or country access rules for a Cloudflare zone to review block, challenge, or allow actions.
Instructions
List IP/ASN/country access rules (block/challenge/allow) on a zone.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"zone_id": "<zone_id>"
},
"name": "list_access_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone_id | Yes | The Cloudflare zone ID (32-char hex). Get it from list_zones. | |
| mode | No | Action to take for matching requests. | |
| page | No | ||
| per_page | No | ||
| fetch_all | No | When true, follow pagination and return all pages combined (ignores page/per_page). |