Skip to main content
Glama

WatchFor

Get monitor uptime

get_monitor_uptime
Read-onlyIdempotent

Uptime for a monitor over a period — confirmed critical incidents only (the same formula as the dashboard; failed checks that never became an incident do not count), plus check success ratio, check totals and response-time stats; scheduled maintenance excluded. Uptime is null when nothing was observed (no check since the monitor was created or reset, or paused for the whole period) — no data, not 100. Response-time fields cover successful checks only and are null when none succeeded. Heartbeat monitors: /start pings are events, not checks — left out of the check totals and the success ratio.

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": {
      "monitor_id": "<monitor_id>"
    },
    "name": "get_monitor_uptime"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNoTrailing window24h
monitor_idYesMonitor id (UUID)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the read-only/idempotent annotations, the description discloses the exact aggregation semantics, maintenance exclusion, heartbeat /start ping handling, and crucially the null-instead-of-100 behavior when nothing was observed. It also states that response-time fields cover successful checks only and are null otherwise, which prevents a common misreading of zero values.

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?

The definition is dense and front-loaded: the meaning of uptime comes first, then null semantics, then response-time scope, then the heartbeat edge case. Every sentence carries information, though the single long parenthetical sentence is heavier than ideal for quick scanning.

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 two-parameter tool with no output schema, the description does the work the missing output schema would otherwise need to do by explaining return-value semantics and null cases. Nothing essential for correct interpretation of the result 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%, with period already en narrowed and described as a trailing window, so the schema carries parameter documentation. The description reinforces 'over a period' and mentions whole-period pausing, but adds no new parameter syntax or format guidance beyond 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 opens with a specific verb-plus-resource ('Uptime for a monitor over a period') and then narrows the meaning of 'uptime' to confirmed critical incidents, explicitly excluding failed checks that never became incidents and scheduled maintenance. That definitional contrast implicitly separates it from check-listing or incident-stat siblings, though no sibling is named outright.

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 through the formula ('the same formula as the dashboard') and the exclusions, which tells an agent what this tool measures versus raw check data. However, there is no explicit when-to-use statement and no named alternative for comparison, so an agent must infer routing between this and get_monitor_checks or get_incident_stats.

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.