Skip to main content
Glama

Count business days between two dates

business_days_between
Read-onlyIdempotent

Count business days between two dates in a country (and region), excluding weekends and public holidays. The end date is excluded unless inclusive is true. Returns business, weekend and holiday day counts and the holidays in the range. Read-only. Same engine, cache and limits as GET /v1/between.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesEnd date, YYYY-MM-DD (2020-2035).
fromYesStart date, YYYY-MM-DD (2020-2035).
typesNoOptional holiday types that close business days: comma list of public, bank (default: public; "all" = public,bank).
regionNoOptional region/state code for countries with regional holidays, e.g. DE-BY, US-CA (or just BY).
countryYesISO 3166-1 alpha-2 country code, e.g. US, DE, GB. See list_countries.
weekendNoOptional weekend days, comma list of day names like "sat,sun" (default) or "fri,sat", or "none".
inclusiveNoCount the end date too (default false).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYes
fromYes
regionNo
countryNo
weekendNo
holidaysNo
inclusiveNo
holiday_daysNo
weekend_daysNo
business_daysYes
calendar_daysNo
holiday_typesNo
holidays_truncatedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources