Leave request message
leave_request_messageWrite the short, polite message asking a manager for the leave days of a break, in the same words as the Leave Hacker app. Pass the dates to book; the break's first and last day are worked out from the weekends (and bank holidays, if you pass region) either side unless you pass them.
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": {
"dates_to_book": "<dates_to_book>"
},
"name": "leave_request_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | Optional, to count bank holidays next to the dates: england-and-wales, scotland or northern-ireland for UK bank holidays (from gov.uk); IE for Ireland; an Australian state or territory as AU-NSW, AU-VIC, AU-QLD, AU-WA, AU-SA, AU-TAS, AU-ACT or AU-NT (their public holidays differ a lot); US for US federal holidays; or a two-letter ISO 3166-1 country code such as DE or FR for other countries' public holidays (from Nager.Date). | |
| break_end | No | Last day off, if known (yyyy-MM-dd). | |
| break_start | No | First day off, if known (yyyy-MM-dd). | |
| dates_to_book | Yes | The working days to book as leave (yyyy-MM-dd). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| break | Yes | ||
| notes | Yes | ||
| message | Yes | ||
| datesToBook | Yes |