HR: Close engagement
hr_close_engagementEnd a period of employment — the row the turnover report reads to answer WHY people leave. 'ended_on' defaults to today and may not precede the start; 'status' defaults to 'ended'. Read 'requires_comment' on the reason you pick (hr_list_rejection_reasons returns it): a reason flagged that way — the seeded catch-all «Інше» — is REFUSED unless you also send a non-empty 'end_comment', and the refusal names the field 'endComment'. It is the same rule the funnel has always applied to a rejection: a thousand rows saying «Інше» with no story make the turnover report unreadable. Closing does not delete anything and does not touch the person's card: the period stays, now with an end date, and the person can be re-hired later with hr_open_engagement. Requires confirmation. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": {
"engagement_id": "<engagement_id>"
},
"name": "hr_close_engagement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | ||
| ended_on | No | ||
| end_comment | No | ||
| end_reason_id | No | ||
| engagement_id | Yes |