Icyn Date
v0.1.5Date context for agents: Chinese lunar calendar, solar terms, holidays for 12 regions.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
date_context
Everything known about one date in one region: weekday/ISO week, workday status with source & confidence, holiday, lunar date & 干支, current/next solar term.
| Parameter | Type | Description |
|---|---|---|
date * | string | ISO date YYYY-MM-DD |
lang | string | |
region | string | Region code, case-insensitive: CN HK MO TW JP KR VN SG US GB DE FR, or a subdivision like US-CA, DE-BY, GB-SCT |
is_workday
Is this date a working day in the region? Answers carry source (official/baseline/predicted) and confidence.
| Parameter | Type | Description |
|---|---|---|
date * | string | ISO date YYYY-MM-DD |
region | string | Region code, case-insensitive: CN HK MO TW JP KR VN SG US GB DE FR, or a subdivision like US-CA, DE-BY, GB-SCT |
holidays
List public holidays of a region for a year, or within a date range.
| Parameter | Type | Description |
|---|---|---|
from | string | ISO date YYYY-MM-DD |
region | string | Region code, case-insensitive: CN HK MO TW JP KR VN SG US GB DE FR, or a subdivision like US-CA, DE-BY, GB-SCT |
to | ISO date YYYY-MM-DD | |
year | integer |
workdays
Workday arithmetic: list or count workdays in a range, or move N workdays from a date (negative = backwards).
| Parameter | Type | Description |
|---|---|---|
from * | string | ISO date YYYY-MM-DD |
add | integer | Move this many workdays from `from` instead of listing a range |
region | string | Region code, case-insensitive: CN HK MO TW JP KR VN SG US GB DE FR, or a subdivision like US-CA, DE-BY, GB-SCT |
to | ISO date YYYY-MM-DD |
next_long_weekend
Next stretch of at least N consecutive non-working days from a date (holiday + weekend runs).
| Parameter | Type | Description |
|---|---|---|
from * | string | ISO date YYYY-MM-DD |
minDays | integer | |
region | string | Region code, case-insensitive: CN HK MO TW JP KR VN SG US GB DE FR, or a subdivision like US-CA, DE-BY, GB-SCT |
holiday_eve
Is this date the last working day before a public holiday?
| Parameter | Type | Description |
|---|---|---|
date * | string | ISO date YYYY-MM-DD |
region | string | Region code, case-insensitive: CN HK MO TW JP KR VN SG US GB DE FR, or a subdivision like US-CA, DE-BY, GB-SCT |
lunar
Convert a solar date to the Chinese lunar calendar (year/month/day, leap month, 干支, zodiac), or a lunar date to solar.
| Parameter | Type | Description |
|---|---|---|
date | string | ISO date YYYY-MM-DD |
lunar | object |
next_lunar_date
Next solar date on which a lunar month/day occurs (e.g. a lunar birthday or 中秋 8/15).
| Parameter | Type | Description |
|---|---|---|
day * | integer | |
from * | string | ISO date YYYY-MM-DD |
month * | integer |
solar_terms
The 24 solar terms (节气) of a year with exact instants (UTC).
| Parameter | Type | Description |
|---|---|---|
year * | integer |
regions_observing
Which regions take a canonical festival off in a given year (e.g. lunar-new-year, mid-autumn, christmas), and on which dates.
| Parameter | Type | Description |
|---|---|---|
festival * | string | One of: all-saints, armed-forces-day, armistice, ascension, assumption, autumnal-equinox, bank-holiday, boxing-day, childrens-day, christmas, columbus-day, coming-of-age, constitution-day, culture-day… |
year * | integer |
regions
Supported regions, subdivisions, data coverage and data version.