get_supported_countries
Retrieve a list of all supported countries and their subdivisions for use with holiday and business day tools. Provides ISO country codes and valid subdivision codes.
Instructions
List all countries supported by the holidays library, with subdivisions.
Use this as the discovery tool before calling any country-aware tool. It tells
the agent which ISO country codes are valid AND which subdivision codes may be
passed as the optional subdiv argument on other tools.
IMPORTANT: Subdivision codes are case-sensitive — use them verbatim as returned here. Country codes are case-insensitive.
Returns:
dict with keys:
- countries: list of {code: 2-letter ISO code, name: str,
subdivisions: list[str]}, sorted by code. subdivisions is [] for
countries without regional variants (e.g. JP), and may also be []
if the library raised an error while introspecting that country.
- total: number of countries returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||