Skip to main content
Glama
Cloudflare Workers MCP Server

Cloudflare Workers MCP Server

Redeploy Assets

redeploy_assets
Destructive

Create and deploy a new assets-only Worker version by reusing the live version's files and asset config, such as to update compatibility_date without re-uploading unchanged files.

Instructions

Create and deploy a new version of an assets-only Worker that reuses its live version's files and asset config, e.g. to bump compatibility_date. It cannot change html_handling/not_found_handling/base_path; use deploy_static_site for that (unchanged files dedupe, so nothing is re-uploaded). Refuses while a staged version or a gradual rollout is pending.

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>"
    },
    "name": "redeploy_assets"
  }
}

Input Schema

NameRequiredDescriptionDefault
script_nameYesThe name of the Worker script
compatibility_dateNoWorker compatibility date (YYYY-MM-DD); defaults to the Worker's current date

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields 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"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / compatibility_date / description
      Previous value: -"Worker compatibility date (YYYY-MM-DD); defaults to today"New value: +"Worker compatibility date (YYYY-MM-DD); defaults to the Worker's current date"
    • removedInput schema / properties / html_handling
      Removed value: -{
      -  "description": "How HTML URLs are canonicalized (default: auto-trailing-slash)",
      -  "enum": [
      -    "auto-trailing-slash",
      -    "force-trailing-slash",
      -    "drop-trailing-slash",
      -    "none"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / not_found_handling
      Removed value: -{
      -  "description": "Response when no asset matches: 'single-page-application' serves /index.html (SPA mode), '404-page' serves /404.html (default: none)",
      -  "enum": [
      -    "none",
      -    "404-page",
      -    "single-page-application"
      -  ],
      -  "type": "string"
      -}
  2. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: the refusal conditions (staged version or gradual rollout pending) and the dedupe guarantee that unchanged files are not re-uploaded. It does not spell out the consequence of destructiveHint=true, i.e. that live traffic moves to the new version and what happens to the prior one, so a small gap remains.

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 dense sentences: capability first, then the exclusion with the sibling redirect, then the precondition. No filler, and the most decision-relevant information (what it is, what it can't do) is front-loaded.

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 two-parameter mutation with no output schema, the description covers scope, exclusions, and blocking preconditions well. It omits what the call returns (e.g. version or deployment identifier) and how the caller would verify or roll back the result, which would be useful since no output schema exists.

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 coverage is 100%, so both parameters are already documented, including the YYYY-MM-DD format and default. The description only adds a rationale for compatibility_date via the 'bump compatibility_date' example; it adds no new syntax or constraint detail, so the baseline 3 applies.

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?

States a specific verb chain and resource: create and deploy a new version of an assets-only Worker, reusing the live version's files and asset config. The qualifier 'assets-only' plus the explicit sibling reference to deploy_static_site lets an agent distinguish it from deploy_worker and deploy_static_site without opening schemas.

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

Usage Guidelines5/5

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

Gives a concrete use case ('e.g. to bump compatibility_date'), an explicit exclusion with a redirect ('cannot change html_handling/not_found_handling/base_path; use deploy_static_site for that'), and a precondition ('refuses while a staged version or a gradual rollout is pending'). When-to-use, when-not-to-use, and the alternative are all named.

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