Skip to main content
Glama

cloudflare_worker_deploy_project

Deploy a multi-file Cloudflare Workers project by running wrangler deploy in the specified project directory, with optional environment.

Instructions

Deploy a multi-file Workers project using wrangler. Runs 'npx wrangler deploy' in the given project directory. Requires wrangler installed in the project (devDependency) and a wrangler.toml config file. Uses the CLOUDFLARE_API_TOKEN from the MCP server environment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
environmentNoOptional wrangler environment name (e.g., 'uat', 'production'). Maps to [env.<name>] in wrangler.toml
project_pathYesAbsolute path to the Workers project directory containing wrangler.toml
Behavior3/5

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

Discloses that it runs a command and uses an API token, but lacks details such as idempotency, error handling, or what happens on failure. Since no annotations exist, description carries full burden and is moderately transparent.

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?

Three concise sentences front-load the core action, prerequisites, and environment dependency. No redundant information.

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?

Covers purpose, prerequisites, and environment. Lacks mention of return values or output schema, but for a deployment tool the output is standard wrangler output; acceptable given no output schema.

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 provides clear parameter descriptions; the description adds value by explaining that 'environment' maps to '[env.<name>]' in wrangler.toml, which is not 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 it deploys a multi-file Workers project using wrangler, with the specific command 'npx wrangler deploy'. It distinguishes from sibling tools like cloudflare_worker_deploy by specifying multi-file and wrangler usage.

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?

Explicitly mentions prerequisites (wrangler installed, wrangler.toml, CLOUDFLARE_API_TOKEN) and context (given project directory). Does not mention when not to use or alternatives, but the sibling set implies simpler alternatives exist.

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/itunified-io/mcp-cloudflare'

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