is_business_day
Check whether a given date is a business day in a specific country, considering weekends and public holidays. Optionally include a subdivision for region-specific holidays.
Instructions
Check whether a date is a business day for a given country (optionally a subdivision).
Use this when an agent needs to know if a specific calendar date is a working day — i.e. NOT a weekend and NOT a public holiday — under a country's official calendar.
Args: date: ISO 8601 date string (YYYY-MM-DD), e.g. "2026-04-21". country: ISO 3166-1 alpha-2 country code. Case-insensitive (normalized to upper). subdiv: Optional country-specific subdivision code (state/province/region). Case-sensitive — pass it exactly as returned by get_supported_countries (e.g. "BY" for Bavaria, "CA" for California). When omitted, only nation-wide holidays are considered. Example: country="DE", subdiv="BY" treats Epiphany (Jan 6) as a holiday because it is observed only in Bavaria. Category filtering (e.g. catholic vs evangelical) is not currently supported.
Returns: dict with keys: date, country, subdiv (only if provided), is_business_day, is_weekend, is_holiday, holiday_name (str or None).
Raises:
ValueError: if date is not valid ISO 8601, or country/subdiv is unknown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| country | Yes | ||
| subdiv | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||