slo-compliance-snapshot
Fetch SLO compliance details including error budget remaining and status (compliant, at-risk, breached) in a single call. Consolidates SLO config, history, corrections, and linked monitor states.
Instructions
Aggregated SLO health: config + history-window SLI + active corrections + each linked monitor's current state in one call. Computes errorBudgetRemainingPct and status (compliant | at-risk | breached). Replaces 3-5 round-trips of get-slo + get-slo-history + list-slo-corrections + get-monitor (per linked monitor). Uses Promise.allSettled — partial failures populate caveats[] instead of crashing. Renders an Apps SDK card on ChatGPT clients (Claude clients receive the same JSON text).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sloId | Yes | SLO ID. Example: abc123def456abc123def456abc123de | |
| historyDays | No | Days of history to evaluate SLI against target (default 7, max 90) | |
| extractFields | No | Comma-separated dotted paths to project from response (e.g. 'id,name,owner.name,columns.*.name'). Use `*` as wildcard for arrays/objects. Wrap field names with dots in backticks. Reduces response tokens dramatically on large entities. |