Edit shifts
edit_shiftsUse this when the user adds, moves, reassigns, retimes or deletes specific shifts in one week. Shift ids are the ids in the week results. Every date must fall inside the week given by week_start.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "edit_shifts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | ||
| remove | No | Shift ids to delete. | |
| update | No | ||
| week_start | No | Which week: "this", "next" or "last" (counted from today in the workplace's time zone), or any date in that week as YYYY-MM-DD. Omit for this week. 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 |