search_holidays
Search holidays within a specified date range, optionally filtering by employee ID to retrieve leave records from Odoo for planning and reporting.
Instructions
Search for holidays within a date range
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": {
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "search_holidays"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | Yes | End date in YYYY-MM-DD format. | |
| instance | No | Optional configured Odoo instance name; uses the default if omitted. | |
| start_date | Yes | Start date in YYYY-MM-DD format. | |
| employee_id | No | Optional employee ID used to filter holidays. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error message, if any | |
| result | No | List of holidays found | |
| success | Yes | Indicates if the search was successful |