Adjust a leave balance
hr_adjust_leaveAdd days to, or take days off, one person's balance of a tracked leave type in one leave year, with the reason: what they had already used or carried over when you started keeping their leave here, a day in lieu, a correction. Conecto counts from the leave year a person was added, so earlier history comes in this way. Returns the new balance. Costs $0.01 per call; nothing if it fails.
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": {
"person": "<person>",
"leave_type": "<leave_type>",
"days": "<days>",
"reason": "<reason>"
},
"name": "hr_adjust_leave"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | Yes | Positive adds, negative takes off, in half days, e.g. -12 or 1.5. | |
| year | No | A leave year, named by the year it starts in. Default: the current one. | |
| person | Yes | The person_id, or their work email. | |
| reason | Yes | ||
| leave_type | Yes | A leave type by name, e.g. "Vacation". |