mycal
v0.1.4Malaysia 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.
| Parameter | Type | Description |
|---|---|---|
year * | integer | Year (e.g. 2026) |
month | integer | |
state | string | State code or alias (e.g. 'selangor', 'KL', 'penang') |
status | string | |
type | string |
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?'.
| Parameter | Type | Description |
|---|---|---|
date * | string | Date in YYYY-MM-DD format |
state | string | State code or alias |
next_malaysia_holiday
Find the next upcoming public holiday in Malaysia. Use when user asks 'when is the next holiday?'.
| Parameter | Type | Description |
|---|---|---|
afterDate | string | Find holidays after this date (YYYY-MM-DD). Defaults to today. |
count | integer | Number of holidays to return (default 1) |
state | string | State code or alias |
type | string |
malaysia_business_days
Count business/working days between two dates for a Malaysian state. Excludes weekends and public holidays.
| Parameter | Type | Description |
|---|---|---|
end * | string | End date |
start * | string | Start date |
state * | string | State code or alias |
malaysia_long_weekends
Find all long weekends (3+ consecutive non-working days) in Malaysia for a given year.
| Parameter | Type | Description |
|---|---|---|
year * | integer | Year |
state | string | State 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.
| Parameter | Type | Description |
|---|---|---|
year * | integer | Year |
maxLeave | integer | Max annual-leave days to spend per break (default 3) |
state | string | State 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.
| Parameter | Type | Description |
|---|---|---|
query * | string | State name or alias to resolve |
malaysia_holiday_changes
Get recent changes to Malaysia holiday data (new holidays, confirmations, ad-hoc announcements).
| Parameter | Type | Description |
|---|---|---|
limit | integer | Max entries (default 10) |
malaysia_school_terms
Get Malaysia school term dates and day counts. Group A = Kedah/Kelantan/Terengganu, Group B = all other states.
| Parameter | Type | Description |
|---|---|---|
year * | integer | Year |
group | string | School group (default B) |
malaysia_school_holidays
Get Malaysia school holidays including cuti penggal, mid-year break, year-end break, and KPM bonus holidays.
| Parameter | Type | Description |
|---|---|---|
year * | integer | Year |
group | string | School group (default B) |
malaysia_exams
Get Malaysia public exam schedule — SPM, STPM, MUET, PT3. Includes results announcement dates.
| Parameter | Type | Description |
|---|---|---|
year * | integer | Year |
type | string |
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.
| Parameter | Type | Description |
|---|---|---|
date * | string | Date in YYYY-MM-DD |
group | string | School group directly |
state | string | State code or alias (auto-resolves to group) |