Skip to main content
Glama

cloudflare_purge_cache_everything

Destructive

Purge every cached asset for a Cloudflare zone, sending all visitors' next requests to the origin. Use only when a full cache reset is required; prefer purging specific URLs.

Instructions

DESTRUCTIVE: purge EVERYTHING from Cloudflare's cache for a zone. Every visitor's next requests go to the origin, which can overload it. Prefer cloudflare_purge_cache_urls. Proposal: an administrator approves it before it runs.

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": {
      "zone_id": "<zone_id>",
      "zone_name": "<zone_name>"
    },
    "name": "cloudflare_purge_cache_everything"
  }
}

Input Schema

NameRequiredDescriptionDefault
zone_idYesThe zone ID (32 hex characters, from cloudflare_get_zone or cloudflare_list_zones).
zone_nameYesThe zone name (example.com.au). Checked against zone_id before anything is changed, so the approver sees which domain this is.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, and openWorldHint=true, so the safety profile is covered structurally. The description adds genuine operational context beyond that: the origin-traffic surge risk from all visitors hitting the origin at once, plus a requirement that an administrator approve before execution. It does not cover whether the purge is asynchronous or how long propagation takes.

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 destructive warning is front-loaded in a single word, then scope, consequence, alternative, and approval gate follow in three tight sentences. No sentence is decorative.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter destructive mutation with no output schema, the description supplies the consequence, the safer alternative, and the approval precondition. Nothing an agent needs in order to decide whether to call it is missing.

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 the schema itself explains zone_id format and that zone_name is cross-checked against zone_id before mutation. The description adds no parameter-level meaning, so baseline 3 applies.

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?

"Purge EVERYTHING from Cloudflare's cache for a zone" states a specific verb, resource, and scope (entire zone cache), and the contrast with cloudflare_purge_cache_urls makes the blast radius unambiguous. An agent can distinguish it from the sibling without opening either schema.

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?

It explicitly names the narrower alternative (cloudflare_purge_cache_urls) and directs the agent to prefer it, which is clear routing guidance. It stops short of stating the positive condition under which full purge is the right choice (e.g., post-deploy global invalidation), so usage is implied rather than fully enumerated.

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