Skip to main content
Glama
daniil-shumko

Cloudflare Workers MCP Server

Deploy Worker

deploy_worker
Destructive

Upload and deploy a Worker script with ES modules and bindings, replacing existing code. Set keep_assets to preserve static assets while updating code.

Instructions

Upload and deploy a Worker script (ES modules) with optional bindings (plain_text, secret_text, kv_namespace, r2_bucket, d1, assets). Replaces the Worker's code and binding set if it already exists. Set keep_assets to retain a site's static assets while updating code. By default the Worker is served on workers.dev.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modulesYesES modules; the first is the entry point unless main_module says otherwise
bindingsNoResource bindings (replaces the full set)
keep_assetsNoRetain the previous version's static assets (deploy code changes to a site without re-uploading files)
main_moduleNoEntry-point module name (default: first module)
script_nameYesWorker name (lowercase, alphanumeric and hyphens)
compatibility_dateNoYYYY-MM-DD; defaults to today (if omitted at the API level it would fall back to 2021-11-02)
enable_workers_devNoServe the Worker at <script_name>.<account>.workers.dev. Default: enabled for newly created Workers; existing Workers keep their current setting.
compatibility_flagsNo
enable_observabilityNoEnable Workers Logs for this Worker (required for query_worker_logs)
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With annotations already declaring destructiveHint=true and readOnlyHint=false, the description adds valuable context: it explicitly states replacement of code and bindings, and explains the keep_assets option for retaining static assets. It also clarifies the default workers.dev serving behavior, going beyond the annotations without contradicting them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a compact four-sentence paragraph that front-loads the core action, then efficiently covers replacement behavior, keep_assets, and default hosting. Every sentence adds meaningful information with no redundancy or fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (9 parameters, no output schema), the description covers key behavioral aspects: replacement, asset retention, and default workers.dev. It leaves some implementation details (e.g., interaction with versioning) to the schema, but overall it provides sufficient context for an agent to understand the tool's role and important side effects.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema provides 89% coverage with detailed descriptions for all parameters, so the baseline is 3. The description adds a high-level overview of binding types and the default behavior for workers.dev, but these are already present in the schema. It does not significantly deepen parameter understanding beyond what the schema already offers.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Upload and deploy a Worker script') and specifies the resource (Worker script with ES modules and bindings). It distinguishes itself from siblings like rollback_worker or list_workers by focusing on deployment and explicitly noting it 'Replaces the Worker's code and binding set if it already exists.'

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for use: deploying or updating a Worker script. It mentions optional bindings, keep_assets for asset retention, and default workers.dev hosting, which imply typical use cases. However, it does not explicitly compare itself to alternatives like create_version or create_deployment, nor does it state when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/daniil-shumko/cloudflare-workers-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server