sla_getsli
Retrieve calculated SLA service level indicator values to verify whether services met their availability targets. Filter by service, time range, or number of periods.
Instructions
Get SLA Service Level Indicator (SLI) data — the actual calculated availability percentages for services covered by an SLA. Returns period-by-period SLI values showing whether the SLO target was met. Required: 'slaid'. Optionally filter by 'serviceids' and time range with 'period_from'/'period_to', or ask for a number of 'periods'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"slaid": "<slaid>"
},
"name": "sla_getsli"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slaid | Yes | ID of the SLA to retrieve SLI data for. | |
| server | No | Target Zabbix server. Available: default. Defaults to 'default' if omitted. | |
| periods | No | Preferred number of periods to return (1 to 100). With one of period_from / period_to it counts from that end; with neither, the most recent periods are returned. | |
| raw_json | No | Strips the security disclaimer preamble from the response so it is pure JSON. Default: false. Requires the bearer token to have 'allow_raw_json' explicitly enabled by an operator in the admin portal - tokens without that policy receive a PolicyError instead. WARNING: setting true bypasses the prompt-injection mitigation marker that wraps untrusted Zabbix data (host names, item descriptions, problem text). LLM clients (Claude, GPT, Cursor, ...) should leave this false; only programmatic non-LLM consumers (Python scripts, n8n workflows that json.loads the result) should set true. | |
| period_to | No | Return SLI data up to this time (Unix timestamp, ISO 8601 date-time such as 2026-04-01T08:00:00Z, or a relative time such as now-1h, now/d or now-7d/d; a value without a zone is read in the zone resolved for the call). | |
| serviceids | No | Return SLI data only for these service IDs. | |
| period_from | No | Return SLI data starting from this time (Unix timestamp, ISO 8601 date-time such as 2026-04-01T08:00:00Z, or a relative time such as now-1h, now/d or now-7d/d; a value without a zone is read in the zone resolved for the call). |