Purge the CDN cache
cloudcdn_purgeRemove cached CloudCDN edge copies so the next request fetches the updated file from origin; use after replacing a file at the same path. Prefer URL or tag purges over purging the whole zone.
Instructions
Remove cached copies from the CloudCDN edge so the next request fetches the file from origin; the stored file itself is not deleted. Use it after replacing a file at the same path. To find what to purge use cloudcdn_assets or cloudcdn_insights_top; if the API seems down, check cloudcdn_health first. Give one target: urls, tags, or everything=true for the whole zone; if several are given, everything wins over tags and tags over urls. Calls POST /api/purge with CLOUDCDN_ACCOUNT_KEY and returns its JSON: success (boolean), purged (the urls or tags sent, or "everything"), remaining_today (purges left of the daily allowance) and cloudflare (the upstream purge API's raw response). Cannot be undone, and a full purge sends every request to origin until the cache refills, so prefer urls or tags. Fails: no target, exit code 64; no CLOUDCDN_ACCOUNT_KEY, a JSON-RPC error; the API rejects an empty list, more than 30 URLs or tags, URLs outside https://cloudcdn.pro/ and tags other than letters, digits and hyphens (HTTP 400, exit code 69), a wrong key (HTTP 401, exit code 77), and more than 100 purges a day (HTTP 429, exit code 75).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cloudcdn_purge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Cache tags your deploy attached to files (letters, digits and hyphens, e.g. "release-42"), at most 30; purges every file carrying any of them. | |
| urls | No | Absolute URLs of cached files, at most 30: the CDN origin plus a path from cloudcdn_assets or cloudcdn_insights_top, e.g. "https://cloudcdn.pro/acme/v1/hero.webp". | |
| everything | No | true to purge the whole zone. Overrides tags and urls; use it only when no list of URLs or tags covers the change. |