Skip to main content
Glama
Cloudflare Workers MCP Server

Cloudflare Workers MCP Server

list_deployments

List a Worker's recent deployments newest first, showing deployment ID, time, source, traffic split, message, and author; the first entry is the deployment currently serving traffic.

Instructions

List a Worker's recent deployments, latest first (the first entry is the deployment currently serving traffic): deployment ID, time, source, traffic split across version IDs, message and author. Read-only; needs CF_API_TOKEN.

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

Input Schema

NameRequiredDescriptionDefault
nameYesWorker script name as shown in the Cloudflare dashboard, e.g. "my-worker".
limitNoHow many entries to return, newest first. Default 10, max 50.
account_idNoCloudflare account ID (32 hex characters). Optional when CF_ACCOUNT_ID is set in the server environment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it declares the tool read-only, names the required credential (CF_API_TOKEN), and discloses ordering semantics including which entry is live. It omits pagination behavior beyond the limit cap and what happens when a Worker has no deployments or a bad name.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The scope and ordering are front-loaded in the first clause, and the enumeration of returned fields earns its length because no output schema exists. The sentence is dense but every element is substantive; only minor tightening of the field list would improve 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?

The description compensates well for the absence of an output schema by enumerating the returned fields (ID, time, source, traffic split, message, author) and covers the missing annotations with a read-only and auth statement. Gaps remain around how far back 'recent' reaches and whether results beyond the limit require further calls.

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%, with name, limit, and account_id all documented including patterns, defaults, and the CF_ACCOUNT_ID env fallback. The description adds no parameter-level meaning beyond reinforcing 'latest first', so the 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 gives a specific verb and resource ("List a Worker's recent deployments") and states the ordering, plus the meaningful detail that the first entry is the one currently serving traffic. It does not explicitly contrast with the sibling list_versions, so an agent must infer the deployment-vs-version distinction from the phrase "traffic split across version IDs".

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: an agent can tell this is the tool for inspecting a Worker's deployment history, and the "first entry is serving traffic" note hints at a common use case. However, there is no explicit when-to-use guidance, no exclusion of alternatives such as list_versions or check_worker_status, and no stated prerequisites beyond the token.

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