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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden but offers limited behavioral insight. It states the tool creates allocations and returns confirmation with IDs, but doesn't disclose critical traits like whether this is a mutating operation (implied by 'create'), permission requirements, error conditions, or rate limits. The description doesn't contradict annotations (none exist), but fails to provide sufficient context for safe and effective use.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear purpose statement followed by parameter details and return information. It's appropriately sized for an 8-parameter tool, though the parameter explanations could be more front-loaded (they come after 'Args:'). Every sentence adds value, with no redundant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (8 parameters, mutation operation) and lack of annotations, the description does a good job explaining parameters and the return value. The output schema exists, so the description doesn't need to detail return values. However, it could better address behavioral aspects like error handling or dependencies on other tools (e.g., list_leave_types).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds substantial meaning beyond the input schema, which has 0% description coverage. It explains each parameter's purpose (e.g., 'leave_type_id: Leave type ID (see list_leave_types)', 'all_employees: If True, allocate to all employees'), including optionality, defaults, and references to other tools. This fully compensates for the schema's lack of descriptions, making parameters clear and actionable.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool creates leave allocations for employees, which is a specific verb+resource combination. It distinguishes itself from sibling tools like 'approve_leave_allocation' and 'list_leave_allocations' by focusing on creation rather than approval or listing. However, it doesn't explicitly differentiate from other creation tools like 'create_contact' or 'create_expense' beyond the resource type.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage through parameter documentation (e.g., 'employee_id: Specific employee ID (optional)'), suggesting when to use certain parameters, but lacks explicit guidance on when to choose this tool over alternatives. It doesn't mention prerequisites like needing valid leave types from 'list_leave_types' or clarify mutual exclusivity between employee_id, department_id, and all_employees.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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