generate_postmortem
Create a unified post-mortem report by combining anomaly history, blast-radius, traces, and log highlights for one service over a specified time window. Ideal for after-incident analysis to get a quick overview.
Instructions
Stitch the gateway's primitives (anomaly history, blast-radius, traces, log highlights) into a single markdown post-mortem report for one service over a given window. When to use: after an incident, when the operator or LLM wants 'one document the on-call can read in 60 seconds' instead of poking the individual tools. Prerequisites: anomaly history requires OMCP_ANOMALY_HISTORY_REMOTE_WRITE + a Prometheus source. Traces require Tempo / Jaeger. Blast-radius requires a topology provider. Behavior: read-only. Returns markdown by default; pass format='json' for the structured shape. Output capped (timeline 20 rows, blast-radius 30 nodes, 10 traces) — JSON shape carries the full data. Related: get_anomaly_history, query_traces, get_blast_radius for the underlying primitives.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service | Yes | Suspected root-cause service. | |
| duration | No | Window length, e.g. '1h', '6h'. Default '1h'. | |
| format | No | 'markdown' (default) or 'json'. |