Skip to main content
Glama

Check latency and uptime

get_check_stats
Read-onlyIdempotent

Latency and uptime of a check over the last day, week or month, as time buckets: points[] of {bucket, avg_latency_ms, uptime_pct, count} where count is the number of executions in the bucket.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "check_id": "<check_id>"
    },
    "name": "get_check_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoDefault day.
check_idYesThe check's id (from list_checks).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and closed-world behavior, so the safety profile is covered. The description adds real value beyond that by documenting the return shape (bucketed points with avg_latency_ms, uptime_pct, count) since there is no output schema. It omits bucket granularity, timezone/anchoring of buckets, and empty-state behavior, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence that identifies the resource and scope first, then specifies the returned structure. Every clause carries information used to interpret the response; nothing is redundant.

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

Completeness4/5

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

This is a simple two-parameter read tool with fully described schema and clear read-only annotations, and the description covers the otherwise-undocumented return shape. The remaining gap is bucket granularity and no-data behavior, minor for a stats endpoint but relevant to interpretation.

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; the description slightly improves on it by framing period as a rolling lookback window ("last day, week or month"), which clarifies semantics beyond the bare enum. It does not repeat the default-day or the check_id provenance, rightly leaving those to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the specific metrics (latency and uptime) for a specific resource (a check) over a bounded time range, so it is clearly a metrics-read tool and distinct from get_check or list_check_transitions. It stops short of explicitly contrasting itself with those siblings.

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

Usage Guidelines3/5

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

Usage is implied: it returns aggregated metrics, whereas get_check returns configuration. However, there is no explicit statement of when to prefer this tool, no prerequisite (e.g., check must exist), and no guidance on which period to pick or what to do when the check has no executions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources