Skip to main content
Glama
Cloudflare Workers MCP Server

Cloudflare Workers MCP Server

Set workers.dev Serving

set_workers_dev
Idempotent

Toggle serving a Worker on its workers.dev subdomain and optionally enable preview URLs for uploaded versions by script name.

Instructions

Enable or disable serving a Worker on its <script_name>..workers.dev subdomain, and optionally version preview URLs.

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": {
      "script_name": "<script_name>",
      "enabled": "<enabled>"
    },
    "name": "set_workers_dev"
  }
}

Input Schema

NameRequiredDescriptionDefault
enabledYesServe the Worker at <script_name>.<account>.workers.dev
script_nameYesThe name of the Worker script
previews_enabledNoAlso serve preview URLs for uploaded versions

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.4.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare non-read-only, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds only the optional previews behavior, not whether disabling immediately takes the URL offline, whether auth or account-level permissions are needed, or how long propagation takes. Useful but shallow beyond the annotations.

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?

A single front-loaded sentence that covers the enable/disable action, the target subdomain pattern, and the optional previews clause with no redundant wording. Nothing could be removed without losing 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?

For a simple three-parameter toggle with full schema coverage and annotations covering safety and idempotency, the description is nearly sufficient. The only meaningful omissions are the effect of disabling (traffic impact) and whether a response/state is returned, which are minor for this complexity level.

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?

Schema description coverage is 100%, so all three parameters (script_name, enabled, previews_enabled) are already documented in the schema. The description echoes the same meaning without adding format details, defaults, or interaction rules (e.g., whether previews_enabled is meaningful when enabled is false). Baseline 3 applies.

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

Purpose4/5

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

The description states a specific verb pair (enable/disable) and a precise resource: serving a Worker on its <script_name>.<account>.workers.dev subdomain, plus optional preview URL serving. This clearly separates it from domain tools like add_worker_domain and from deployment tools. It stops short of explicitly naming the sibling it differs from, so it lands at 4 rather than 5.

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

Usage Guidelines3/5

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

Usage is implied by the wording: use this to toggle workers.dev serving. There is no explicit statement of when to prefer this over add_worker_domain (custom domains) or deploy_worker, and no prerequisites or exclusions such as 'only after deploying a script'. An agent can infer the use case but is not guided to alternatives.

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