Cloudflare MCP Pro
v1.1.0Cloudflare MCP: DNS, Zones, Workers, KV, R2, D1, Pages, WAF, SSL, Email, AI via REST API v4
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
verify_token
Validate the configured Cloudflare API token and show its status/permissions.
list_accounts
List Cloudflare accounts accessible by the token.
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | When true, follow pagination and return all pages combined (ignores page/per_page). |
page | number | Page number (default 1). |
per_page | number | Results per page (max 50). |
list_zones
List zones (domains), optionally filtered by name or status.
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | When true, follow pagination and return all pages combined (ignores page/per_page). |
name | string | Filter by domain name (exact or substring). |
page | number | |
per_page | number | |
status | string | Filter by zone status. |
get_zone
Get details of a single zone by ID.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
create_zone
Add a new domain (zone) to an account. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
name * | string | The domain name to add (e.g. example.com). |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
type | string | Zone setup type. Default 'full'. |
delete_zone
Delete a zone by ID. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
purge_cache
Purge a zone's cache — everything, or by files/tags/hosts/prefixes. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
files | array | Specific URLs to purge. |
hosts | array | Hostnames to purge (Enterprise). |
prefixes | array | URL prefixes to purge (Enterprise). |
purge_everything | boolean | Purge the entire cache. Mutually exclusive with files/tags/hosts/prefixes. |
tags | array | Cache-Tags to purge (Enterprise). |
get_zone_analytics
Get HTTP traffic analytics for a zone over a time range (via GraphQL).
| Parameter | Type | Description |
|---|---|---|
since * | string | Hour-aligned ISO 8601 UTC start, e.g. 2024-01-01T00:00:00Z. httpRequests1hGroups buckets are hourly. |
until * | string | Hour-aligned ISO 8601 UTC end, e.g. 2024-01-02T00:00:00Z. |
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
get_zone_setting
Get a single zone setting (e.g. ssl, always_use_https, min_tls_version).
| Parameter | Type | Description |
|---|---|---|
setting * | string | Setting id, e.g. ssl, always_use_https, min_tls_version, brotli, http3, security_level. |
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
update_zone_setting
Update a single zone setting (e.g. set ssl=full, always_use_https=on). Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
setting * | string | Setting id to change, e.g. ssl, always_use_https, min_tls_version. |
value * | New value. Type depends on the setting (e.g. ssl='full', always_use_https='on', min_tls_version='1.2'). | |
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
list_dns_records
List DNS records of a zone, optionally filtered by type/name.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
fetch_all | boolean | When true, follow pagination and return all pages combined (ignores page/per_page). |
name | string | Filter by record name (FQDN). |
page | number | |
per_page | number | |
type | string | DNS record type. |
create_dns_record
Create a DNS record (A, AAAA, CNAME, TXT, MX, etc). Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
content * | string | Record value (IP, target host, text, etc). |
name * | string | Record name (e.g. www.example.com or @ for root). |
type * | string | DNS record type. |
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
comment | string | Optional comment for the record. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
priority | number | Priority for MX/SRV records. |
proxied | boolean | Whether traffic is proxied through Cloudflare (A/AAAA/CNAME only). |
ttl | number | TTL in seconds. 1 = automatic. Default 1. |
update_dns_record
Update an existing DNS record (partial update). Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
record_id * | string | DNS record ID (from list_dns_records). |
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
comment | string | |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
content | string | |
name | string | |
priority | number | |
proxied | boolean | |
ttl | number | |
type | string | DNS record type. |
delete_dns_record
Delete a DNS record by ID. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
record_id * | string | DNS record ID to delete. |
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
get_dnssec
Get the DNSSEC status and DS record details for a zone.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
edit_dnssec
Enable or disable DNSSEC for a zone. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
status * | string | Set 'active' to enable DNSSEC, 'disabled' to turn it off. |
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
export_dns_records
Export all DNS records of a zone as a BIND zone file.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
list_workers
List Worker scripts in an account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
get_worker
Get a Worker script's settings/metadata.
| Parameter | Type | Description |
|---|---|---|
script_name * | string | The Worker script name. |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
deploy_worker
Create or update (deploy) a Worker script from ES module source. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
script * | string | The Worker source code (ES module format). |
script_name * | string | The Worker script name to create/update. |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
compatibility_date | string | Compatibility date, e.g. 2024-01-01. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
main_module | string | Entry module filename. Default 'worker.js'. |
delete_worker
Delete a Worker script by name. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
script_name * | string | The Worker script name to delete. |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
list_worker_routes
List Worker routes (URL patterns mapped to Workers) on a zone.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
create_worker_route
Create a Worker route mapping a URL pattern to a Worker script. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
pattern * | string | Route pattern, e.g. example.com/api/*. |
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
script | string | Worker script name to run on this route. Omit to disable on the pattern. |
delete_worker_route
Delete a Worker route by ID. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
route_id * | string | Route ID (from list_worker_routes). |
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
put_worker_secret
Create or update a secret binding on a Worker script. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
name * | string | Secret binding name (env var name in the Worker). |
script_name * | string | The Worker script name. |
text * | string | The secret value. |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
delete_worker_secret
Delete a secret binding from a Worker script. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
name * | string | Secret binding name to delete. |
script_name * | string | The Worker script name. |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
update_worker_cron
Set the cron triggers (schedules) for a Worker script. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
crons * | array | List of cron expressions, e.g. ['*/5 * * * *']. Empty array clears triggers. |
script_name * | string | The Worker script name. |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
list_kv_namespaces
List Workers KV namespaces in an account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
fetch_all | boolean | When true, follow pagination and return all pages combined (ignores page/per_page). |
page | number | |
per_page | number |
create_kv_namespace
Create a new Workers KV namespace. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
title * | string | Human-readable namespace title. |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
kv_list_keys
List keys in a KV namespace, optionally filtered by prefix.
| Parameter | Type | Description |
|---|---|---|
namespace_id * | string | KV namespace ID. |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
limit | number | Max keys (default 1000). |
prefix | string | Filter keys by prefix. |
kv_get
Read the value of a key in a KV namespace.
| Parameter | Type | Description |
|---|---|---|
key * | string | The key to read. |
namespace_id * | string | KV namespace ID. |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
kv_put
Write a value to a key in a KV namespace, with optional TTL. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
key * | string | The key to write. |
namespace_id * | string | KV namespace ID. |
value * | string | The value to store. |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
expiration_ttl | number | Seconds until the key expires. |
kv_delete
Delete a key from a KV namespace. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
key * | string | The key to delete. |
namespace_id * | string | KV namespace ID. |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
list_r2_buckets
List R2 buckets in an account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
name_contains | string | Filter buckets by name substring. |
create_r2_bucket
Create a new R2 bucket. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
name * | string | Bucket name (lowercase, hyphens allowed). |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
location_hint | string | Optional region hint for the bucket location. |
delete_r2_bucket
Delete an (empty) R2 bucket. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
name * | string | Bucket name to delete (must be empty). |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
list_d1_databases
List D1 databases in an account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
fetch_all | boolean | When true, follow pagination and return all pages combined (ignores page/per_page). |
name | string | Filter by database name. |
page | number | |
per_page | number |
create_d1_database
Create a new D1 database. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
name * | string | Database name. |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
primary_location_hint | string | Optional primary location hint, e.g. wnam, weur. |
query_d1
Execute a SQL statement against a D1 database (with optional bound params). Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
database_id * | string | D1 database ID (from list_d1_databases). |
sql * | string | The SQL statement to execute. |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
params | array | Bound parameters for '?' placeholders in the SQL. |
list_pages_projects
List Cloudflare Pages projects in an account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
get_pages_project
Get details of a Cloudflare Pages project.
| Parameter | Type | Description |
|---|---|---|
project_name * | string | The Pages project name. |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
list_firewall_rulesets
List WAF rulesets configured on a zone.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
get_ruleset
Get a single ruleset (with its rules) by ID.
| Parameter | Type | Description |
|---|---|---|
ruleset_id * | string | Ruleset ID (from list_firewall_rulesets). |
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
list_access_rules
List IP/ASN/country access rules (block/challenge/allow) on a zone.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
fetch_all | boolean | When true, follow pagination and return all pages combined (ignores page/per_page). |
mode | string | Action to take for matching requests. |
page | number | |
per_page | number |
create_access_rule
Create an IP/ASN/country access rule (block, challenge, or whitelist). Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
mode * | string | Action to take for matching requests. |
target * | string | What the rule matches on. |
value * | string | Match value, e.g. '1.2.3.4', '1.2.3.0/24', 'AS13335', or 'US'. |
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
notes | string | Optional note describing the rule. |
delete_access_rule
Delete an access rule by ID. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
rule_id * | string | Access rule ID (from list_access_rules). |
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
list_page_rules
List page rules on a zone.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
status | string | Filter by status. |
create_page_rule
Create a page rule (URL pattern + actions like cache_level, forwarding_url). Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
actions * | array | List of actions to apply when the pattern matches. |
url_pattern * | string | URL match pattern, e.g. *example.com/images/*. |
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
priority | number | Rule priority (higher runs first). |
status | string | Rule status. Default 'active'. |
delete_page_rule
Delete a page rule by ID. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
rule_id * | string | Page rule ID (from list_page_rules). |
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
list_certificate_packs
List SSL/TLS certificate packs on a zone.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
status | string | Filter by certificate pack status. Default 'all'. |
get_ssl_verification
Get SSL/TLS certificate verification status for a zone.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
order_certificate_pack
Order an advanced certificate pack for one or more hostnames. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
hosts * | array | Hostnames to cover, e.g. ['example.com', '*.example.com']. |
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
certificate_authority | string | Certificate authority. Default 'google'. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
validation_method | string | Domain control validation method. Default 'txt'. |
validity_days | Certificate validity in days. Default 90. |
list_custom_hostnames
List custom hostnames (SSL for SaaS) on a zone.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
fetch_all | boolean | When true, follow pagination and return all pages combined (ignores page/per_page). |
hostname | string | Filter by hostname. |
page | number | |
per_page | number |
create_custom_hostname
Add a custom hostname (SSL for SaaS) to a zone. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | The custom hostname to add, e.g. app.customer.com. |
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
ssl_method | string | SSL validation method. Default 'http'. |
ssl_type | string | Certificate type. Default 'dv'. |
delete_custom_hostname
Delete a custom hostname by ID. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
custom_hostname_id * | string | Custom hostname ID (from list_custom_hostnames). |
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
list_email_rules
List Email Routing rules on a zone.
| Parameter | Type | Description |
|---|---|---|
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
create_email_rule
Create an Email Routing rule (forward an address to a destination). Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
forward_to * | string | Verified destination address to forward matched mail to. |
match_to * | string | Source address to match, e.g. hello@example.com. |
zone_id * | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
enabled | boolean | Whether the rule is active. Default true. |
name | string | Optional rule name. |
list_email_destinations
List verified Email Routing destination addresses in an account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
list_queues
List Cloudflare Queues in an account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
create_queue
Create a new Cloudflare Queue. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
queue_name * | string | Name for the new queue. |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
delete_queue
Delete a Queue by ID. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
queue_id * | string | Queue ID (from list_queues). |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
list_tunnels
List Cloudflare Tunnels (cloudflared) in an account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
is_deleted | boolean | Include deleted tunnels. Default false (active only). |
get_tunnel
Get details of a Cloudflare Tunnel by ID.
| Parameter | Type | Description |
|---|---|---|
tunnel_id * | string | Tunnel ID (from list_tunnels). |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
list_turnstile_widgets
List Turnstile widgets in an account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
create_turnstile_widget
Create a Turnstile widget (CAPTCHA alternative) for given domains. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
domains * | array | Allowed domains for the widget, e.g. ['example.com']. |
name * | string | Human-readable widget name. |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
mode | string | Widget mode. Default 'managed'. |
list_ai_models
Search the catalog of Workers AI models available to the account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
search | string | Filter models by name/task substring. |
task | string | Filter by task, e.g. 'Text Generation'. |
run_ai
Run inference on a Workers AI model (text generation, embeddings, classification). Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
input * | object | Model inputs as a JSON object. For text generation use { prompt } or { messages: [...] }; for embeddings use { text }. |
model * | string | Model id, e.g. @cf/meta/llama-3.1-8b-instruct or @cf/baai/bge-base-en-v1.5. |
account_id | string | Cloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted. |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
list_logpush_jobs
List Logpush jobs for a zone or account.
| Parameter | Type | Description |
|---|---|---|
account_id | string | List account-scoped jobs (used when zone_id is omitted). |
zone_id | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |
create_logpush_job
Create a Logpush job streaming a dataset to a destination. Requires confirm:true (human-approval gate); without it returns a preview only.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | Dataset, e.g. http_requests, firewall_events, dns_logs. |
destination_conf * | string | Destination URI, e.g. s3://bucket/path?region=us-east-1 or r2://... or an HTTPS endpoint. |
name * | string | Job name. |
account_id | string | Create an account-scoped job (used when zone_id is omitted). |
confirm | boolean | Human-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve bef… |
enabled | boolean | Whether the job starts enabled. Default true. |
logpull_options | string | Optional fields/timestamp options, e.g. 'fields=...×tamps=rfc3339'. |
zone_id | string | The Cloudflare zone ID (32-char hex). Get it from list_zones. |