SLA countdown (business hours)
sla_countdownLive SLA clock for a support ticket: business minutes elapsed and remaining, breached or not, and the deadline. The clock pauses outside working hours, on weekends and holidays, and during manual pauses (e.g. waiting on customer). Custom hours, workdays, country holidays, DST-aware. Use for support-agent SLA tracking and escalation. First 25 calls per day are free, then $0.001 per call (x402).
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": {
"start": "<start>",
"timezone": "<timezone>"
},
"name": "sla_countdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| now | No | Current time (default: now), same formats as start | |
| start | Yes | When the SLA clock started: ISO 8601 with offset, or local YYYY-MM-DDTHH:MM in timezone | |
| pauses | No | Manual pauses (e.g. waiting on customer), up to 100 | |
| country | No | ISO 3166-1 alpha-2 country code (207 countries); its public holidays (2000–2050) are excluded from business days | |
| holidays | No | Extra dates excluded from business-day counts (rest days from workdays are always excluded) | |
| timezone | Yes | IANA time zone of the support team's working hours | |
| work_end | No | End of working hours, default 17:00 | |
| workdays | No | Working days of the week, 0 = Sunday. Default [1,2,3,4,5] (Mon–Fri); e.g. [0,1,2,3,4] for Sun–Thu or [1,2,3,4,5,6] for Mon–Sat | |
| sla_hours | No | SLA target in business hours (combine with sla_minutes) | |
| work_start | No | Start of working hours, default 09:00 | |
| sla_minutes | No | SLA target in business minutes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| now | Yes | ||
| start | Yes | ||
| status | Yes | ||
| breached | Yes | ||
| deadline | Yes | ||
| timezone | Yes | ||
| resumes_at | Yes | When the clock restarts, if paused by working hours | |
| sla_minutes | Yes | ||
| deadline_utc | Yes | ||
| percent_used | Yes | ||
| deadline_weekday | Yes | ||
| elapsed_business_minutes | Yes | ||
| remaining_business_minutes | Yes | ||
| breached_by_business_minutes | Yes |