stratos
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CLOUDCDN_URL | No | API base URL. | https://cloudcdn.pro |
| CLOUDCDN_ACCESS_KEY | Yes | CloudCDN read-only key used for assets, insights, and search. | |
| CLOUDCDN_ACCOUNT_KEY | Yes | CloudCDN control-plane key used for purge, zones, rules, tokens, and webhooks. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| cloudcdn_healthA | Check whether the CloudCDN API is up before acting on it, or after another tool such as cloudcdn_purge or cloudcdn_search fails, to tell an outage from a bad request. Calls GET /api/health (with ?deep=1 when deep is true) and returns its JSON: status ("ok", or "degraded" when a required binding is down), timestamp (ISO 8601), apiVersion, bindings (each backing binding's name mapped to true when it is configured), and checks, a list of probes with name, configured, healthy, method and, for bindings the API can run without, optional. Without deep each probe only checks that the binding exists (method "shape"); with deep the assets and KV probes make real reads and add latencyMs, and error when they fail, which is slower. Read-only, stores nothing, safe to repeat, needs no key. A degraded API answers HTTP 503: the request is retried (3 times by default), then the call fails as a tool error carrying the same body and exit code 75. A network failure after the retries is a JSON-RPC error. |
| cloudcdn_purgeA | Remove cached copies from the CloudCDN edge so the next request fetches the file from origin; the stored file itself is not deleted. Use it after replacing a file at the same path. To find what to purge use cloudcdn_assets or cloudcdn_insights_top; if the API seems down, check cloudcdn_health first. Give one target: urls, tags, or everything=true for the whole zone; if several are given, everything wins over tags and tags over urls. Calls POST /api/purge with CLOUDCDN_ACCOUNT_KEY and returns its JSON: success (boolean), purged (the urls or tags sent, or "everything"), remaining_today (purges left of the daily allowance) and cloudflare (the upstream purge API's raw response). Cannot be undone, and a full purge sends every request to origin until the cache refills, so prefer urls or tags. Fails: no target, exit code 64; no CLOUDCDN_ACCOUNT_KEY, a JSON-RPC error; the API rejects an empty list, more than 30 URLs or tags, URLs outside https://cloudcdn.pro/ and tags other than letters, digits and hyphens (HTTP 400, exit code 69), a wrong key (HTTP 401, exit code 77), and more than 100 purges a day (HTTP 429, exit code 75). |
| cloudcdn_assetsA | List the files stored on CloudCDN, one page at a time, filtered by project and file format: use it to enumerate or audit what exists, for example every webp in one project. To find files by what they show or by a word in their name use cloudcdn_search instead; for the most requested files use cloudcdn_insights_top. Calls GET /api/assets and returns a JSON array of that page's files, sorted by name, each with name (file name), path (relative to the CDN root, e.g. "acme/v1/hero.webp"), project, category, format (file extension) and size (bytes). The API puts 50 files on a page; ask for page 2, 3, ... until the array is empty. If the API answers without a Data list, its JSON is returned unchanged. Read-only. Sends CLOUDCDN_ACCESS_KEY, or else CLOUDCDN_ACCOUNT_KEY; without a valid key the API answers 401 (exit code 77). HTTP 429 or 5xx fail with exit code 75 after retries, other 4xx with exit code 69. |
| cloudcdn_insights_summaryA | 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). |
| cloudcdn_insights_topA | 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). |
| cloudcdn_ai_altA | Generate alt text for one image with CloudCDN's vision model, for accessibility or SEO. To check whether an image is safe to publish use cloudcdn_ai_moderate instead; to find images use cloudcdn_assets or cloudcdn_search. Calls GET /api/ai/alt-text and returns its JSON: url (the path sent), alt (the suggested text), model (the vision model), source ("ai" when generated now, "cached" when served from the API's cache), degraded (true for a cached answer) and dateGenerated (ISO 8601). Changes nothing in the catalogue, but the API caches the text per path for 24 hours, so a repeat call returns the same text. Fails: an absolute http(s) URL, or a path containing "..", is rejected (HTTP 400, exit code 69); an image the API cannot fetch, HTTP 404 (exit code 69); the vision model unavailable or its daily budget used up, HTTP 503 (exit code 75 after retries); no valid key, HTTP 401 (exit code 77). |
| cloudcdn_ai_moderateA | Classify one image for unsafe content before publishing it. To describe an image instead use cloudcdn_ai_alt; to find images use cloudcdn_assets or cloudcdn_search. Calls GET /api/ai/moderate and returns its JSON: url (the path sent), safe (true only when verdict is "safe"), verdict ("safe", "borderline" or "unsafe"), categories (a score from 0 to 1 for each of nudity, violence, drugs, hateSymbols and gore), reasoning (one sentence from the model), model, source ("ai" or "cached"), degraded (true for a cached answer) and dateGenerated (ISO 8601). When the model's answer cannot be parsed, verdict is "borderline" with every score 0. Deciding what to block is left to the caller; nothing is removed, and the API caches the verdict per path for 24 hours. Fails: an absolute http(s) URL, or a path containing "..", is rejected (HTTP 400, exit code 69); an image the API cannot fetch, HTTP 404 (exit code 69); the vision model unavailable, HTTP 503 (exit code 75 after retries); no valid key, HTTP 401 (exit code 77). |
| cloudcdn_searchA | Find files by meaning or by words in their name, ranked by relevance, e.g. q="dark logo" or q="pricing hero": use it when you know what you want but not where it is. To list everything in a project or format use cloudcdn_assets; to describe a hit use cloudcdn_ai_alt. Calls GET /api/search, which tries vector similarity first and falls back to fuzzy matching on names and paths, and returns a JSON array of hits, best first, each with name, path, project, category, format, size (bytes) and score (higher is closer). The API returns 20 hits by default and at most 50. Read-only. An empty q fails with exit code 64 before any request; more than 100 searches a minute (HTTP 429) or a server error fails with exit code 75 after retries. |
| cloudcdn_signedA | Create a time-limited link to a private file, to share it without making it public. Runs offline: it computes an HMAC-SHA256 signature locally, makes no network call and stores nothing, so it works when the API is down; find the path with cloudcdn_assets or cloudcdn_search, and check the API with cloudcdn_health. Returns one line of text, not JSON: <CLOUDCDN_URL>/api/signed?path=...&expires=...&sig=..., where path is the URL-encoded file path, expires the expiry as given, and sig the 64-character lowercase hex HMAC of ":", the message GET /api/signed checks with the same secret. expires is an absolute Unix time in seconds (e.g. now + 3600 for one hour), not a duration, and is not compared with the clock here: a past value gives a link the API answers with 403 "URL expired". The API also answers 403 to a path that does not start with "/" or that contains "..", "//" or a NUL byte. The secret comes from secret, else SIGNED_URL_SECRET from the environment, the stratos profile or the OS keychain. Fails: no path or expires, exit code 64; no secret, exit code 78. |
| cloudcdn_logs_queryA | 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. |
| cloudcdn_costA | Estimate what CloudCDN traffic cost over the last N days, per region and in total, for FinOps questions. For energy and emissions use cloudcdn_carbon, which reads the same usage; for traffic without prices use cloudcdn_insights_summary. Asks GET /api/billing/usage for per-region requests and bytes first; cloudcdn.pro has no such endpoint today and answers 404, so the usage normally comes from the account totals of GET /api/core/statistics (Summary.TotalRequests and Summary.TotalBandwidth) as a single region named "global", with no split by region; projected=true skips the billing call. With zone set, the statistics narrow only the request count to that zone, and bandwidth stays account-wide. Prices are always computed locally from the published rate card, $0.20 per million requests plus $0.05 per GB. Returns JSON: days, mode ("actual" from billing usage, "projected" from statistics), regions (each with region, requests, bandwidth_gb and cost_usd, rounded to cents) and total_usd. When the billing call is not answered with 2xx, a line naming its HTTP status follows the JSON. Read-only. Fails: no CLOUDCDN_ACCOUNT_KEY, a JSON-RPC error; days outside 1..30, exit code 64; statistics without those totals, exit code 69, instead of reporting zero usage. |
| cloudcdn_carbonA | Estimate the energy (kWh) and emissions (grams CO2e) of CloudCDN traffic over the last N days, per region and in total, for sustainability reporting or as a carbon-aware deploy gate. For money use cloudcdn_cost, which reads the same usage: GET /api/billing/usage when the API has it (cloudcdn.pro answers 404 today), otherwise the account totals of GET /api/core/statistics as a single region named "global", with no split by region. Energy is computed locally at 0.0000001 kWh per request plus 0.0002 kWh per GB; grid intensity is a built-in average per region (400 g/kWh for a region it does not know), or the live value from api.electricitymap.org when the API tags a region with an electricity_maps_zone. Returns JSON: days; regions, each with region, requests, bandwidth_gb, compute_kwh, transfer_kwh, total_kwh, intensity_g_per_kwh, intensity_source ("static" or "electricity_maps") and co2e_g; and totals (total_kwh, total_co2e_g). With intensity-below set it also returns threshold and cleanest (the lowest regional intensity), and unless cleanest is below threshold the call fails with exit code 69, still carrying the report. Read-only. Fails: no CLOUDCDN_ACCOUNT_KEY, a JSON-RPC error; days outside 1..30, exit code 64; statistics without request and bandwidth totals, exit code 69, instead of reporting zero usage. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| cache_bust_after_deploy | Plan a targeted cache invalidation after a deploy. |
| triage_error_spike | Diagnose a 4xx / 5xx spike over the last 24 h. |
| alt_text_batch | Generate AI alt-text for every image in a project. |
| audit_recent_tokens | Review recent token-related audit-log activity. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| CloudCDN health | Live health check of the configured CloudCDN edge. |
| Insights summary (7d) | Requests, bandwidth, and cache ratio over the last 7 days. |
| Top-10 assets (7d) | Top 10 most-requested assets over the last 7 days. |
| Error breakdown (7d) | 4xx / 5xx counts and top failing paths over the last 7 days. |
| Tenant zones | List of zones (tenants) on the configured CloudCDN account. |
| Asset catalog (page 1) | First page of the asset catalogue. |
TDQS
Scored across 12 tools
Each tool has a clearly distinct purpose, and the descriptions explicitly cross-reference related tools to resolve potential overlap. Asset listing, semantic search, and top-traffic ranking are separated, as are traffic summary, cost, carbon, and logs.
All tool names use the same cloudcdn_ prefix and lowercase snake_case convention throughout. Although some names are nouns and others are actions, the pattern is highly predictable and no mixed naming styles appear.
Twelve tools is well within the appropriate range for a CloudCDN operational surface. Each tool covers a distinct concern such as health, purge, search, analytics, AI, signing, logs, cost, and carbon, so none feels redundant.
The set covers inspection, search, purge, analytics, AI enrichment, signed URLs, logs, cost, and carbon very broadly. The main gap is asset lifecycle management: there is no upload, update, delete, or cache-configuration tool, but core operational workflows are still supported.