Skip to main content
Glama

Summarise traffic

cloudcdn_insights_summary
Read-onlyIdempotent

Retrieve 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

NameRequiredDescriptionDefault
daysNoLook-back window in whole days ending today (UTC), 1 to 90. Default 7.
zoneNoZone to count: the first path segment of its files, usually a project from cloudcdn_assets, e.g. "acme". Omit for every zone.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.0.24
    • addedInput schema / properties / days / description
      Added value: +"Look-back window in whole days ending today (UTC), 1 to 90. Default 7."
    • addedInput schema / properties / zone / description
      Added value: +"Zone to count: the first path segment of its files, usually a project from cloudcdn_assets, e.g. \"acme\". Omit for every zone."
  2. First observedv0.0.23

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only supply readOnly/idempotent/open-world, and the description adds substantial context beyond that: the underlying GET /api/insights/summary call, the exact response fields and their formats, the zone-narrowing asymmetry, and the failure modes (exit 64 for days outside 1..90, exit 77 / HTTP 401 for a missing key). Auth precedence between CLOUDCDN_ACCESS_KEY and CLOUDCDN_ACCOUNT_KEY is spelled out.

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?

Front-loaded with purpose, then alternatives, then return shape, then caveats and error codes — a sensible order. The single dense paragraph packs a lot in with little waste, though the response-field enumeration could be tightened slightly.

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, so the description carries the return-value burden and does so thoroughly: Period sub-object, units for TotalBandwidth, the string form and 'N/A' case of CacheHitRate, and ISO 8601 for DateFetched. Combined with auth and error behavior, nothing an agent needs to call or interpret the result is missing.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3; the description earns above that by disclosing a semantic the schema omits — with zone set, only TotalRequests is narrowed while the other figures stay account-wide. It also restates the 1..90 window with its failure consequence. The zone value format is largely covered by the schema already, keeping it short of a 5.

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?

States a specific verb and resource ('Get one set of CloudCDN traffic totals over the last N days') and immediately bounds the scope. It also names the siblings it is not (cloudcdn_insights_top, cloudcdn_cost, cloudcdn_carbon, cloudcdn_logs_query), so an agent can route without inspecting another 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?

Gives two concrete use cases ('usage overview', 'see whether a change moved the cache hit rate') and then explicitly routes four other needs to their dedicated tools. Both when-to-use and when-not-to-use are stated.

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