Skip to main content
Glama

Server Details

Date/time math for agents: business days, holidays, time zones, cron, RRULE. 25 free calls/day.

If you are the author of this connector, you can claim ownership. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
Repository
JowenDelaPena/date-math
GitHub Stars
1
Server Listing
Date Math – Business Days, Holidays & Time Zones
ChatGPT
–
Claude
–

TDQS

A3.8/5.0

Scored across 24 tools

Disambiguation3/5

Most tools target distinct date/time operations, but several clusters overlap: find_free_slots vs working_hours_overlap, business_hours_deadline vs sla_countdown, and business_day_schedule vs recurring_dates. The detailed descriptions help, but an agent could still misselect among the scheduling and SLA tools.

Naming Consistency4/5

All names use consistent snake_case and are descriptive. The pattern is mostly noun-based, with a few verb-first exceptions like find_free_slots and parse_date_text, plus noun_verb forms like date_add and timezone_convert, which is a minor deviation rather than a chaotic mix.

Tool Count3/5

At 24 tools, the server is at the heavy end of the 16–25 range. Each tool has a plausible niche in a broad date/time domain, but several adjacent scheduling and business-day tools could likely be consolidated.

Completeness5/5

The surface covers parsing, arithmetic, diffs, ranges, business days, holidays, time zones, DST, recurrence, cron, scheduling, market calendars, payroll, subscriptions, SLAs, travel stays, time bucketing, and timestamp normalization. No obvious date-math lifecycle gap is apparent.

Available Tools

24 tools
business_dayBusiness-day checkA
Read-onlyIdempotent
Inspect

Is a date a business day? If not, why (weekend, or which public holiday). Also the next and previous business day, and the month's business-day count, first and last business day. Use for office-open checks, shipping cut-offs, settlement dates. Country holidays, custom holidays and custom workweeks (e.g. Sun–Thu, Mon–Sat). First 25 calls per day are free, then $0.001 per call (x402).

Inputs: date (required), country, holidays, workdays. Returns: date, month, reason, holiday, +4 more

business_day_scheduleBusiness-day job scheduleA
Read-onlyIdempotent
Inspect

Job schedules that skip weekends and public holidays, which cron cannot express: "3rd business day of the month at 09:00", "last business day", "every Monday, or the next business day if it is a holiday", or any cron with a holiday rule. Returns the next runs and whether it runs today. DST-aware. Use for payroll, billing, reports and batch jobs. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: rule (required), n, day, from, +11 more. Returns: from, note, rule, runs, +5 more

business_hours_deadlineBusiness-hours deadline / SLAA
Read-onlyIdempotent
Inspect

SLA math in working hours: the deadline N business hours after a start time, or business time elapsed between two times. Use for support-ticket SLAs, response-time targets and office-hours deadlines. Custom hours and workdays, holidays, country public holidays, DST-aware. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: timezone (required), end, hours, start, +6 more. Returns: end, mode, start, weekday, +5 more

city_timeCity time zone and local timeA
Read-onlyIdempotent
Inspect

Find the time zone and current local time in up to 10 cities by name ("Cebu", "São Paulo", "Springfield" + country). 7,000+ cities. Use for "what time is it in" questions and to get the IANA zone the other tools need. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: at, city, cities, country. Returns: at, results

cron_scheduleCron scheduleA
Read-onlyIdempotent
Inspect

Explain a cron expression in plain English and list its next run times in any time zone. Use to check or debug crontab and scheduled-job schedules. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: expression (required), from, count, timezone. Returns: from, timezone, next_runs, expression, +1 more

current_timeCurrent date and time (free)A
Read-only
Inspect

Free: the current date, time, weekday and UTC offset in up to 10 time zones, plus UTC and Unix time. Use when today's date or the current time is needed. Does not use the daily free calls.

Inputs: timezone, timezones. Returns: utc, times, unix_ms, unix_seconds

date_addAdd to a dateA
Read-onlyIdempotent
Inspect

Add or subtract years/months/weeks/days/business days/hours/minutes/seconds from a date. Month-end clamping; business days skip weekends, given holidays, and the public holidays of an optional country. Use for due dates, deadlines, delivery estimates, expiry and "N working days from today". First 25 calls per day are free, then $0.001 per call (x402).

