List Shifts
list_shiftsList on-call shifts with user and schedule filters, enriched user details, and MCP-level pagination to find who is on call or when handoffs occur.
Instructions
List on-call shifts with reliable filtering, enrichment, and MCP-level pagination.
Unlike the raw API, this tool:
Actually filters by user_ids (client-side filtering)
Includes user_name, user_email, schedule_name, team_name
Calculates total_hours for each shift
Returns a predictable paginated result for MCP clients
Use this instead of the auto-generated listShifts when you need user filtering or dependable pagination on large tenants.
Answers questions about individual shifts: who is on call at a given time, when a handoff happens, which shifts were overrides, or one person's schedule (via user_ids). For questions about totals across a team -- hours per responder, coverage, load -- use get_oncall_schedule_summary, whose response size depends on team size rather than on how long a range you asked for.
Ranges longer than the upstream cap are split into windows and merged automatically, so a multi-month range is a normal request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_date | Yes | End date/time for shift query (ISO 8601 format, e.g., '2026-02-15T23:59:59Z') | |
| user_ids | No | Comma-separated list of user IDs to filter by (e.g., '2381,94178'). Only returns shifts for these users. | |
| from_date | Yes | Start date/time for shift query (ISO 8601 format, e.g., '2026-02-09T00:00:00Z') | |
| page_size | No | Number of enriched shifts to return per page (max: 100). This paginates the MCP response even when the upstream shifts API does not. | |
| page_number | No | Page number of enriched shifts to return (1-indexed). Use this instead of relying on the generated listShifts pagination. | |
| schedule_ids | No | Comma-separated list of schedule IDs to filter by (optional) | |
| include_user_details | No | Include user name and email in response (default: True) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||