Skip to main content
Glama

MTTR, MTTA, MTTD

get_mttr
Read-only

Calculate incident response metrics—MTTR, MTTA, and MTTD—with median, p90, and customer-detected share, grouped by severity, service, month, or root cause for a chosen period.

Instructions

Incident response metrics for a period: mean time to restore (MTTR), acknowledge (MTTA) and detect (MTTD), with median, p90 and customer-detected share. Group by severity (default), service, month or root cause.

Input Schema

NameRequiredDescriptionDefault
periodNoTime window: last_30_days, last_90_days (default), this_month, last_month, this_quarter, last_quarter, year_to_date, all, YYYY-MM, or YYYY-MM-DD..YYYY-MM-DD
serviceNoLimit to one service/component, e.g. 'checkout'
group_byNo
severityNoSEV1..SEV4

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds real behavioral value by disclosing what is computed (mean, median, p90, customer-detected share) and that severity is the default grouping — the latter appears nowhere in the schema. It stops short of explaining metric definitions or empty-period behavior, which keeps it below a 5.

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 tight sentences: the first defines the payload and its statistics, the second the grouping options. Metric names are front-loaded and there is no filler.

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?

With no output schema, the description appropriately summarizes the return content (three metric families plus medians, p90 and customer-detected share), and the schema carries period and filter formats. Only the semantics of what MTTR/MTTA/MTTD measure in this system is left unstated, a minor but real gap.

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

Parameters4/5

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

Schema coverage is a strong 75%, so the burden is light. The description still contributes the default grouping dimension ('severity (default)'), which the schema does not declare for group_by, and enumerates the same four group_by values, confirming the enum's meaning.

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 the specific resource (incident response metrics), expands every acronym (MTTR/MTTA/MTTD), and enumerates the statistics returned plus the grouping dimensions. This clearly separates it from sibling metric tools like get_dora_metrics or get_defect_metrics, which cover different domains.

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 by the metric names and the grouping sentence, but there is no explicit guidance on when to choose this over get_dora_metrics, get_kpi_trend or compare_periods, and no stated prerequisites or exclusions. An agent can infer intent from the domain, but must reason about sibling selection itself.

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