Skip to main content
Glama
Cloudflare MCP Server

Cloudflare MCP Server

by oh-my-oops

purge_cache

Clear cached content for a Cloudflare zone by URL, cache tag, or all at once to remove stale assets after updates.

Instructions

Purge cached content for a zone

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>"
    },
    "name": "purge_cache"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoArray of cache tags to purge
filesNoArray of URLs to purge
zone_idYesThe zone ID
purge_everythingNoPurge all cached content

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It never states that purging is a destructive, hard-to-reverse operation, that purged content must be re-fetched from origin, or that purge_everything overrides the tags/files parameters. For a mutation tool with zero annotation coverage this is a significant gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of filler. It is arguably too terse for the risk involved, but as a matter of conciseness and structure there is nothing wasted.

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

Completeness2/5

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

For a destructive cache-invalidation tool with four parameters, no annotations, and no output schema, the definition leaves out the highest-value information: irreversibility, origin-refetch consequences, and how purge_everything interacts with tags/files. It is far from complete for its complexity.

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 all four parameters are already documented, which sets the baseline at 3. The description adds no syntax hints (URL format, tag limits) or mutual-exclusivity notes beyond the schema, so it neither helps nor hurts.

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: 'Purge cached content for a zone'. That is unambiguous and no sibling tool in the list (DNS, SSL, zone read/update) overlaps with cache purging. It does not, however, mention the different purge modes, so it stops short of full differentiation.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: nothing about when to purge by tag versus by file versus purge_everything, and no warning about when this should not be called. The agent must infer all routing and preconditions from the schema alone.

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