List leave requests
Leave requests, latest start first, by person, status, type or dates.
Free*
*Free up to 1,000,000 reads a month for the whole account, then $0.50 per 10,000 reads.
An example
Which time-off requests are still waiting for an answer?
Your agent callshr_list_leaveFree*
The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.
{
"status": "pending"
}Use it when
To find requests waiting for a decision, or someone's planned leave.
What it does
Leave requests, latest start first, each with its request_id: filter by person, status (pending ones wait for hr_decide_leave), leave type, or dates (requests that touch from-to).
What comes back
requests: each with its request_id, person, type, dates, days, status and note; and the total. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
person | integer or string | The person_id, or their work email. 1 to 254 characters, at least 1. |
status | string | One of: pending,approved,declined,cancelled. |
leave_type | string | A leave type by name, e.g. "Vacation". 1 to 60 characters. |
from | string | YYYY-MM-DD. Matches ^\d{4}-\d{2}-\d{2}$. |
to | string | YYYY-MM-DD. Matches ^\d{4}-\d{2}-\d{2}$. |
limit | integer | 1 to 500. Default: 100. |
offset | integer | At least 0. Default: 0. |
The call
Over MCP, call hr_list_leave on https://api.conecto.chat/mcp/hr. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/hr_list_leave \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"pending"}'When it refuses
A refused call costs nothing and says what to do next.
| Code | When | What to do |
|---|---|---|
not_found404 | No person of the business has that person_id or work email. | Find them with hr_list_people. |
not_found404 | No leave type has that name. | Call hr_get_settings, or add it with hr_save_leave_type. |
invalid_input400 | A date is not a date like 2026-10-01, or from is after to. | Fix the date. |
More HR tools
All 23 tools- Add or change people
hr_save_peopleAdds people or changes them, up to 100 at a time, all or none: names, emails, job, department, location, manager, dates and allowances.$1.00 per person added - List people
hr_list_peoplePeople by last name, everyone who hasn't left by default, filtered by status, department, location, manager, type or words.Free* - Get a person
hr_get_personEverything about one person: details, leave balances for a year, pending and upcoming leave, documents, open tasks and direct reports.Free* - Delete a person
hr_delete_personErases a person for good with their leave, tasks and document records; their files stay in the store.Free - Read the HR settings
hr_get_settingsThe working days, hours, leave year, time zone, leave types, public holidays and checklists.Free* - Change the HR settings
hr_save_settingsSets the work calendar: working days, hours per day, leave year, time zone, and one location's public holidays for a year.$0.001 a call - Add or change a leave type
hr_save_leave_typeAdds or changes a kind of time off: annual days, monthly or yearly accrual, carry-over, paid and tracked.$0.001 a call - Adjust a leave balance
hr_adjust_leaveAdds days to, or takes days off, one person's balance of a tracked leave type, with the reason.$0.01 a call
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md