Skip to main content
Glama
TyrenTemp

anz-schedule-brain

by TyrenTemp

πŸ—“ anz-schedule-brain

The only MCP server you need for ANZ public holidays, school terms, and business-day logic β€” 100% verified for 2026 and 2027, production-ready.

Deploy on Railway

Live SSE endpoint: https://anz-schedule-brain-production.up.railway.app/sse GitHub: https://github.com/TyrenTemp/anz-schedule-brain


Why LLMs Hallucinate ANZ Dates

Ask any frontier model when Western Australia Day is in 2026. You'll probably get June 1 β€” but ask about 2025 and you'll often get the wrong answer. Ask about Adelaide Cup, Canberra Day, or Reconciliation Day and the error rate climbs above 40%.

Why? Because floating holidays computed from rules like "4th Monday of September" or "Monday nearest May 27" don't appear verbatim in training corpora. LLMs pattern-match rather than compute, and they frequently:

  • Cite the wrong King's Birthday date (WA observes it in September, not June)

  • Conflate NZ and Australian schedules (NZ has Matariki; no Australian state does)

  • Forget state-specific days entirely (SA's Proclamation Day, NT's Picnic Day)

  • Miscalculate school terms when Easter shifts the Term 1 boundary

  • Apply NZ Mondayisation rules to Australian states incorrectly

anz-schedule-brain solves this permanently by providing an MCP tool layer backed by data verified against official government gazettes for all 9 ANZ regions.


Related MCP server: bizdays

100% Verified 2026 & 2027 Coverage

Public Holidays β€” 9 Regions

Region

Holidays

State-specific highlights

πŸ‡³πŸ‡Ώ NZ

11

Waitangi Day, Matariki (varies by year), Labour Day (4th Mon Oct)

🟦 VIC

13

Labour Day (2nd Mon Mar), AFL Grand Final Friday, Melbourne Cup Day

🟦 NSW

12

Bank Holiday (1st Mon Aug), Labour Day (1st Mon Oct)

🟦 QLD

11

Labour Day (1st Mon May)

🟦 WA

9

WA Day (1st Mon Jun), King's Birthday (4th Mon Sep)

🟦 SA

11

Adelaide Cup (2nd Mon May), Easter Sunday, Proclamation Day

🟦 TAS

11

Eight Hours Day (2nd Mon Mar), Royal Hobart Regatta (2nd Mon Feb)

🟦 NT

11

May Day (1st Mon May), Picnic Day (1st Mon Aug)

🟦 ACT

11

Canberra Day (2nd Mon Mar), Reconciliation Day (Mon β‰ˆ 27 May)

WA is the only mainland state without Easter Saturday as a public holiday β€” a common LLM mistake.

School Terms β€” 4 per Region

Every region has four terms for 2026 and 2027, with computed school-day counts (excluding public holidays within the term window). All 9 regions covered.


Three Tools, One Server

is_public_holiday(date, region)

// Request
{ "date": "2026-06-01", "region": "WA" }

// Response
{
  "summary": "2026-06-01 (Monday) IS a public holiday in WA: \"Western Australia Day\" [regional].",
  "data": {
    "query": { "date": "2026-06-01", "day_of_week": "Monday", "region": "WA" },
    "result": {
      "is_public_holiday": true,
      "holiday": { "name": "Western Australia Day", "date": "2026-06-01", "type": "regional", "region": "WA" }
    },
    "all_holidays_for_region": [ ... ]
  }
}

get_school_term(date, region)

// Request
{ "date": "2026-03-15", "region": "TAS" }

// Response
{
  "summary": "2026-03-15 (Sunday) is in TAS Term 1 2026 (Week 6, 19 school days remaining).",
  "data": {
    "result": {
      "in_school_term": true,
      "current_term": {
        "label": "Term 1 2026", "start": "2026-02-04", "end": "2026-04-09",
        "week_number_in_term": 6, "school_days_elapsed": 25, "school_days_remaining": 19
      }
    }
  }
}

get_next_business_day(date, region)

// Request
{ "date": "2026-04-25", "region": "NZ" }

// Response
{
  "summary": "Next business day after 2026-04-25 (Saturday) in NZ is 2026-04-27 (Monday), 2 calendar days ahead.",
  "data": {
    "input_date_status": { "is_business_day": false, "is_weekend": true, "is_public_holiday": true, "public_holiday_name": "ANZAC Day" },
    "next_business_day": { "date": "2026-04-27", "day_of_week": "Monday", "calendar_days_ahead": 2 },
    "skipped_due_to": []
  }
}

Developer Kit vs. Pay-Per-Click

Developer Kit

Pay-Per-Click

Billing

Flat monthly rate

x402 micropayment per call

