Leave register
leave_registerLeave for a year as the Leave page shows it, with no pay figures: per employee (employeeId, name, staff number, status) the balance of each leave type (entitled, approved, pending, remaining; unpaid leave has no cap), the applications still pending, and the year's approved, recorded and decided leave with its leaveId, type, dates, days, half day, status, whether an admin recorded it, and voidableByDraft (an admin-recorded leave that is still approved: the leave create_leave_void_draft takes; voiding unpaid leave in a month whose payroll run is finalized is still refused there). Pending applications are decided by a person on the Leave page in Taokeh, not through the connector. year defaults to the current year in Malaysia; employeeId narrows the reply to one person. Lists are capped and the reply says when one is cut. Admin, or bookkeeper with the payroll role, only; any other connection is refused. Read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "leave_register"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | The calendar year, e.g. 2026 (default: the current year in Malaysia). | |
| employeeId | No | One employee, from payroll_summary (`staff: true`) or an earlier leave_register reply. |