Skip to main content
Glama
Cloudflare Workers MCP Server

Cloudflare Workers MCP Server

Get Worker

get_worker
Read-onlyIdempotent

Retrieve a Worker’s live settings—bindings, compatibility date and flags, placement, observability, logpush—plus cron triggers and workers.dev subdomain status.

Instructions

Get a Worker's settings (bindings, compatibility date and flags, placement, observability, logpush) for its live version, plus its cron triggers and workers.dev subdomain status.

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": "get_worker"
  }
}

Input Schema

NameRequiredDescriptionDefault
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

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description adds real value by disclosing the breadth of the returned payload (settings plus cron triggers plus subdomain status), which an agent could not infer from the one-parameter schema. It stops short of noting permission requirements or what happens for a nonexistent script.

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 core action, with the parenthetical field list earning its place because no output schema exists. 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?

With no output schema, the description appropriately compensates by enumerating what comes back. It is nearly complete for a simple read tool; only error behavior for missing Workers and any permission/account scoping are absent.

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?

There is a single parameter, script_name, fully documented in the schema at 100% coverage. The description only implies it identifies the Worker whose live-version settings are returned, adding nothing about naming format or scoping. Baseline 3 applies since the schema does the work.

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 and resource (get a Worker's settings) and enumerates the returned facets: bindings, compatibility date and flags, placement, observability, logpush, cron triggers, workers.dev subdomain status. The phrase 'for its live version' implicitly separates it from get_version/get_worker_code, though no sibling is named outright.

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 inspection tool for a Worker's configuration. There is no statement of when to prefer it over list_workers, get_version, or update_worker_settings, and no prerequisites or failure conditions mentioned.

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