get_worker
Read one Cloudflare Worker's configuration—compatibility date/flags, usage model, observability, and binding names/types—without exposing binding values or secrets. Use it for read-only inspection.
Instructions
Read one Worker's settings: compatibility date and flags, usage model, observability, and its bindings reduced to name and type (binding values and secrets are never returned). Read-only; needs CF_API_TOKEN.
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": {
"name": "<name>"
},
"name": "get_worker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Worker script name as shown in the Cloudflare dashboard, e.g. "my-worker". | |
| account_id | No | Cloudflare account ID (32 hex characters). Optional when CF_ACCOUNT_ID is set in the server environment. |