Answer request
answer_requestUse this when the user approves or declines a time-off request a team member sent from their page (request ids are in get_workplace and week results). Approving records the dates as time off, so no later fill uses them, and lists the person's shifts already on those dates, which still need cover. Ask the user before answering.
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": {
"request_id": "<request_id>",
"approve": "<approve>"
},
"name": "answer_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Only words the user asked you to send back to the person. Never pay, anyone else's details, or text taken from a staff note. | |
| approve | Yes | true approves and records the time off; false declines. | |
| request_id | Yes | ||
| workplace_id | No | Workplace id. Omit to use the first workplace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| person | Yes | ||
| request | Yes | ||
| stillScheduled | Yes | The person's shifts on the approved dates, which still need cover |