cf_list_gateway_rules
Lists Cloudflare Gateway rules (DNS, network, or HTTP) for a specified account ID. Use to retrieve and filter Zero Trust policies.
Instructions
List Cloudflare Gateway (Zero Trust DNS/network/HTTP) rules.
Args:
account_id: account ID.
rule_type: 'dns', 'network', or 'http'. Defaults to 'http'.
Calls: GET /accounts/{account_id}/gateway/rules with filter.
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": {
"account_id": "<account_id>"
},
"name": "cf_list_gateway_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | ||
| rule_type | No | http |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |