Fill week
fill_weekUse this when the user wants open shifts filled. Assigns people to every open shift and every uncovered shift the workplace needs, within each person's roles, availability, dates off, hour limit and rest rules, sharing hours, weekends and closes fairly. It never moves or removes existing shifts. For any shift it cannot fill it names the people closest to taking it and what stops each.
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": {
"week_start": "<week_start>"
},
"name": "fill_week"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| week_start | Yes | The week to fill: "this", "next" or "last" (counted from today in the workplace's time zone), or any date in that week as YYYY-MM-DD. For next week pass "next". | |
| workplace_id | No | Workplace id. Omit to use the first workplace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill | No | ||
| week | Yes | ||
| labor | Yes | ||
| links | Yes | ||
| staff | Yes | ||
| checks | Yes | ||
| notice | Yes | ||
| shifts | Yes | ||
| totals | Yes | ||
| account | Yes | ||
| coverage | Yes | ||
| requests | No | Time-off requests from staff waiting for an answer | |
| workplace | Yes | ||
| schemaVersion | Yes |