apply_leave
Submit a leave request to HRMS for manager approval after checking leave balance and confirming dates and type.
Instructions
Submit a leave application to HRMS for manager approval. Always call get_leave_balance() first to confirm sufficient balance exists for the requested type. Confirm dates and leave type with the user before submitting — leave applications cannot be cancelled from the MCP. Returns success with leave type and date range, or an error if the form submission fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| leave_type | Yes | Leave type exactly as shown in HRMS. Options: 'Planned Leave (CL)', 'Privileged Leave', 'Emergency Leave', 'Short Leaves', 'Work From Home (WFH)'. | |
| from_date | Yes | Leave start date in YYYY-MM-DD format. Example: '2026-06-25'. | |
| to_date | Yes | Leave end date in YYYY-MM-DD format. Same as from_date for single-day leave. Example: '2026-06-27'. | |
| reason | Yes | Reason for the leave request. Be specific. Example: 'Travelling for a family event out of town'. | |
| half_day | No | Whether this is a half-day leave. Use '1' for half day, '0' for full day. | 0 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||