Skip to main content
Glama
daniil-shumko

Cloudflare Workers MCP Server

Deploy Static Site

deploy_static_site
Destructive

Deploy a local directory as a static site on Cloudflare Workers, uploading only new files and applying headers/redirects.

Instructions

Deploy a local directory as a static site on Workers (assets-only Worker): builds the file manifest, uploads only files Cloudflare doesn't already have, and deploys. Newly created sites are served on workers.dev. Set not_found_handling to 'single-page-application' for SPAs. _headers/_redirects at the directory root are applied as configuration (not uploaded), and .assetsignore rules (gitignore-style) exclude files from the deploy.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
directoryYesPath to the built site directory to upload (absolute path recommended)
script_nameYesWorker name to deploy the site as (lowercase, alphanumeric and hyphens)
html_handlingNoHow HTML URLs are canonicalized (default: auto-trailing-slash)
compatibility_dateNoWorker compatibility date (YYYY-MM-DD); defaults to today
enable_workers_devNoServe the site at <script_name>.<account>.workers.dev. Default: enabled for newly created Workers; existing Workers keep their current setting.
not_found_handlingNoResponse when no asset matches: 'single-page-application' serves /index.html (SPA mode), '404-page' serves /404.html (default: none)
Behavior5/5

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

The description goes beyond annotations by disclosing specific behaviors: it uploads only files Cloudflare doesn't already have, applies _headers/_redirects as configuration rather than uploading them, supports .assetsignore rules, and notes that newly created sites are served on workers.dev. This complements the destructiveHint and openWorldHint annotations with concrete operational details.

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 three sentences, front-loaded with the core purpose, and every sentence adds distinct operational detail without redundancy. It is concise yet information-dense.

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

Completeness5/5

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

For a deploy action with no output schema, the description adequately covers input meaning, side effects, and special file handling. It provides enough context for an agent to select and invoke the tool correctly without significant gaps.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds extra value by explaining how not_found_handling relates to SPAs and how directory contents like _headers/_redirects and .assetsignore are treated, which is not fully captured in the schema.

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 tool deploys a local directory as a static site (assets-only Worker) on Cloudflare Workers, using a specific verb and resource. It distinguishes itself from sibling tools like deploy_worker or redeploy_assets by emphasizing assets-only and incremental upload behavior.

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 when to use this tool (deploying static sites) and includes practical guidance like setting not_found_handling for SPAs. However, it does not explicitly name alternative tools or exclusions, so the guidance is implied rather than direct.

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