Skip to main content
Glama
Cloudflare Workers MCP Server

Cloudflare Workers MCP Server

get_worker

Read one Cloudflare Worker's configuration—compatibility date/flags, usage model, observability, and binding names/types—without exposing binding values or secrets. Use it for read-only inspection.

Instructions

Read one Worker's settings: compatibility date and flags, usage model, observability, and its bindings reduced to name and type (binding values and secrets are never returned). 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": "get_worker"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesWorker script name as shown in the Cloudflare dashboard, e.g. "my-worker".
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

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it declares read-only semantics, names the required credential (CF_API_TOKEN), and discloses an important non-obvious trait — binding values and secrets are never returned, only name and type. It stops short of describing error/not-found behavior or what happens with a nonexistent worker name.

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 sentences, front-loaded with the operation and its returned scope, followed by the safety/auth caveat. No filler, no restatement of the tool name, and the most surprising fact (secrets never returned) is parenthetically anchored where it matters.

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 two-parameter read tool with no output schema and no annotations, the description covers what the call returns and its auth requirement, which is the critical missing information. Minor gaps remain around failure modes and whether bindings list is paged or bounded.

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 both parameters (name and optional account_id, including the env-var fallback) are already fully documented in the schema. The description adds no syntax, format, or constraint detail beyond that, so the baseline of 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?

"Read one Worker's settings" pairs a specific verb with a specific resource and scope, then enumerates the returned fields (compatibility date/flags, usage model, observability, bindings as name+type). The singular "one Worker" cleanly separates it from the plural sibling list_workers without needing to name it.

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 only implied: an agent can infer this is the per-worker detail lookup versus list_workers for enumeration, but the description never states when to prefer it or what prerequisite flow (e.g. discovering the name first) to follow. Read-only plus CF_API_TOKEN gives some context but no explicit exclusions or alternatives.

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