Inputs: date (required), days, hours, weeks, +8 more. Returns: input, result, weekday, is_business_day

date_diffDate differenceA
Read-onlyIdempotent
Inspect

How many days, weeks, months or business days between two dates or datetimes: calendar (Y/M/D), totals, and business days (weekdays in [from, to) minus holidays; pass country to exclude its public holidays). Use for age, tenure, countdowns, notice periods and working days until a deadline. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: to (required), from (required), country, holidays, +1 more. Returns: to, from, calendar, direction, +7 more

date_infoDate factsA
Read-onlyIdempotent
Inspect

Calendar facts for a date: day of the week, ISO week number, quarter, day of year, leap year, weekend. Use for "what day is", week numbers and fiscal quarters. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: date (required). Returns: date, quarter, weekday, iso_week, +9 more

date_rangeReporting period to exact datesA
Read-onlyIdempotent
Inspect

Turn a reporting period into exact start and end dates and times in a time zone: "last month", "this quarter", "YTD", "MTD", "last 7 days", "next 2 weeks", "2026-Q3", "2026-W14". Optional comparison period (previous period, or same period last year), fiscal years starting in any month, and Monday, Sunday or Saturday week starts. Use for analytics queries, SQL date filters, reports and dashboards. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: period (required), as_of, compare, timezone, +3 more. Returns: days, as_of, label, start, +10 more

dst_checkDST transitions and local-time checkA
Read-onlyIdempotent
Inspect

Daylight saving time for a time zone: does it observe DST, the year's exact clock changes (UTC instant, local before/after), and whether a local time is valid, skipped (spring-forward gap, e.g. 02:30) or repeated (fall-back, happens twice). Use before scheduling jobs, alarms or meetings near clock changes. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: timezone (required), year, datetime. Returns: year, check, timezone, dst_offset, +3 more

find_free_slotsFind free meeting slotsA
Read-onlyIdempotent
Inspect

Find meeting times when everyone is free: intersects each participant's working hours (own time zone, workdays, country holidays) minus their busy blocks, then lists slots of the requested length. Up to 10 people, 14 days, optional buffer between meetings. Use for scheduling across calendars and time zones. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: participants (required), duration_minutes (required), days, from, +7 more. Returns: count, range, slots, timezone, +2 more

market_calendarStock market hours and holidaysA
Read-onlyIdempotent
Inspect

Stock exchange calendar for NYSE/Nasdaq, London (LSE) and Tokyo (JPX): is the market open now, today's session (early closes, lunch break), next open and close, holidays, previous/next trading day, and the trade settlement date (T+1/T+2). Use for trading agents, order timing and settlement. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: exchange (required), at, date, list_year. Returns: date, name, note, reason, +12 more

parse_date_textParse natural-language datesA
Read-onlyIdempotent
Inspect

Parse natural-language dates and relative times like "next Friday at 3pm", "in 2 weeks", "tomorrow morning" or "Dec 25 to Jan 2" into exact ISO datetimes, relative to a reference time and time zone. Use before acting on any date a user typed. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: text (required), timezone, reference, forward_date. Returns: text, count, results, timezone, +1 more

pay_datesPayroll and billing datesA
Read-onlyIdempotent
Inspect

Upcoming pay or billing dates for monthly, semi-monthly (e.g. 15th and last day), biweekly or weekly schedules, moved off weekends and public holidays (to the previous, next or nearest business day). Use for payroll calendars, invoice due dates and recurring billing. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: from (required), schedule (required), days, count, +5 more. Returns: count, adjust, schedule, pay_dates

public_holidaysPublic holidaysA
Read-onlyIdempotent
Inspect

List public holidays (bank holidays, national holidays) for a country and year: 207 countries, 2000–2050. Use for holiday calendars, office closures and checking if a date is a holiday. Lunar or government-proclaimed dates are rule-based estimates. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: country (required), year. Returns: type, year, count, source, +3 more

recurring_datesExpand recurring events (RRULE)A
Read-onlyIdempotent
Inspect

Expand a recurring event or iCalendar RRULE ("every 2nd Tuesday", "Mon/Wed until June") into concrete dates and times in a time zone, DST-aware, with optional excluded dates. Use for repeating meetings, calendar invites and schedules. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: rrule (required), start (required), count, exclude, +1 more. Returns: count, rrule, start, timezone, +2 more

