Approve, decline or cancel leave
Approves or declines a pending leave request, or cancels one that is pending or approved.
$0.01 a call
From your agent’s balance. A call that fails costs nothing.
An example
Lena says yes to Tom's Christmas leave.
Your agent callshr_decide_leave$0.01 a call
The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.
{
"request_id": 4142,
"decision": "approve",
"note": "Enjoy the holidays!"
}Use it when
A manager decided, or plans changed.
What it does
Decide on a leave request: approve or decline one that is pending, or cancel one that is pending or approved (approved days go back to the balance). Declined and cancelled requests stay as they are; ask again with hr_request_leave. Approving checks the balance again; allow_negative: true lets it go below 0. Returns the request and the balance after it.
What comes back
request: the request with its new status; balances: the balance after it. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
request_idRequired | integer | At least 1. |
decisionRequired | string | One of: approve,decline,cancel. |
note | string | Up to 1,000 characters. |
allow_negative | boolean | Default: false. |
The call
Over MCP, call hr_decide_leave on https://api.conecto.chat/mcp/hr. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/hr_decide_leave \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"request_id":4142,"decision":"approve","note":"Enjoy the holidays!"}'When it refuses
A refused call costs nothing and says what to do next.
| Code | When | What to do |
|---|---|---|
not_found404 | No leave request has that request_id. | Find it with hr_list_leave. |
already_approved409 | The request is approved already. | Cancel it instead to undo it. |
already_declined409 | The request is declined. | Ask again with hr_request_leave. |
already_cancelled409 | The request is cancelled. | Ask again with hr_request_leave. |
outside_employment409 | The dates are outside the person's employment now. | Cancel the request. |
not_enough_days409 | The balance (after pending requests) cannot take the days. | Ask for fewer days, or pass allow_negative: true if the owner agrees. |
More HR tools
All 23 tools- List leave requests
hr_list_leaveLeave requests, latest start first, by person, status, type or dates.Free* - See who is out
hr_who_is_outWho is off in a period (today by default), with each leave and its days, plus public holidays and people on long leave.Free* - Add or change a checklist
hr_save_checklistAdds or changes an onboarding or offboarding checklist: items with an owner and a due day relative to the start or last day.$0.001 a call - Start a checklist for someone
hr_start_checklistTurns a checklist into tasks for one person, each due relative to their start date or last day.$0.01 a call - List checklist tasks
hr_tasksChecklist tasks, soonest due first: open, overdue, done or all, for one person, one owner or a date.Free* - Complete or reopen a task
hr_complete_taskMarks a checklist task done, or opens it again.$0.01 a call - Attach, change or remove a document
hr_save_documentKeeps a file from the store on a person's record (a contract, an ID, a certificate), or changes or removes it.$0.01 a call - Run an HR report
hr_reportHeadcount, joiners and leavers, time off taken, or everyone's leave balances.Free*
Read next: What is an MCP server?
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md