Summarise traffic
cloudcdn_insights_summaryRetrieve CloudCDN traffic totals and cache hit rate for a look-back period to assess usage changes; set a zone to narrow request counts.
Instructions
Get one set of CloudCDN traffic totals over the last N days: use it for a usage overview, or to see whether a change moved the cache hit rate. For the busiest individual files use cloudcdn_insights_top, for spend cloudcdn_cost, for energy and emissions cloudcdn_carbon, and for individual log lines cloudcdn_logs_query. Calls GET /api/insights/summary and returns its JSON: Period ({Days, Zone}, Zone "all" when not filtered), TotalRequests, TotalBandwidth (human-readable, e.g. "1.2 GB"), TotalBandwidthBytes, CacheHitRate (a percentage string such as "93.4%", or "N/A" without cache data), UniqueCountries and DateFetched (ISO 8601). With zone set, only TotalRequests is narrowed to that zone's paths; the other figures stay account-wide. Read-only. days outside 1..90 fails with exit code 64 before any request. Sends CLOUDCDN_ACCESS_KEY, or else CLOUDCDN_ACCOUNT_KEY; without a valid key the API answers 401 (exit code 77).
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_insights_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look-back window in whole days ending today (UTC), 1 to 90. Default 7. | |
| zone | No | Zone to count: the first path segment of its files, usually a project from cloudcdn_assets, e.g. "acme". Omit for every zone. |