Auth

Long-lived x-api-key

Nevermined proxy injects key per request

Best for

Teams, CI/CD, chatbots

Agentic workflows, one-off integrations

Rate limit

Unlimited

Per-key configurable

Pass your key as an HTTP header on every SSE connection:

x-api-key: sk-anz-<your-key-here>

Quick-Start: Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "anz-schedule-brain": {
      "command": "node",
      "args": ["/path/to/anz-schedule-brain/dist/index.js"]
    }
  }
}

Restart Claude Desktop. The three tools appear automatically.

Quick-Start: Cursor

Add to .cursor/mcp.json in your project (or global ~/.cursor/mcp.json):

{
  "mcpServers": {
    "anz-schedule-brain-remote": {
      "url": "https://anz-schedule-brain-production.up.railway.app/sse",
      "headers": {
        "x-api-key": "sk-anz-<your-key-here>"
      }
    }
  }
}

Quick-Start: Local Development

git clone https://github.com/TyrenTemp/anz-schedule-brain.git
cd anz-schedule-brain
npm install
cp .env.example .env      # no key needed for local dev
npm run dev               # tsx watch, stdio transport

Self-Hosting on Railway

npm install -g @railway/cli
railway login
railway init              # link to your Railway project
railway variables set MCP_TRANSPORT=sse
railway up                # build + deploy
railway domain            # generates your public URL

Set MCP_API_KEY in Railway's environment dashboard to lock down access.


Architecture

src/
β”œβ”€β”€ index.ts              # FastMCP server, auth middleware, transport switcher
└── data/
    β”œβ”€β”€ holidays.ts       # ALL_PUBLIC_HOLIDAYS static object (9 regions Γ— 2026+2027, O(1) lookup map)
    └── schoolTerms.ts    # ALL_SCHOOL_TERMS static object (9 regions Γ— 4 terms Γ— 2026+2027)

All holiday data is a static typed object β€” no database, no external API calls, no latency.


License

MIT β€” see LICENSE for details. Commercial use requires a valid API key. Unauthenticated production use is not permitted.

Available Tools

3 tools
get_next_business_dayA

Given a date and ANZ region (NZ, VIC, NSW, QLD, WA, SA, TAS, NT, or ACT), return the next business day (Monday–Friday, excluding public holidays). Returns a summary string and a structured data object that reports the input date's status and lists any holidays skipped during the search.

ParametersJSON Schema
NameRequiredDescriptionDefault
dateYesISO 8601 date string (YYYY-MM-DD)
regionYesRegion code: NZ, VIC, NSW, QLD, WA, SA, TAS, NT, or ACT

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that the result excludes public holidays and is Monday–Friday, and describes the return format (summary string + structured data object with status and skipped holidays). This goes beyond the schema and provides useful behavioral context, though it does not clarify whether the input date itself counts if it's a business day.

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

Conciseness5/5

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

The description is two sentences, front-loaded with the primary purpose, and includes all essential information without redundancy. It lists the allowed regions briefly and describes the output, all without unnecessary fluff.

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

Completeness4/5

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

Given the absence of an output schema, the description provides a reasonable overview of the return value (summary string and structured data object with status and skipped holidays). It is sufficient for a moderately simple tool, though it could detail the structured object's fields further, but it is not unnecessarily vague.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3. The description references the region codes and date format, but these are already fully covered in the schema descriptions. No additional meaning is added beyond what the schema provides.

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

Purpose5/5

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

The description clearly states the tool's function: given a date and ANZ region, return the next business day excluding public holidays. It uses a specific verb ('return') and identifies the resource ('next business day'), and distinguishes it from siblings like is_public_holiday by focusing on computing the next business day.

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

Usage Guidelines3/5

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

The description implies usage (when you need the next business day) but does not explicitly state when to use this tool versus alternatives such as is_public_holiday or get_school_term. No exclusions or alternative comparisons provided.

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

get_school_termA

Determine whether a given date falls within a school term in a specified ANZ region (NZ, VIC, NSW, QLD, WA, SA, TAS, NT, or ACT). Returns a summary string and a structured data object with term details, week number, school days elapsed/remaining, and the full 2026–2027 term schedule for that region.

ParametersJSON Schema
NameRequiredDescriptionDefault
dateYesISO 8601 date string (YYYY-MM-DD)
regionYesRegion code: NZ, VIC, NSW, QLD, WA, SA, TAS, NT, or ACT

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations provided, the description carries the full transparency burden. It explicitly states that the tool returns a summary string and a structured object containing term details, week number, school days elapsed/remaining, and the full 2026–2027 schedule. This clarifies the read-only nature and output composition, though it doesn't discuss edge cases or date-range limitations.

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?

