Skip to main content
Glama
Cloudflare Workers MCP Server

Cloudflare Workers MCP Server

Rollback Worker

rollback_worker
Destructive

Rolls back a Cloudflare Worker to an older eligible version at 100% traffic, limited to the 100 most recent versions; bound resources are not reverted.

Instructions

Roll a Worker back by deploying an older version at 100% traffic. Only the 100 most recent versions are eligible; bound resources (KV, R2, D1 data) are NOT reverted.

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

Input Schema

NameRequiredDescriptionDefault
forceNoRoll back even if normally blocked (e.g. a secret changed since that version)
messageNoRollback message (workers/message annotation)
version_idYesThe older version to roll back to (must be among the 100 most recent versions)
script_nameYesThe name of the Worker script

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

A4/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=false, openWorld=true, but the description adds material context beyond them: bound resources (KV, R2, D1 data) are NOT reverted, which is critical for an agent assessing blast radius. The force parameter's bypass behavior is documented in the schema rather than the description, so it isn't double-counted here.

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?

Two tight sentences: the action and mechanism first, then the eligibility limit and the non-reverted resources. No filler, and the most consequential caveat is front-loaded where an agent will read it.

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 destructive, non-idempotent mutation with no output schema, the definition covers the essential risk surface (what is and isn't reverted, eligibility window). It would be stronger with a pointer to list_versions for discovering version_id or a note about required permissions.

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% and every parameter carries a description, including the version_id recency constraint and force bypass rationale. The description only restates the recency limit, adding no syntax or format meaning beyond the schema, so 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?

States a specific verb (roll back) and resource (Worker) plus the mechanism (deploying an older version at 100% traffic), which separates it from deploy_worker and redeploy_assets. It does not explicitly name those siblings, so sibling differentiation is implied rather than stated.

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?

Gives a concrete eligibility constraint (only the 100 most recent versions) that tells the agent when this call will succeed versus fail. It lacks explicit when-to-use-vs-alternative routing such as 'use deploy_worker to go forward' or 'use list_versions to find version_id'.

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