Skip to main content
Glama
Cloudflare Workers MCP Server

Cloudflare Workers MCP Server

list_workers

Lists Workers scripts in a Cloudflare account with names, timestamps, exported handlers, deploy source, and compatibility date for read-only inspection.

Instructions

List the Workers (scripts) in a Cloudflare account: name, created and modified times, exported handlers, last deployed from, compatibility date. Read-only; needs CF_API_TOKEN.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_workers"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.8/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 disclose the two most important traits: the operation is read-only and it requires CF_API_TOKEN. It stops short of describing pagination, result caps, or error behavior for a list endpoint that could return many scripts.

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?

One sentence, front-loaded with the action and resource, followed by the returned fields and then the operational caveats. There is no redundant or filler wording.

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 one-parameter read-only list tool with a fully documented schema, the definition is nearly complete, and listing the returned fields compensates for the absence of an output schema. The only gap is pagination/result-size behavior for a potentially long list.

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%: the single account_id parameter is fully documented, including the 32-hex pattern and the CF_ACCOUNT_ID environment fallback. The description adds nothing beyond the schema here, so the baseline of 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 (list) and resource (Workers/scripts) and enumerates the fields returned, so the agent knows exactly what this returns. It does not explicitly distinguish itself from siblings like get_worker or list_versions, leaving that separation to be inferred from the verb.

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?

Enumerating an account's Workers implies when the tool applies, but there is no explicit when-to-use/when-not statement and no pointer to get_worker for a single worker or list_deployments for deployment history. Guidance is implied rather than stated.

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