Skip to main content
Glama

Get Uptime

get_uptime
Read-onlyIdempotent

Compute an API test's uptime percentage over a window, plus latency percentiles and run counts. Uptime = SUCCESS / (SUCCESS + FAILURE); ERROR, MISSED and RATE_LIMITED runs are excluded. Defaults to the last 24 hours when no window is given.

Input Schema

NameRequiredDescriptionDefault
toNoEnd of the window, ISO-8601 instant; defaults to now
fromNoStart of the window, ISO-8601 instant; defaults to 24h before 'to'
apiTestIdYesId of the API test to report on

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Added
  3. Removed
  4. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent and non-destructive semantics, but the description adds genuinely valuable behavior: the exact uptime formula, the exclusion of ERROR, MISSED and RATE_LIMITED runs, and the default 24-hour window. It does not describe response shape in detail, but for a read-only statistical tool this is strong added context.

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?

Three short sentences with no waste: the core action, the formula/exclusions, and the default window are presented in a logical, front-loaded order.

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?

For a read-only metric tool with no output schema, the description covers what is returned (uptime percentage, latency percentiles, run counts), how uptime is computed, which run statuses are excluded, and the default time window. Nothing essential for correct invocation is missing.

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 the schema already documents apiTestId, from and to including their defaults. The description reinforces the default-window behavior but adds no syntax or format detail beyond what the schema already provides; baseline 3 applies.

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 states a specific verb and resource: computing an API test's uptime percentage, latency percentiles and run counts. It is clearly distinct from raw-run siblings like get_api_test_runs in substance, but never names an alternative or explicitly contrasts itself with any sibling tool.

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 only implied: an agent can infer this is the aggregation/statistics tool rather than a raw-run fetcher, but there is no explicit when-to-use, when-not-to-use, or named alternative such as get_api_test_runs.

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