Get Oncall Shift Metrics
get_oncall_shift_metricsRetrieve on-call shift counts, total hours, and statistics grouped by user, schedule, or team to assess workload distribution and support fair scheduling decisions.
Instructions
š Get on-call workload metrics and shift statistics - ESSENTIAL for fairness and planning.
WHEN TO USE: ⢠Monthly/quarterly reviews of on-call distribution ⢠Before adjusting schedules to ensure fair workload ⢠For management reporting on on-call burden ⢠When investigating potential on-call burnout
Returns shift counts, total hours, and statistics grouped by user, schedule, or team.
Examples:
Monthly report: start_date='2025-10-01', end_date='2025-10-31'
Specific user: start_date='2025-10-01', end_date='2025-10-31', user_ids='123,456'
Specific team: team_ids='team-1' (will query schedules for that team first)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | Yes | End date for metrics (ISO 8601 format, e.g., '2025-10-31' or '2025-10-31T23:59:59Z') | |
| group_by | No | Group results by: 'user', 'schedule', 'team', or 'none' | user |
| team_ids | No | Comma-separated list of team IDs to filter by (requires querying schedules first) | |
| user_ids | No | Comma-separated list of user IDs to filter by (optional) | |
| start_date | Yes | Start date for metrics (ISO 8601 format, e.g., '2025-10-01' or '2025-10-01T00:00:00Z') | |
| schedule_ids | No | Comma-separated list of schedule IDs to filter by (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||