Rank the most requested assets
cloudcdn_insights_topRank files by request volume over the last N days, busiest first, to identify assets to optimize, cache longer, or purge after a release.
Instructions
Rank the files that received the most requests over the last N days, busiest first: use it to find what to optimise, cache longer, or purge with cloudcdn_purge after a release. For totals across all files use cloudcdn_insights_summary; to list files regardless of traffic use cloudcdn_assets. Calls GET /api/insights/top-assets and returns the response's Assets list as a JSON array, each entry with Path (with a leading slash, e.g. "/acme/v1/hero.webp") and Requests (the request count over the window); the API reports no bytes per file. A response without an Assets list gives an empty array. 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_top"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look-back window in whole days ending today (UTC), 1 to 90. Default 7. | |
| limit | No | How many files to return, busiest first. Default 10. |