Skip to main content
Glama

Check CloudCDN health

cloudcdn_health
Read-onlyIdempotent

Check whether the CloudCDN API is up before acting, or after purge/search fails, to distinguish an outage from a bad request.

Instructions

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.

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_health"
  }
}

Input Schema

NameRequiredDescriptionDefault
deepNotrue to probe the assets and KV bindings with real reads (slower; adds latencyMs and error), after a "degraded" status, to see which binding is down. Omit or false for the quick existence check.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.0.24
    • addedInput schema / properties / deep / description
      Added value: +"true to probe the assets and KV bindings with real reads (slower; adds latencyMs and error), after a \"degraded\" status, to see which binding is down. Omit or false for the quick existence check."
  2. First observedv0.0.23

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/openWorld, but the description adds substantial behavior: the GET /api/health endpoint, ?deep=1 semantics, the JSON payload shape, HTTP 503 on degraded with 3 retries and exit code 75, and JSON-RPC error on post-retry network failure. That is far more than the annotations convey, though it stops short of full clarity on timeout/backoff specifics.

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 usage guidance before the mechanics, and every sentence carries information. The return-payload enumeration is dense but justified because no output schema exists; slightly heavy to parse in one pass.

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?

With no output schema, the description fully documents the return values (status, timestamp, apiVersion, bindings, checks) and the failure modes (503/retry/exit 75, JSON-RPC error). Nothing an agent needs to invoke this correctly 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 100% so the baseline is 3, but the description adds real meaning beyond the schema: deep makes the assets and KV probes perform actual reads, adds latencyMs and error fields, and incurs latency. This clarifies exactly what the flag changes operationally, not just its type.

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?

Names a specific verb and resource (check whether the CloudCDN API is up) and explicitly frames it against siblings cloudcdn_purge and cloudcdn_search, so an agent can tell this is a pre-flight/post-failure diagnostic rather than a data tool.

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 explicit when-to-use conditions: before acting, or after another tool fails, to distinguish an outage from a bad request. It also states when to escalate to deep (after a "degraded" status, to identify which binding is down) versus the quick existence check.

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