list_tails
List Tail Sessions
List all active tail sessions for a Worker script.
list_tails
List all active tail sessions for a Worker script.
attach_domain
Attach a Worker to a custom domain (hostname) on a Cloudflare zone. The Worker will handle requests to that hostname.
query_telemetry
Run an observability query against Workers telemetry data. Query logs, metrics, and analytics across all Workers in the account within a time range.
create_deployment
Deploy one or more Worker versions with a traffic split. Supports gradual rollouts by specifying multiple versions with different traffic percentages. Percentages must sum to 100.
list_deployments
List all deployments for a Worker script. The first deployment in the list is the active one serving traffic. Each deployment shows the version(s) and their traffic percentages for gradual rollouts.
get_subdomain
Retrieve the account's workers.dev subdomain and optionally check whether a specific Worker is enabled on it.
delete_secret
Delete a secret binding from a Worker script. This permanently removes the encrypted value.
list_secrets
List all secret bindings on a Worker script. Returns secret names and types only — secret values are never exposed after creation.
update_script_settings
Update script-level settings for a Worker including Logpush, observability, tail consumers, and tags. These settings apply at the script level rather than per-version. Only provided fields are updated.
delete_script
Delete a Worker script from the account. Optionally force-deletes associated resources like bindings and durable objects.
put_secret
Create or update a secret on a Worker script. The secret value will be encrypted and stored securely. Once set, the value cannot be retrieved — only overwritten or deleted.
list_telemetry_keys
List all available telemetry event keys for Workers observability queries. Use this to discover what data can be queried.
list_scripts
List all Worker scripts in the account. Returns metadata for each script including handlers, compatibility settings, and deployment info.
get_script
Retrieve detailed metadata and settings for a specific Worker script including bindings, compatibility settings, observability config, and placement.
create_route
Create a new Worker route that maps a URL pattern on a zone to a Worker script. Use wildcard patterns like `example.com/api/*` to match request URLs.
detach_domain
Detach a Worker from a custom domain. The Worker will no longer handle requests to that hostname.
get_schedules
Retrieve all cron trigger schedules configured for a Worker. Cron Triggers run the Worker's scheduled() handler on a recurring schedule (UTC).
delete_tail
Stop an active tail session for a Worker script.
update_schedules
Replace all cron trigger schedules for a Worker. This completely replaces the existing schedules — provide all desired cron expressions. Schedules execute on UTC time.
list_routes
List all Worker routes for a Cloudflare zone. Routes map URL patterns to Worker scripts.
get_version
Retrieve detailed information about a specific Worker version, including its bindings, runtime configuration, and startup time.
delete_route
Delete a Worker route from a zone. The Worker will no longer handle requests matching the route's pattern.
get_worker_settings
Retrieve the full settings and bindings configuration for a Worker script, including environment variables, KV namespaces, R2 buckets, D1 databases, Queues, Durable Objects, and other bindings.
set_script_subdomain
Enable or disable a Worker on the workers.dev subdomain. When enabled, the Worker is accessible at `<script>.<subdomain>.workers.dev`.
create_tail
Start a real-time log tail for a Worker script. Returns a WebSocket URL that streams logs and exceptions from the Worker as they occur. Useful for live debugging.
update_route
Update an existing Worker route's URL pattern and/or the target Worker script.
list_domains
List all custom domains attached to Workers in the account. Each domain maps a hostname on a Cloudflare zone to a specific Worker.
list_versions
List all versions of a Worker script. Optionally filter to only deployable versions. Versions are created separately from deployments—a version can exist without being deployed.
put_script_content
Replace a Worker's script content without changing its existing configuration or metadata. Use Upload Worker Module when you also need to change bindings, compatibility settings, or annotations.
get_deployment
Retrieve a specific Worker deployment, including its traffic strategy and version split.
get_domain
Retrieve a specific custom domain attachment for a Worker.
delete_deployment
Delete a specific Worker deployment from a script.
get_script_content
Download a Worker's script content as a Slate attachment. Use this when you need to inspect or archive the deployed source without putting full file content in tool output fields.
upload_version
Upload a new deployable Worker version without deploying it. Use create_deployment afterwards to route traffic to the returned version ID.
get_secret
Retrieve metadata for a secret binding on a Worker script. Secret values are not exposed in tool output.
upload_worker_module
Create or replace a Worker script by uploading code and multipart metadata. This is the full Worker upload path for changing code plus bindings, compatibility settings, observability, placement, Logpush, or version annotations.
Manage Cloudflare Workers serverless scripts, versions, and deployments on Cloudflare's global edge network. Create, list, update, download, and delete Worker scripts. Manage versions and deployments independently, supporting gradual rollouts. Configure bindings to external resources like KV, D1, R2, Durable Objects, Queues, and environment variables. Add, list, and delete encrypted secrets. Set up and update cron triggers for scheduled execution. Manage custom domains, routes, and workers.dev subdomains. Stream real-time logs via Tail, configure Logpush for log forwarding, and query observability telemetry data. Supports Workers for Platforms (dispatch namespaces) for multi-tenant use cases.
Common questions about connecting Cloudflare Workers to AI agents with Metorial.