Skip to main content
Glama

availability_history

Read-onlyIdempotent

Track devices that went offline and returned, showing outage counts, downtime minutes, last status changes, and whether each is still down within a chosen look-back window.

Instructions

Which devices went offline (or alerting / dormant) and came back, from the availability change history.

For each device that was not online at some point in the window: how many times it left online, the minutes it spent not online within the window, whether it was already down when the window began, the time of its last change and whether it is still down. Answers "it drops out sometimes" questions that a point-in-time status cannot.

Args: network: Network name or ID; may be omitted when only one is in scope. hours: Look-back window, 1-168 (default 24). top: How many devices to list (1-100, default 20).

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": "availability_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNo
hoursNo
networkNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and open-world, so the safety profile is covered. The description adds genuine behavioral context that annotations cannot: the window semantics ('whether it was already down when the window began', 'still down'), the derived metrics, and the implicit read-only aggregation nature. It omits what happens when results exceed the requested count or in what order devices are ranked.

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 core purpose is front-loaded in the first sentence, and the second sentence enumerates the returned metrics before the Args block. The metric enumeration is dense but earns its place; the minor cost is that the Args block restates parameter names already visible in the schema, though it adds the ranges.

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?

An output schema exists, so return values need not be spelled out, and all three parameters are documented with bounds and defaults. The remaining gap is the meaning of 'top' — the ranking criterion for which devices are listed is never stated, which matters for a tool whose output is truncated to 100.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description fully compensates: 'network' is a name or ID and optional when only one is in scope, 'hours' is constrained to 1-168 with default 24, and 'top' to 1-100 with default 20. These ranges and the conditional-omission rule exist nowhere in the schema and materially change how the agent calls the tool.

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 names a specific resource and derived metric set: 'Which devices went offline (or alerting / dormant) and came back, from the availability change history.' It lists exactly what is reported per device (count of transitions out of online, minutes offline, pre-window-down flag, last-change time, still-down flag), which is far beyond restating the name.

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?

It explicitly frames the use case: 'Answers "it drops out sometimes" questions that a point-in-time status cannot,' which tells the agent to prefer this over a snapshot status tool for intermittent-outage questions. It gives no explicit exclusions or named alternatives, so it stops short of a 5.

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