HR

See who is out

hr_who_is_out · Reads only · Markdown

Who is off in a period (today by default), with each leave and its days, plus public holidays and people on long leave.

Free*

*Free up to 1,000,000 reads a month for the whole account, then $0.50 per 10,000 reads.

An example

Who is out next week?

Your agent callshr_who_is_outFree*

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
{
  "from": "2026-10-19",
  "to": "2026-10-23"
}
What comes back
{
  "from": "2026-10-19",
  "to": "2026-10-23",
  "out": [
    {
      "person_id": 4103,
      "name": "Jonas Becker",
      "department": "Warehouse",
      "location": "Hamburg",
      "days_in_period": "3",
      "leave": [
        {
          "request_id": 4102,
          "leave_type": "Vacation",
          "start": "2026-10-19",
          "end": "2026-10-21",
          "half_start": false,
          "half_end": false,
          "status": "approved",
          "days_in_period": "3"
        }
      ]
    }
  ],
  "holidays": [],
  "on_leave": []
}

Use it when

Someone asks who is away today or this week.

What it does

Who is off from `from` to `to` (default: today only), per person: each leave with its request_id and the working days it takes in the period; plus the public holidays in the period and anyone whose status is on_leave. Filter by department or location; include_pending adds requests still waiting for a decision.

What comes back

The period (from, to), out: each person away with their leaves (request_id, type, dates) and the days in the period, the public holidays in it, and on_leave: the people on long leave. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
fromstringYYYY-MM-DD. Matches ^\d{4}-\d{2}-\d{2}$.
tostringYYYY-MM-DD. Matches ^\d{4}-\d{2}-\d{2}$.
departmentstringUp to 120 characters.
locationstringUp to 120 characters.
include_pendingbooleanDefault: false.

The call

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

Terminal
curl -X POST https://api.conecto.chat/v1/tools/hr_who_is_out \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"from":"2026-10-19","to":"2026-10-23"}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
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