Skip to main content
Glama

Get next holiday

calendars_get_next_holiday
Read-onlyIdempotent

Return 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

NameRequiredDescriptionDefault
scopeNoKeep one kind of holiday, for example `national_public` or `bank`. The allowed values are in this schema's enum. Leave out for all.
countryYesCountry as a three-letter ISO 3166-1 code in capitals, for example `USA`, `IDN` or `JPN`.
from_dateYesFirst day to look at, inclusive: `YYYY-MM-DD`. The answer is the first holiday on or after it.

Output Schema

NameRequiredDescriptionDefault
countryYes
holidayYes
coverageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / country / description
      Added value: +"Country as a three-letter ISO 3166-1 code in capitals, for example `USA`, `IDN` or `JPN`."
    • addedInput schema / properties / from_date / description
      Added value: +"First day to look at, inclusive: `YYYY-MM-DD`. The answer is the first holiday on or after it."
    • addedInput schema / properties / scope / description
      Added value: +"Keep one kind of holiday, for example `national_public` or `bank`. The allowed values are in this schema's enum. Leave out for all."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds what annotations cannot: a not-found error is returned when no calendar is published for the country, year or scope. Return-format detail is omitted, but an output schema exists, so that gap is minor.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the core action and scope, then the error condition, then the sibling routing. Every sentence earns its place with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter lookup with a 100%-covered schema, an output schema and full annotations, the description covers purpose, the alternative, and the failure mode. Nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description restates that `scope` limits the answer to one kind of holiday, which the schema enum description already conveys; it adds no new syntax or edge-case meaning beyond what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Return the next published public holiday') plus the temporal scope ('on or after a date'), and names the sibling it is not ('calendars_list_holidays' lists a year). An agent can distinguish it from siblings without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: use this to find the next holiday, use calendars_list_holidays for a year. Clear selection context, though no explicit when-not or prerequisite conditions beyond the alternative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources