Skip to main content
Glama
Cloudflare Workers MCP Server

Cloudflare Workers MCP Server

List Worker Domains

list_worker_domains
Read-onlyIdempotent

List custom domains attached to Workers in your account, filtered by Worker name, hostname, zone, or environment.

Instructions

List custom domains attached to Workers in this account. Optionally filter by Worker name, hostname, or zone.

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_worker_domains"
  }
}

Input Schema

NameRequiredDescriptionDefault
serviceNoFilter by Worker (service) name
zone_idNoFilter by zone ID
hostnameNoFilter by hostname
zone_nameNoFilter by zone name
environmentNoFilter by environment

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.6/5.0
Behavior3/5

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

The annotations already declare this as read-only, idempotent, non-destructive, and open-world. The description adds account scoping and optional filtering, but it does not disclose return shape, pagination, auth requirements, or rate limits beyond what the annotations cover.

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?

The description is two sentences with the primary purpose front-loaded and no wasted wording. The second sentence efficiently signals optional filtering without bloating the definition.

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 list tool with rich annotations and full schema coverage, the description is complete enough to understand what it returns in broad terms. It could mention pagination or return format, but those are minor gaps for this tool type and there is no output schema to defer to.

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 the schema already documents all five filter parameters. The description names Worker name, hostname, and zone as filter dimensions, but it omits environment and adds no syntax or format detail beyond the schema.

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 states a specific verb and resource: 'List custom domains attached to Workers in this account.' It is clearly distinct from mutation siblings like add_worker_domain and delete_worker_domain, but it does not explicitly route against list_workers or other list tools.

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?

The description notes that filters are optional, which gives some usage context. However, it does not say when to choose this tool over list_workers or other domain-related siblings, and it provides no exclusions or prerequisites.

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