Skip to main content
Glama

cloudflare_worker_secret_set

Create or update a secret for a Cloudflare Workers script. The value is not echoed in the response for security.

Instructions

Set a secret for a Workers script. Creates or updates the named secret. The secret value is NOT echoed in the response for security.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
script_nameYesWorker script name (lowercase alphanumeric and hyphens)
secret_nameYesName of the secret (e.g., 'API_KEY', 'DB_PASSWORD')
secret_valueYesSecret value to store
Behavior4/5

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

The description adds value by disclosing that the secret value is not echoed in the response for security, which is a behavioral trait beyond what the schema provides. Since there are no annotations, this disclosure is important.

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 extremely concise with two short sentences. Every word adds value, and the key security note is front-loaded.

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?

The operation is simple (set a secret). The description covers purpose, idempotency (creates or updates), and a security behavior. It does not mention the response format or potential errors, but these are less critical for a set operation without an output schema.

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?

All three parameters have descriptions in the input schema (100% coverage). The description does not add additional parameter semantics beyond what the schema already provides.

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?

The description clearly states the action ('Set a secret for a Workers script') and that it creates or updates the named secret. It distinguishes from sibling tools like cloudflare_worker_secret_delete and cloudflare_worker_secret_list by focusing on setting/updating.

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 implies when to use (to set or update a secret) but does not provide explicit guidance on when not to use or mention prerequisites like authentication or script existence. No alternative tools are referenced.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/itunified-io/mcp-cloudflare'

If you have feedback or need assistance with the MCP directory API, please join our Discord server