sla_countdownSLA countdown (business hours)A
Read-onlyIdempotent
Inspect

Live SLA clock for a support ticket: business minutes elapsed and remaining, breached or not, and the deadline. The clock pauses outside working hours, on weekends and holidays, and during manual pauses (e.g. waiting on customer). Custom hours, workdays, country holidays, DST-aware. Use for support-agent SLA tracking and escalation. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: start (required), timezone (required), now, pauses, +7 more. Returns: now, start, status, breached, +10 more

stay_calculatorVisa stay calculator (Schengen 90/180)A
Read-onlyIdempotent
Inspect

Rolling stay-limit math such as the Schengen 90/180 rule: days used in the window, days left, overstay check, the longest stay allowed from a planned entry date, and the next date a full stay is possible. Entry and exit days both count. Custom rules via max_days/window_days. Use for travel planning, visa-free stays and "can I enter on". First 25 calls per day are free, then $0.001 per call (x402).

Inputs: trips (required), date, entry, max_days, +1 more. Returns: date, note, rule, max_stay, +6 more

subscription_datesSubscription renewal and prorationA
Read-onlyIdempotent
Inspect

Subscription and contract date math: current billing period, next renewal, upcoming renewals, cancel-by date for a notice period, free-trial start, and day-based proration of a price. Month-end anchors stay at month end (Jan 31, Feb 28, Mar 31). Use for SaaS billing, renewals, cancellation deadlines and refunds. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: start (required), as_of, count, amount, +4 more. Returns: note, as_of, start, status, +10 more

time_bucketsTime buckets for chartsA
Read-onlyIdempotent
Inspect

Split a time range into minute, hour, day, week, month, quarter or year buckets with exact start and end times in a time zone. DST-aware (23- and 25-hour days, repeated and skipped hours), ISO or Sunday/Saturday weeks, fiscal quarters, partial first and last buckets flagged or clipped. Up to 1,000 buckets (500 for weeks and longer). Use for chart axes, time-series grouping and filling empty periods in dashboards. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: to (required), from (required), clip, size, +4 more. Returns: to, from, size, count, +5 more

timestamp_normalizeNormalize timestampsA
Read-onlyIdempotent
Inspect

Detect and convert up to 100 mixed timestamps to UTC ISO 8601: Unix seconds/ms/µs/ns, Excel serial dates, Windows FILETIME, ISO 8601, RFC 2822, YYYY/MM/DD, month-name dates. Flags ambiguous values (03/04/2026: March 4 or 3 April? 45000: Excel date or Unix seconds?) with alternatives. Use for cleaning CSV, log and spreadsheet data. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: values (required), timezone, date_order, numeric_format. Returns: ok, count, results, timezone

timezone_convertConvert time zonesA
Read-onlyIdempotent
Inspect

Convert a time between time zones (IANA names like Asia/Manila, America/New_York), DST-aware. Use for "what time is 3pm Manila in New York", scheduling across zones and UTC offsets. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: to_timezone (required), datetime, from_timezone. Returns: to, utc, from, unix_seconds

working_hours_overlapWorking-hours overlapA
Read-onlyIdempotent
Inspect

Find when working hours overlap across time zones: the best meeting times for a distributed or remote team. Per-participant hours optional; skips weekends by default; up to 14 days. First 25 calls per day are free, then $0.001 per call (x402).

Inputs: date, days, work_end, timezones, +3 more. Returns: to, from, windows, participants, +2 more

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Provides accurate time zone conversions, DST-safe scheduling, holidays for 200+ countries, business day calculations, and cross-zone meeting slot suggestions.
      5
      1
      MIT
    • F
      license
      A
      quality
      A
      maintenance
      Enables AI agents to perform deterministic date, time, timezone, holiday, and business-day arithmetic through MCP, including elapsed-time and calendar-aware operations that skip weekends and supported official holidays.
      1
      -
    • A
      license
      A
      quality
      D
      maintenance
      Enables timezone conversion, astronomical calculations, and date utilities through natural language, supporting sunrise/sunset, moon phases, business days, and more.
      9
      23 npm
      1
      ISC
    • A
      license
      A
      quality
      B
      maintenance
      Timezone and business-day truth for agents: now, DST-safe convert, relative dates, holidays.
      5
      MIT
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.