apply_leave
Submit a leave request for an employee by specifying employee ID, leave type, start and end dates, and reason. Select from casual, sick, earned, or unpaid leave; the system records the request for approval or further processing.
Instructions
Apply for leave 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>",
"leaveType": "<leaveType>",
"startDate": "<startDate>",
"endDate": "<endDate>",
"reason": "<reason>"
},
"name": "apply_leave"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | ||
| endDate | Yes | ||
| leaveType | Yes | ||
| startDate | Yes | ||
| employeeId | Yes |