The description is a single, information-dense sentence that front-loads the core purpose and then concisely lists the returned data. It avoids unnecessary filler while providing essential details. Slightly dense but efficient.

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

Completeness4/5

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

For a tool with only two parameters and no output schema, the description sufficiently explains the return payload and region options. It mentions the full schedule range, which is useful context. It doesn't explain error conditions, but for the tool's simplicity, the description is largely complete.

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

Parameters3/5

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

The schema description coverage is 100%, so the schema already documents both parameters (date and region). The description adds only minor context (e.g., 'ANZ region' and the region codes), but nothing fundamentally beyond the schema. Baseline 3 applies because the description doesn't need to compensate.

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

Purpose5/5

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

The description uses a specific verb ('Determine whether') and a clear resource ('falls within a school term'), while enumerating all valid ANZ region codes. It distinguishes itself from siblings like is_public_holiday or get_next_business_day by focusing solely on school-term membership.

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

Usage Guidelines4/5

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

The description clearly establishes the context for use (given a date and region) and implies its utility for school-term-related queries. It doesn't explicitly name alternatives or state when not to use it, but the covered regions and return details give sufficient context without exclusions.

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

is_public_holidayA

Check whether a given date is a public holiday in a specified ANZ region (NZ, VIC, NSW, QLD, WA, SA, TAS, NT, or ACT). Returns a summary string and a structured data object with the holiday name, type (national/regional), and a full chronological list of 2026–2027 holidays for that region.

ParametersJSON Schema
NameRequiredDescriptionDefault
dateYesISO 8601 date string (YYYY-MM-DD)
regionYesRegion code: NZ, VIC, NSW, QLD, WA, SA, TAS, NT, or ACT

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It discloses that the tool returns a summary string and a structured data object with the holiday name, type, and a chronological list of 2026–2027 holidays. However, it does not elaborate on error handling or edge cases (e.g., invalid dates or dates outside the listed range), so it is not fully transparent.

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

Conciseness5/5

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

The description is two sentences, front-loaded with the primary purpose and followed by a concise explanation of the return value. No unnecessary information is included, and each sentence earns its place.

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?

Given that there is no output schema, the description sufficiently explains the return value (summary string and structured data object with holiday name, type, and holiday list) and the scope of the tool (regions and date check). It is complete enough for an agent to correctly select and invoke the tool.

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

Parameters3/5

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

Both parameters are fully described in the input schema with clear descriptions and an enum for the region. The tool description adds no additional semantic information beyond what the schema already provides (e.g., it repeats the region list), so the baseline of 3 is appropriate.

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

Purpose5/5

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

The description uses a specific verb ('Check whether') and resource ('a given date is a public holiday') and explicitly lists all supported regions, distinguishing it from sibling tools like get_school_term and get_next_business_day. It clearly identifies the tool's unique function.

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

Usage Guidelines4/5

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

The description provides clear context for when to use the tool (checking if a specific date is a public holiday in an ANZ region) but does not explicitly name alternatives or exclusion conditions. The purpose is clear enough to infer usage, but it stops short of explicit when-not guidance.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 3 tool updatesv1.0.0
    • First observedget_next_business_day
    • First observedget_school_term
    • First observedis_public_holiday

TDQS

A4.3/5.0

Scored across 3 tools

Disambiguation5/5

Each tool targets a distinct aspect of ANZ scheduling: public holidays, school terms, and business days. There is no overlap between checking a date's holiday status, determining term information, or calculating the next business day.

Naming Consistency4/5

All tool names use lowercase snake_case with a verb prefix ('is_' for a boolean check, 'get_' for retrieval). The pattern is consistent and predictable, though the mix of 'is_' and 'get_' is a minor deviation from a uniform 'get_' style.

Tool Count5/5

Three tools form a well-scoped set for a niche ANZ schedule domain. Each tool provides essential functionality without unnecessary bloat, fitting comfortably in the ideal 3-15 range.

Completeness5/5

The tool set covers the core scheduling needs: public holiday lookup (including full region lists), school term status and schedules, and business day calculation. No obvious gaps exist for the stated purpose, as all responses include relevant structured data and summaries.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Public holiday data for 30+ countries. Check holidays, working days, and full calendars via AI assistants like Claude and Cursor.
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Provides deterministic business-day calculations for AI agents, correctly handling country-specific weekends and public holidays.
    6
    114 npm
    1
    Apache 2.0
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables Japanese business calendar operations such as holiday checking, business day calculations, payment date calculation, fiscal year determination, and deadline tracking, all locally without external API.
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Provides accurate Japanese business day utilities including holiday checks, settlement day calculations, and fiscal period determination, all with embedded holiday data from 2020-2030.
    7
    37 npm
    MIT