Skip to main content
Glama

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)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
leave_type_idYes
number_of_daysYes
nameYes
employee_idNo
department_idNo
all_employeesNo
date_fromNo
date_toNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/industream/mcp-odoo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server