NZ working-day maths for AI agents
Your agent asks for a deadline. It gets the date, the law section, and the holidays it skipped.
Free checks for IRD numbers, NZ bank accounts and ABNs. Works over MCP and plain HTTP.
Information, not legal advice. Check the cited section before you rely on a date. For business use only.
Connect
MCP endpoint (Streamable HTTP):
https://itsmyship.com/agent-tools/mcp
REST base URL:
https://itsmyship.com/agent-tools/v1/
Example: 20 working days after 19 October 2026 under the Official Information Act.
curl "https://itsmyship.com/agent-tools/v1/add-working-days?rule=oia&start_date=2026-10-19&days=20"
The answer is 17 November 2026. Labour Day is skipped.
Tools
| Tool | What it does | Cost |
|---|---|---|
add_working_days | Adds working days to a date under one law's rules. | Metered |
count_working_days | Counts working days between 2 dates. | Metered |
nz_holidays | Public holidays and anniversary days for a year. | Metered |
list_rules | The rules, their section and the law text. | Free |
validate_ird | Checks an IRD number's check digit. | Free |
validate_nz_bank | Checks an NZ bank account number. Checksum only; branch not verified against the Payments NZ register. | Free |
validate_abn | Checks an Australian Business Number. | Free |
Every tool takes jurisdiction. Only NZ has working days today.
Rules
oia: Official Information Act 1982, s 2(1).lgoima: Local Government Official Information and Meetings Act 1987, s 2(1). Needs a region.legislation_act: Legislation Act 2019, s 13. The general definition.building_act: Building Act 2004, s 7(1). Needs a region.rta: Residential Tenancies Act 1986, s 2(1). Needs a region.
Dates must be from 2020 to 2030. The start date is not counted.
Price
Free
US$0
100 metered calls a day per IP address. The checks are free.
Payment is by Polar. Send your key in a header: Authorization: Bearer YOUR-KEY.
About the checks
- A valid result means the number is well formed. It does not prove the number exists or who owns it.
- Bank accounts: checksum only; branch not verified against the Payments NZ register.
- IRD numbers: Inland Revenue's Example 3 (150000026) does not match its own written steps. We follow the written steps, so that number shows as not valid.
Limits
- 60 requests a minute per IP address.
- Requests up to 16 KB.
- We do not store the numbers you check.
Terms in short
- For business use only. Not sold to consumers.
- Information, not legal or tax advice.
- If something goes wrong, the most we owe you is a refund of the price you paid.
Read the full terms of use.
Sources
Rules are quoted from legislation.govt.nz. Holidays follow the Holidays Act 2003 and Employment New Zealand's dates. Checks follow Inland Revenue's published method and the ABR's ABN method.