Business Day Check

Check whether a date is a business day in a country, counting weekends and public holidays. Returns the next business day when it is not.

Pay by wallet (x402) business-day-check

Example

Example answer
{
  "date": "2026-12-25",
  "reason": "public_holiday: Christmas Day",
  "country_code": "SE",
  "is_business_day": false,
  "next_business_day": "2026-12-28",
  "previous_business_day": "2026-12-23"
}

Inputs

FieldTypeRequiredWhat it is
datestringYesDate to check (YYYY-MM-DD)
country_codestringYesISO 2-letter country code

Output fields

How reliably each field appears in a successful answer.

FieldTypeAppears
reasonstringUsually (present for most inputs)
is_business_daybooleanAlways (present in every successful answer)
next_business_daystringAlways (present in every successful answer)
previous_business_daystringAlways (present in every successful answer)
date—Always (present in every successful answer)
country_code—Always (present in every successful answer)

How to call it

The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.

# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
  -H "Authorization: Bearer $STRALE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "capability_slug": "business-day-check",
    "inputs": {
      "date": "2025-12-25",
      "country_code": "SE"
    },
    "max_price_cents": 2
  }'

Limitations

  • Weekend definition varies by country

    Uses standard Sat-Sun weekends for most countries; Fri-Sat for Middle Eastern countries. Some countries with mixed weekends may not be fully accurate.

  • Holiday data from Nager.Date

    Depends on Nager.Date API for holiday data — if the API is unreachable, only weekends are checked