erpnext_apply_leave
Apply for single-day or multi-day leave by specifying dates, leave type, half-day status, and a reason.
Instructions
Apply for leave (single or multiple days)
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": {
"from_date": "<from_date>"
},
"name": "erpnext_apply_leave"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_date | No | End date (YYYY-MM-DD) | |
| half_day | No | Half day leave? | |
| from_date | Yes | Start date (YYYY-MM-DD) | |
| leave_type | No | Leave type (default: Leave) | |
| description | No | Reason for leave | |
| half_day_date | No | Half day date |