mycal

v0.1.4
io.github.Junhui20/mycal Checked 3 days ago Published 5 months ago

Malaysia public holidays, school terms, business days & a leave optimizer (13 tools).

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_malaysia_holidays

Get Malaysia public holidays. Covers all 16 regions (13 states + 3 federal territories) including Islamic holidays with tentative/confirmed status.

ParameterTypeDescription
year *integerYear (e.g. 2026)
monthinteger
statestringState code or alias (e.g. 'selangor', 'KL', 'penang')
statusstring
typestring

check_malaysia_holiday

Check if a specific date is a public holiday, weekend, or working day in Malaysia. Returns holiday details, school day status. Use when user asks 'is X a holiday?', 'do I work on X?'.

ParameterTypeDescription
date *stringDate in YYYY-MM-DD format
statestringState code or alias

next_malaysia_holiday

Find the next upcoming public holiday in Malaysia. Use when user asks 'when is the next holiday?'.

ParameterTypeDescription
afterDatestringFind holidays after this date (YYYY-MM-DD). Defaults to today.
countintegerNumber of holidays to return (default 1)
statestringState code or alias
typestring

malaysia_business_days

Count business/working days between two dates for a Malaysian state. Excludes weekends and public holidays.

ParameterTypeDescription
end *stringEnd date
start *stringStart date
state *stringState code or alias

malaysia_long_weekends

Find all long weekends (3+ consecutive non-working days) in Malaysia for a given year.

ParameterTypeDescription
year *integerYear
statestringState code or alias (default: kuala-lumpur)

malaysia_leave_optimizer

Find the most efficient annual-leave days to take to maximise consecutive days off in Malaysia (e.g. 'take 2 days → get 5 off'). Ideal for planning trips around public holidays and weekends, per state.

ParameterTypeDescription
year *integerYear
maxLeaveintegerMax annual-leave days to spend per break (default 3)
statestringState code or alias (default: kuala-lumpur)

list_malaysia_states

List all 16 Malaysian regions (13 states + 3 federal territories) with weekend configurations and group assignments.

resolve_malaysia_state

Resolve a state name or alias (e.g. 'KL', 'Penang', 'JB') to the canonical state code.

ParameterTypeDescription
query *stringState name or alias to resolve

malaysia_holiday_changes

Get recent changes to Malaysia holiday data (new holidays, confirmations, ad-hoc announcements).

ParameterTypeDescription
limitintegerMax entries (default 10)

malaysia_school_terms

Get Malaysia school term dates and day counts. Group A = Kedah/Kelantan/Terengganu, Group B = all other states.

ParameterTypeDescription
year *integerYear
groupstringSchool group (default B)

malaysia_school_holidays

Get Malaysia school holidays including cuti penggal, mid-year break, year-end break, and KPM bonus holidays.

ParameterTypeDescription
year *integerYear
groupstringSchool group (default B)

malaysia_exams

Get Malaysia public exam schedule — SPM, STPM, MUET, PT3. Includes results announcement dates.

ParameterTypeDescription
year *integerYear
typestring

malaysia_is_school_day

Check if a date is a school day in Malaysia. Accepts state (auto-resolves to group) or group directly. Combines public holidays, school holidays, and weekend status.

ParameterTypeDescription
date *stringDate in YYYY-MM-DD
groupstringSchool group directly
statestringState code or alias (auto-resolves to group)