HR

List leave requests

hr_list_leave · Reads only · Markdown

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.

With these arguments
{
  "status": "pending"
}
What comes back
{
  "requests": [
    {
      "request_id": 4101,
      "person": {
        "person_id": 4102,
        "name": "Tom Okafor"
      },
      "leave_type": "Vacation",
      "paid": true,
      "start": "2026-12-21",
      "end": "2026-12-31",
      "half_start": false,
      "half_end": true,
      "days": "7.5",
      "hours": "60",
      "by_leave_year": {
        "2026": "7.5"
      },
      "status": "pending",
      "note": "Christmas with family",
      "decision_note": null,
      "decided_by": null,
      "decided_at": null,
      "allow_negative": false,
      "created_at": "2026-10-14T08:00:00+00:00"
    }
  ],
  "total": 1
}

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

NameTypeWhat it is
personinteger or stringThe person_id, or their work email. 1 to 254 characters, at least 1.
statusstringOne of: pending,approved,declined,cancelled.
leave_typestringA leave type by name, e.g. "Vacation". 1 to 60 characters.
fromstringYYYY-MM-DD. Matches ^\d{4}-\d{2}-\d{2}$.
tostringYYYY-MM-DD. Matches ^\d{4}-\d{2}-\d{2}$.
limitinteger1 to 500. Default: 100.
offsetintegerAt least 0. Default: 0.

The call

Over MCP, call hr_list_leave on https://api.conecto.chat/mcp/hr. Over REST:

Terminal
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.

CodeWhenWhat to do
not_found404No person of the business has that person_id or work email.Find them with hr_list_people.
not_found404No leave type has that name.Call hr_get_settings, or add it with hr_save_leave_type.
invalid_input400A date is not a date like 2026-10-01, or from is after to.Fix the date.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md