Skip to main content
Glama

Calculate.co.nz NZ Calculators

nz_final_pay_calculator

Work out a New Zealand final pay: leave payout, holidays, notice and redundancy.

Use for: 'what should my final pay be', 'how much annual leave am I owed
when I leave', 'I am resigning, what do they owe me', 'do I get 8% holiday
pay'.

ASK HOW LONG THEY WORKED THERE FIRST. It decides the whole calculation:

  - Under 12 months: no annual holiday entitlement has arisen, so the
    Holidays Act pays 8% of ALL gross earnings during the employment. Set
    service="under12" and pass gross_earnings_total. A leave balance
    showing in a payroll system is NOT what they are owed.
  - 12 months or more: TWO amounts. The untaken entitlement from
    completed years (leave_balance_days), PLUS 8% of gross earnings since
    the last work anniversary (earnings_since_anniversary: ask for it,
    leaving it out understates), and those earnings include the leave,
    holidays and notice pay paid out. Set service="over12".

leave_balance_days is the ENTITLEMENT that arose at an anniversary and has
not been taken. A payslip "leave balance" usually also counts leave
accruing since the anniversary, which the 8% already pays for; MBIE says
paying out an accrued balance is non-compliant and may underpay. Ask which
it is.

Also ask about alternative holidays owed, public holidays the untaken
entitlement would have covered if taken straight after the last day, and
how many days a week they work (days_per_week). Holiday pay already paid
in advance or as pay as you go comes off the 8%. Notice pay in lieu counts
towards the 8%; redundancy does not unless redundancy_in_eight_percent_base
is set (MBIE's position; the courts have not decided it).

ALWAYS say what the total leaves out: ordinary wages for days actually
worked are paid on top at the usual rate, and every figure is GROSS. The
leave payout and any redundancy are taxed as lump sums (extra pays),
which is nz_lump_sum_tax_calculator.

New Zealand has NO statutory redundancy pay. If they ask what redundancy
they are entitled to, the answer is whatever their employment agreement
says, and nothing if it says nothing.

Args:
    annual_salary: Annual salary. Give this OR hourly_rate.
    hourly_rate: Hourly rate, used with hours_per_week.
    hours_per_week: Ordinary weekly hours, for an hourly rate.
    service: "over12" or "under12".
    leave_balance_days: Untaken entitlement from completed years, in days
        (over12). Not leave accruing since the anniversary.
    gross_earnings_total: All gross earned, required for under12.
    average_weekly_earnings: Optional. Leave is paid at the greater of this
        and ordinary weekly pay; pass it if their pay varied.
    notice_weeks: Weeks of notice paid in lieu.
    redundancy: Agreed redundancy from the employment agreement.
    earnings_since_anniversary: Over12: gross earned since the last
        anniversary, including final wages, bonus and commission.
    public_holidays_days: Over12: public holidays the untaken entitlement
        would have covered (Holidays Act s40).
    alternative_holidays_days: Alternative holidays not taken.
    relevant_daily_pay: Optional daily rate for those holidays; weekly pay
        / days_per_week if not given.
    holiday_pay_already_paid: Annual holiday pay already paid in advance
        or as pay as you go.
    days_per_week: Days worked in a normal week (default 5).
    redundancy_in_eight_percent_base: Include redundancy in the 8%.

Returns:
    Annual holiday pay (untaken entitlement plus the 8%) with its working
    shown, public and alternative holidays, notice pay, redundancy, the
    gross total, and an explicit list of what is excluded.

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": "nz_final_pay_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
serviceNoover12
redundancyNo
hourly_rateNo
notice_weeksNo
annual_salaryNo
days_per_weekNo
hours_per_weekNo
leave_balance_daysNo
relevant_daily_payNo
gross_earnings_totalNo
public_holidays_daysNo
average_weekly_earningsNo
holiday_pay_already_paidNo
alternative_holidays_daysNo
earnings_since_anniversaryNo
redundancy_in_eight_percent_baseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / alternative_holidays_days
      Added value: +{
      +  "default": 0,
      +  "title": "Alternative Holidays Days",
      +  "type": "number"
      +}
    • addedInput schema / properties / days_per_week
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Days Per Week"
      +}
    • addedInput schema / properties / earnings_since_anniversary
      Added value: +{
      +  "default": 0,
      +  "title": "Earnings Since Anniversary",
      +  "type": "number"
      +}
    • addedInput schema / properties / holiday_pay_already_paid
      Added value: +{
      +  "default": 0,
      +  "title": "Holiday Pay Already Paid",
      +  "type": "number"
      +}
    • addedInput schema / properties / public_holidays_days
      Added value: +{
      +  "default": 0,
      +  "title": "Public Holidays Days",
      +  "type": "number"
      +}
    • addedInput schema / properties / redundancy_in_eight_percent_base
      Added value: +{
      +  "default": false,
      +  "title": "Redundancy In Eight Percent Base",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / relevant_daily_pay
      Added value: +{
      +  "default": 0,
      +  "title": "Relevant Daily Pay",
      +  "type": "number"
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does so: it discloses that all figures are GROSS, that ordinary wages for days worked are excluded, the MBIE non-compliance position on paying out accrued balances, the treatment of notice vs redundancy in the 8% base, and that New Zealand has no statutory redundancy pay. It also warns that a payslip leave balance is not the same as the legal entitlement.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then usage examples, then a clear mode branch, then Args and Returns; caps emphasis and indented bullets make it scannable despite its length. The 8% mechanic and the accrued-balance point are restated more than once, which is the main redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter, annotation-free, no-output-schema calculator, the definition covers required inputs per mode, legal caveats, exclusions and the return contents (annual holiday pay with working shown, holidays, notice, redundancy, gross total, exclusions list). Nothing an agent needs to call it correctly appears missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and all 16 parameters have bare titles, yet the Args block documents every one of them, including conditional semantics (service selects which inputs are required), inclusion rules (earnings_since_anniversary includes final wages, bonus and commission), and defaults/fallbacks (relevant_daily_pay = weekly pay / days_per_week if omitted). This is exactly the compensation the schema demands.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Work out a New Zealand final pay: leave payout, holidays, notice and redundancy" names a specific verb and resource and enumerates the components the calculation covers. It does not explicitly distinguish itself from close siblings such as nz_annual_leave_calculator, nz_holiday_pay_calculator or nz_redundancy_entitlement_calculator, which is why it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides a "Use for:" block of four realistic user phrasings, an explicit prerequisite ("ASK HOW LONG THEY WORKED THERE FIRST"), and a branch-by-branch rule for which mode to use. It also routes the tax follow-up to nz_lump_sum_tax_calculator by name, leaving little to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources