Skip to main content
Glama
Cloudflare Workers MCP Server

Cloudflare Workers MCP Server

List Secrets

list_secrets
Read-onlyIdempotent

Lists secret bindings on a specified Worker, returning only names and types—never secret values—to support configuration audits.

Instructions

List the secret bindings on a Worker (names and types only; Cloudflare never returns secret values).

Input Schema

NameRequiredDescriptionDefault
script_nameYesThe name of the Worker script

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.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 the safety profile is covered. The description adds genuinely new and important behavior: the response is limited to names and types because Cloudflare never returns secret values, which prevents an agent from expecting to read secret contents.

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, with the critical constraint placed in a parenthetical immediately after. No filler or redundancy.

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?

There is no output schema, so the description must hint at the return shape, which it does by disclosing that only names and types are returned. For a one-parameter read tool with full annotation coverage, little else is needed, though a note on empty results or permissions would have made it fully complete.

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% and there is only one parameter (script_name) with its own description, so the schema carries the semantics. The description only implies that the resource is a Worker and adds no format or naming detail beyond that, which is the baseline for a fully documented single parameter.

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 ('List the secret bindings on a Worker') plus the exact scope ('names and types only'). This is clearly distinguishable from set_secrets and delete_secret, though it does not name them explicitly, so it falls just short of the top tier.

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 read-side counterpart to set_secrets/delete_secret and is the way to audit which secrets exist. There is no explicit when-to-use statement, no prerequisites, and no mention of alternatives.

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