Skip to main content
Glama

Query edge logs

cloudcdn_logs_query
Read-onlyIdempotent

Read 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

NameRequiredDescriptionDefault
daysNoLook-back window in days ending today (UTC). Default 1; the API reads at most 7.
levelNoOnly entries at this level: "error", "warn" or "info". Omit for every level.
limitNoMaximum entries to return. The API uses 100 when omitted and caps it at 500.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.0.24
    • addedInput schema / properties / days / description
      Added value: +"Look-back window in days ending today (UTC). Default 1; the API reads at most 7."
    • addedInput schema / properties / level / description
      Added value: +"Only entries at this level: \"error\", \"warn\" or \"info\". Omit for every level."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum entries to return. The API uses 100 when omitted and caps it at 500."
  2. First observedv0.0.23

TDQS

A4.6/5.0
Behavior5/5

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

Annotations declare read-only, idempotent and open-world, and the description goes well beyond them: underlying endpoint (GET /api/logs), required CLOUDCDN_ACCOUNT_KEY, ordering (newest first), entry fields, empty-array fallback, and concrete failure modes with HTTP status codes and exit codes (401 -> 77, 429/5xx -> 75 after retries). This is unusually complete behavioral disclosure for a read tool.

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?

Content is front-loaded with purpose and alternatives before implementation detail, and every sentence carries information. It is dense — the failure-mode sentence packs several status codes into one block — but nothing is wasted or repetitive.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description compensates by specifying the exact return shape (Entries array, newest first, timestamp/level/code/message plus context fields) and the empty-response behavior. Combined with the documented auth requirement and error codes, an agent has everything needed to call and interpret it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so days, level and limit are already fully documented in the schema, including defaults and API caps. The description adds nothing parameter-specific beyond the schema, so the baseline 3 applies.

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?

The description opens with a specific verb and resource ('Read past CloudCDN API log entries') plus the intent ('to investigate errors or a traffic spike'). It also names the sibling tools it is not, so an agent can distinguish it from cloudcdn_insights_summary and cloudcdn_health without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing is given: counts go to cloudcdn_insights_summary, current status goes to cloudcdn_health, and this tool is for past entries. Both alternatives and the selecting conditions are stated, leaving nothing to inference.

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