create-time-off-request
Create a time-off request for an employee by specifying employee ID, start and end dates, time-off type ID, and amount in days.
Instructions
Create a new time-off request for an employee
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": {
"employeeId": "<employeeId>",
"start": "<start>",
"end": "<end>",
"timeOffTypeId": "<timeOffTypeId>",
"amount": "<amount>"
},
"name": "create-time-off-request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | End date (YYYY-MM-DD) | |
| start | Yes | Start date (YYYY-MM-DD) | |
| amount | Yes | Amount of time off requested (in days, as a number) | |
| status | No | Request status: approved, denied, requested. Default: requested | |
| employeeId | Yes | The employee ID (numeric) | |
| timeOffTypeId | Yes | Time-off type ID (numeric, get from get-meta-fields) | |
| previousRequest | No | ID of a previous request this supersedes |