w2w_get_shifts
Retrieve assigned shifts from When2Work for any date range. Automatically paginates through periods over 31 days, with optional filtering by position.
Instructions
Get assigned shifts from When2Work for a date range. Supports automatic pagination for ranges over 31 days.
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_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "w2w_get_shifts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | Yes | End date in mm/dd/yyyy format (e.g., 01/31/2024) | |
| start_date | Yes | Start date in mm/dd/yyyy format (e.g., 01/15/2024) | |
| position_id | No | Optional: Filter by position ID |