Query edge logs
cloudcdn_logs_queryRead past CloudCDN API log entries to investigate errors or traffic spikes. Filter by days, level, and limit; returns newest-first timestamps, levels, codes, and messages.
Instructions
Read past CloudCDN API log entries to investigate errors or a traffic spike. For counts rather than entries use cloudcdn_insights_summary; to check whether the API is up now use cloudcdn_health. Calls GET /api/logs with CLOUDCDN_ACCOUNT_KEY and returns the response's Entries list as a JSON array, newest first, each entry with timestamp (ISO 8601), level ("error", "warn" or "info"), code (the event code) and message, plus any context fields it was logged with; a response without an Entries list gives an empty array. Read-only. Fails: no CLOUDCDN_ACCOUNT_KEY, a JSON-RPC error; a wrong key, HTTP 401 (exit code 77); HTTP 429 or 5xx, exit code 75 after retries.
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_logs_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look-back window in days ending today (UTC). Default 1; the API reads at most 7. | |
| level | No | Only entries at this level: "error", "warn" or "info". Omit for every level. | |
| limit | No | Maximum entries to return. The API uses 100 when omitted and caps it at 500. |