Skip to main content
Glama

Public holidays for any country and year, national and regio

public_holidays
Read-onlyIdempotent

Retrieve national and regional public holidays for a country and year, with optional filtering by ISO 3166-2 region code.

Instructions

Public holidays for any country and year, national and regional, filterable by region ISO code (e.g. ES-MD for Madrid).

ES: Festivos oficiales de un país para un año, con ámbito nacional o regional; filtrable por comunidad autónoma o región (código ISO 3166-2, p. ej. ES-MD).

Free tool (no API key, no payment). Official Spanish/EU open data.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "public_holidays"
  }
}

Input Schema

NameRequiredDescriptionDefault
anioNoAño (por defecto el actual)
paisNoCódigo ISO de 2 letras (por defecto ES)
regionNoRegión ISO 3166-2 (opcional), p. ej. ES-MD

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely non-structured context: no API key or payment required, and data provenance as 'Official Spanish/EU open data'. It stops short of stating what the response contains or whether non-Spanish countries are equally covered, which creates mild tension with 'any country'.

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

Conciseness3/5

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

The English statement is front-loaded and tight, but the entire block is then repeated in Spanish and followed by a separate free-tool note, roughly doubling length for no new information to an English-reading agent. The valuable scoping information sits in the first sentence, which is good, but the rest is redundant bulk.

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

Completeness4/5

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

For a three-optional-parameter read-only lookup with an output schema absent, the definition covers input formats, defaults, region filtering and cost/auth requirements. The main omission is any hint about the shape of returned holiday entries, which matters more here precisely because no output schema exists.

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 coverage is 100%, so the schema already documents anio, pais and region including defaults and the ES-MD example. The description's only marginal addition is reinforcing the ISO 3166-2 region format and the national-vs-regional distinction, so the baseline 3 applies.

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

Purpose4/5

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

The first line names the resource precisely ('public holidays'), the scope ('any country and year, national and regional'), and the filtering dimension ('region ISO code'). It is immediately distinguishable from adjacent tools like business_days_between, though it never explicitly contrasts itself with any sibling.

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

Usage Guidelines3/5

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

Usage is implied rather than prescribed: the description says the tool is free and needs no API key, and it explains that results can be narrowed by region. There is no explicit when-to-use/when-not guidance and no mention of the closest alternative (e.g. business-day counting), which an agent would have to infer.

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