Get next holiday
calendars_get_next_holidayReturn the next published public holiday on or after a date. scope limits the answer to one kind of holiday. Returns a not-found error when no calendar is published for the country, year or scope. Use it to find the next holiday; calendars_list_holidays lists a year.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"country": "<country>",
"from_date": "<from_date>"
},
"name": "calendars_get_next_holiday"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Keep one kind of holiday, for example `national_public` or `bank`. The allowed values are in this schema's enum. Leave out for all. | |
| country | Yes | Country as a three-letter ISO 3166-1 code in capitals, for example `USA`, `IDN` or `JPN`. | |
| from_date | Yes | First day to look at, inclusive: `YYYY-MM-DD`. The answer is the first holiday on or after it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | Yes | ||
| holiday | Yes | ||
| coverage | Yes |