Skip to main content
Glama

get_uptime

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

Input Schema

TableJSON 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. Added
  2. Removed
  3. Added

TDQS

A4.3/5.0
Behavior4/5

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

No annotations are provided, so the description carries the burden of behavioral transparency. It notably discloses the exact uptime formula and explicitly excludes ERROR and MISSED runs, which is valuable beyond the tool's name. Although it does not explicitly state 'read-only', the verb 'Compute' strongly implies a non-mutating operation, and the formula detail adds genuine transparency.

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?

The description is three sentences, each earning its place: the first states the core purpose, the second defines the metric precisely, and the third clarifies the default window. It is front-loaded with the key action and resource, with no filler or repetition.

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?

Given the moderate complexity, full schema coverage, and absence of an output schema, the description is complete. It names the primary outputs, provides the exact calculation rule, and explains how window parameters behave by default. An agent has enough information to invoke it correctly.

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 fully documents all three parameters. The description adds value by confirming the default window behavior ('Defaults to the last 24 hours'), but this largely reiterates what the parameter descriptions already state. Thus, it meets the baseline without significantly surpassing it.

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?

The description begins with a specific verb ('Compute') and identifies the resource ('an API test's uptime percentage') along with additional outputs (latency percentiles, run counts). It clearly distinguishes this aggregated metrics tool from siblings like get_api_test_runs by focusing on uptime calculation rather than raw runs.

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

Usage Guidelines4/5

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

The description states clear context: it computes uptime over a window and defaults to the last 24 hours when no window is provided. It does not explicitly name alternatives or exclusions, but the scope is evident enough for an agent to know when aggregation is needed versus other test operations.

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