Find cover
find_coverUse this when someone cannot work a shift (sick, a swap, a no-show) or the user asks who could take a shift. Lists who can take it within every rule, fairest first with their hours, then the nearest misses and what stops each. Read-only: hand the shift over with edit_shifts. Name the shift by shift_id, or by person and date.
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": "find_cover"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The date of that person's shift, YYYY-MM-DD. | |
| person | No | Whose shift needs cover, by name or staff id; use with date. | |
| shift_id | No | The shift to cover, from the week results. | |
| workplace_id | No | Workplace id. Omit to use the first workplace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| close | Yes | The nearest misses, with what stops each | |
| ready | Yes | People who can take it within every rule, fairest first | |
| shift | Yes | ||
| holder | Yes | ||
| weekStart | Yes |