zendesk_wfm_fetch_shifts
Retrieve workforce management shifts for specified agents between two dates. Filter by publication status and paginate results.
Instructions
Fetch WFM shifts for specified agents within a date range. Supports filtering by publication status and pagination. Requires ZENDESK_WFM_API_TOKEN.
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": {
"agentIds": "<agentIds>",
"startDate": "<startDate>",
"endDate": "<endDate>"
},
"name": "zendesk_wfm_fetch_shifts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentIds | Yes | Array of agent IDs to fetch shifts for | |
| startDate | Yes | Start date in ISO format (required) | |
| endDate | Yes | End date in ISO format (required) | |
| orderBy | No | Field to order results by | |
| orderDirection | No | Order direction | |
| published | No | Filter by publication status | |
| page | No | Page number for pagination | |
| pageSize | No | Number of items per page |