Skip to main content
Glama

WatchFor

Get incident statistics

get_incident_stats
Read-onlyIdempotent

Aggregate incident statistics over a period: totals by severity, MTTR (mean time to resolve), MTBF, the five most unstable monitors, and counts[] per hour (24h) or per day (UTC, oldest first). Each bucket has a display label (bucket, like "Nov 13", no year) and bucket_start (ISO 8601, the sortable value).

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

Input Schema

NameRequiredDescriptionDefault
periodNoReporting window7d

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered; the description instead spends its space on return semantics that no structured field captures. It discloses that buckets are UTC and ordered oldest first, and that the label omits the year while bucket_start is the sortable value — practical details that prevent misreading the output.

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?

Two sentences, both front-loaded: the first lists the metrics, the second clarifies the bucket object. Every clause earns its place and nothing is repeated from the annotations or schema.

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?

For a read-only aggregator with no output schema, the description does the essential work of explaining the counts[] bucket structure and ordering. Gaps remain — MTTR/MTBF units, the shape of the 'five most unstable monitors' list, and whether totals are scoped to a team are unspecified — but these are secondary for a low-risk read.

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?

With one parameter at 100% schema coverage plus a documented default and enum, the schema already carries the parameter meaning. The description only restates 'over a period' without adding format, boundary, or maximum-window guidance beyond what the enum provides, so the baseline of 3 applies.

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?

Starts with a specific verb+resource ('Aggregate incident statistics over a period') and then enumerates exactly what is aggregated: severity totals, MTTR, MTBF, the five most unstable monitors, and hourly/daily counts. This is unmistakably a report-aggregation tool and cannot be confused with the sibling lookup tools (get_incident, get_monitor_uptime), which return per-entity data.

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?

The 'over a period' framing plus the 24h/7d/30d/90d enum implies this is the tool for trend/reporting questions, but the description never says when to choose it over get_incident or get_summary, nor does it state any exclusions or prerequisites. Usage must be inferred from the enumeration of outputs.

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.