accounts_list
List all accounts in your Cloudflare account
set_active_account
Set active account to be used for tool calls that require accountId
workers_list
List all Workers in your Cloudflare account.
If you only need details of a single Worker, use workers_get_worker.
workers_get_worker
Get the details of the Cloudflare Worker.
workers_get_worker_code
Get the source code of a Cloudflare Worker. Note: This may be a bundled version of the worker.
query_worker_observability
Query the Workers Observability API to analyze logs and metrics from your Cloudflare Workers.
* A query typical query looks like this:
{"view":"events","queryId":"workers-logs-events","limit":5,"dry":true,"parameters":{"datasets":["cloudflare-workers"],"filters":[{"id":"520","key":"message","operation":"eq","type":"string","value":"Clickhouse Statistics"},{"id":"2088","key":"statistics.elapsed","operation":"gt","type":"number","value":"0.269481519"}],"calculations":[],"groupBys":[],"havings":[]},"timeframe":{"to":"2025-04-30T20:53:15Z","from":" ""2025-04-30T19:53:15Z"}}
## Core Capabilities
This tool provides three primary views of your Worker data:
1. **List Events** - Browse individual request logs and errors
2. **Calculate Metrics** - Compute statistics across requests (avg, p99, etc.)
3. **Find Specific Invocations** - Locate individual requests matching criteria
## Filtering Best Practices
- Before applying filters, use the observability_keys and observability_values tools to confirm available filter fields and the correct filter value to add unless you have the data in a response from a previous query.
- Common filter fields: $metadata.service, $metadata.trigger, $metadata.message, $metadata.level, $metadata.requestId,
## Calculation Best Practices
- Before applying calculations, use the observability_keys tools to confirm key that should be used for the calculation
## Troubleshooting
- If no results are returned, suggest broadening the time range or relaxing filters
- For errors about invalid fields, recommend using observability_keys to see available options
observability_keys
Find keys in the Workers Observability Data
## Best Practices
- Set a high limit (1000+) to ensure you see all available keys
- Add the $metadata.service filter to narrow results to a specific Worker
## Troubleshooting
- If expected fields are missing, verify the Worker is actively logging
- For empty results, try broadening your time range
observability_values
Find values in the Workers Observability Data.
## Troubleshooting
- For no results, verify the field exists using observability_keys first
- If expected values are missing, try broadening your time range
search_cloudflare_documentation
Search the Cloudflare documentation.
This tool should be used to answer any question about Cloudflare products or features, including:
- Workers, Pages, R2, Images, Stream, D1, Durable Objects, KV, Workflows, Hyperdrive, Queues
- AI Search, Workers AI, Vectorize, AI Gateway, Browser Rendering
- Zero Trust, Access, Tunnel, Gateway, Browser Isolation, WARP, DDOS, Magic Transit, Magic WAN
- CDN, Cache, DNS, Zaraz, Argo, Rulesets, Terraform, Account and Billing
Results are returned as semantically similar chunks to the query.
migrate_pages_to_workers_guide
ALWAYS read this guide before migrating Pages projects to Workers.