Skip to main content
Glama
crunchtools

mcp-cloudflare-crunchtools

by crunchtools

purge_cache_tool

Purge cached content from Cloudflare's edge by zone ID, clearing all or specific files, tags, hosts, or prefixes to refresh stale assets.

Instructions

Purge cached content from Cloudflare's edge.

Use one of: purge_everything, files, tags, hosts, or prefixes. tags, hosts, and prefixes require Enterprise plan.

Args: zone_id: Zone ID (32-character hex string) purge_everything: Purge all cached content files: URLs to purge (max 30) tags: Cache tags to purge (Enterprise) hosts: Hostnames to purge (Enterprise) prefixes: URL prefixes to purge (Enterprise)

Returns: Purge operation result

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNo
filesNo
hostsNo
zone_idYes
prefixesNo
purge_everythingNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.5.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / files / description
      Removed value: -"URLs to purge (max 30)"
    • removedInput schema / properties / hosts / description
      Removed value: -"Hostnames to purge (Enterprise)"
    • removedInput schema / properties / prefixes / description
      Removed value: -"URL prefixes to purge (Enterprise)"
    • removedInput schema / properties / purge_everything / description
      Removed value: -"Purge all cached content"
    • removedInput schema / properties / tags / description
      Removed value: -"Cache tags to purge (Enterprise)"
    • removedInput schema / properties / zone_id / description
      Removed value: -"Zone ID (32-character hex string)"
  2. First observedv0.5.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses plan gating (tags/hosts/prefixes require Enterprise) and a limit (files max 30), which is real behavioral context. However, it omits the most important trait for a purge operation: that it is destructive/irreversible and may require specific cache-purge permissions or hit rate limits.

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?

Purpose is front-loaded in one sentence, followed by a compact modal-selection rule, then Args/Returns blocks. Every line carries information; the only mild redundancy is repeating '(Enterprise)' on three lines.

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?

An output schema exists so return values need not be explained, and the description covers selection modes, plan constraints, and per-parameter meaning. The notable gap for a mutation tool with zero annotations is the absence of a destructiveness/permanence warning, which an agent needs before invoking a purge.

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 description coverage is 0%, so the description must compensate, and it largely does: each of the 6 parameters gets a one-line explanation, plus constraints like the 32-char hex format for zone_id and the max-30 limit for files. Only default/null behavior and whether modes can be combined are left unstated.

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?

States a specific verb and resource ('Purge cached content from Cloudflare's edge'), which is concrete and immediately distinguishable from the unrelated siblings (WAF rules, DNS records, page rules). No ambiguity about what the tool operates on.

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?

'Use one of: purge_everything, files, tags, hosts, or prefixes' tells the agent the purge modes are mutually exclusive alternatives, and the Enterprise-plan note tells it which modes are gated. It stops short of stating explicit when-not-to-use conditions or prerequisites beyond plan tier.

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