create_leave_allocation
Assign leave days to employees by specifying type, duration, and recipients (individual, department, or all staff) with optional validity dates.
Instructions
Create a leave allocation for employees.
Args:
leave_type_id: Leave type ID (see list_leave_types)
number_of_days: Number of days to allocate
name: Allocation name/reason
employee_id: Specific employee ID (optional)
department_id: Department ID to allocate to all employees in department (optional)
all_employees: If True, allocate to all employees (default: False)
date_from: Start validity date YYYY-MM-DD (optional)
date_to: End validity date YYYY-MM-DD (optional)
Returns:
Confirmation with created allocation ID(s)
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": {
"leave_type_id": "<leave_type_id>",
"number_of_days": "<number_of_days>",
"name": "<name>"
},
"name": "create_leave_allocation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| leave_type_id | Yes | ||
| number_of_days | Yes | ||
| name | Yes | ||
| employee_id | No | ||
| department_id | No | ||
| all_employees | No | ||
| date_from | No | ||
| date_to | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |