Payroll summary
payroll_summaryA month's payroll from gross to net, as it was run: gross (basic, allowances, overtime, public-holiday pay, bonus), staff deductions (EPF, SOCSO, EIS, SKBBK, PCB/MTD, zakat), employer contributions (EPF, SOCSO, EIS, HRD Corp levy), net pay, and the employer's total cost (wages plus every employer contribution). Also lists who is on approved leave in the next 14 days. With no month it reads the latest finalized or posted run; month (YYYY-MM) picks one. A draft run carries run.needsRecompute: true means its figures may be out of date (it was reopened, or employee details, pay before Taokeh, a TP1 sign-off or the payroll rules changed since) until the owner presses Save & recompute in Payroll → Payroll Runs; Finalize recomputes again and refuses if any money would move, so a draft's figures are not final. perEmployee: true adds the per-person breakdown (individual salaries) with each employeeId. staff: true adds the employee roster with ids, even before any run. Every figure sums the stored payslips of that run, never a recalculation; with no run, it says so. Admin, or bookkeeper with the payroll role, only; any other connection is refused. Read-only: it creates no run, pays nobody and files nothing with LHDN, KWSP or PERKESO.
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": "payroll_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| month | No | ||
| staff | No | Adds the full employee roster (id, name, staff no., status, designation, basic salary, skbbkExemptReason: null when Lindung 24 Jam is deducted here, else 'OPTED_OUT' or 'OTHER_EMPLOYER'), independent of any run. It is the only place an employeeId is published (used by update_employee_draft). Includes individual salaries. | |
| perEmployee | No |