Skip to main content
Glama

list_leave_allocations

Retrieve and filter employee leave allocations in Odoo by employee, leave type, or status to manage time-off balances.

Instructions

    List leave allocations.

    Args:
        employee_id: Filter by employee ID (optional)
        leave_type_id: Filter by leave type ID (optional)
        state: Filter by state: draft, confirm, validate, refuse (optional)
        limit: Maximum number (default: 50)
        offset: Offset for pagination (default: 0)

    Returns:
        List of leave allocations
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
employee_idNo
leave_type_idNo
stateNo
limitNo
offsetNo

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 for behavioral disclosure. It mentions pagination (limit/offset) and optional filtering, but doesn't address important aspects like authentication requirements, rate limits, error conditions, or whether this is a read-only operation. For a list tool with 5 parameters, more behavioral context is needed.

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 clear sections (Args, Returns) and uses bullet-point style formatting. Each sentence adds value - the opening statement establishes purpose, and parameter descriptions are efficient. It could be slightly more concise by combining some parameter explanations, but overall it's appropriately sized.

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

Completeness3/5

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

For a list tool with 5 parameters and no annotations, the description covers the basic purpose and parameters adequately. However, it lacks important context about authentication, error handling, and usage scenarios. The presence of an output schema means it doesn't need to explain return values, but more behavioral context would improve completeness.

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

Parameters4/5

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

The description provides clear documentation for all 5 parameters including their optional nature, default values, and specific details like the state enum values (draft, confirm, validate, refuse). Since schema description coverage is 0%, the description fully compensates by explaining each parameter's purpose and constraints beyond what the bare schema provides.

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

Purpose3/5

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

The description states 'List leave allocations' which clearly indicates the verb (list) and resource (leave allocations). However, it doesn't distinguish this from other list operations on the server (like list_employees, list_leave_types) beyond the resource type. The purpose is clear but lacks sibling differentiation.

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

Usage Guidelines2/5

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

No guidance is provided about when to use this tool versus alternatives. The server has multiple list tools (e.g., list_employees, list_leave_types) but no indication of which to choose for different scenarios. There's also no mention of prerequisites or when this tool would be inappropriate.

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