Skip to main content
Glama

delete_worker_secret

DestructiveIdempotent

Delete a secret binding from a Cloudflare Worker script. Requires human approval to execute, otherwise returns a preview of the change.

Instructions

Delete a secret binding from a Worker script. Requires confirm:true (human-approval gate); without it returns a preview only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idNoCloudflare account ID. Falls back to CLOUDFLARE_ACCOUNT_ID env var when omitted.
script_nameYesThe Worker script name.
nameYesSecret binding name to delete.
confirmNoHuman-approval gate: must be true to actually perform this mutating operation. Omit or set false to get a non-executing preview of what would happen (with secrets redacted). A human should approve before this is set to true.
Behavior4/5

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

The description adds behavior beyond annotations by specifying the confirm gate and preview-only mode when confirm is not true. Annotations already indicate destructive and mutating behavior, so the description supplements this with operational details.

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 purpose, no wasted words. Concisely captures essential information.

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?

Given full schema coverage and no output schema, the description covers the core behavior and the crucial confirm gate. It could optionally describe the preview return format, but is sufficient for a simple delete operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, providing baseline. The description adds meaning to the confirm parameter by explaining its role as a human-approval gate and its effect on preview vs. execution.

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 clearly states it deletes a secret binding from a Worker script, which is a specific verb and resource. It distinguishes from sibling delete tools by focusing on worker secrets, but does not explicitly contrast with put_worker_secret.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains the critical human-approval gate (confirm:true) and preview behavior, providing clear guidance on how to use the tool. It does not mention when not to use it or alternatives like put_worker_secret.

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/helbertparanhos/cloudflare-mcp-pro'

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