Skip to main content
Glama
josemvelez78

mcp-europe-business

get_spain_holidays

Read-onlyIdempotent

Returns Spanish national public holidays for a specified year, including date and names in Spanish and English.

Instructions

Returns all Spanish national public holidays for a given year as a structured list. Each holiday includes { date: 'YYYY-MM-DD', name: string, name_en: string }. Returns 9 mandatory national holidays defined by Spanish law. Does not include regional holidays that vary by autonomous community.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearYesCalendar year as a 4-digit integer. Example: 2026

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearYes
countryYes
total_holidaysYes
holidaysYes

Implementation Reference

  • index.js:112-117 (registration)
    Registration of the 'get_spain_holidays' tool via server.registerTool(), including description, input/output schemas, and annotations.
    server.registerTool("get_spain_holidays", {
      description: "Returns all Spanish national public holidays for a given year as a structured list. Each holiday includes { date: 'YYYY-MM-DD', name: string, name_en: string }. Returns 9 mandatory national holidays defined by Spanish law. Does not include regional holidays that vary by autonomous community.",
      inputSchema: { year: z.number().describe("Calendar year as a 4-digit integer. Example: 2026") },
      outputSchema: { year: z.number(), country: z.string(), total_holidays: z.number(), holidays: z.array(z.object({ date: z.string(), name: z.string(), name_en: z.string() })) },
          annotations: { title: "Get Spain Public Holidays", readOnlyHint: true, idempotentHint: true, openWorldHint: false }
    }, async ({ year }) => {
  • Input schema (year) and output schema (year, country, total_holidays, holidays array with date/name/name_en) for get_spain_holidays.
    inputSchema: { year: z.number().describe("Calendar year as a 4-digit integer. Example: 2026") },
    outputSchema: { year: z.number(), country: z.string(), total_holidays: z.number(), holidays: z.array(z.object({ date: z.string(), name: z.string(), name_en: z.string() })) },
        annotations: { title: "Get Spain Public Holidays", readOnlyHint: true, idempotentHint: true, openWorldHint: false }
  • Handler function that returns 9 Spanish national public holidays (fixed-date, non-Easter-dependent) for a given year as a structured list.
    }, async ({ year }) => {
      const holidays = [
        { date: `${year}-01-01`, name: "Año Nuevo", name_en: "New Year's Day" },
        { date: `${year}-01-06`, name: "Epifanía del Señor", name_en: "Epiphany" },
        { date: `${year}-05-01`, name: "Fiesta del Trabajo", name_en: "Labour Day" },
        { date: `${year}-08-15`, name: "Asunción de la Virgen", name_en: "Assumption of Mary" },
        { date: `${year}-10-12`, name: "Fiesta Nacional de España", name_en: "Spanish National Day" },
        { date: `${year}-11-01`, name: "Todos los Santos", name_en: "All Saints Day" },
        { date: `${year}-12-06`, name: "Día de la Constitución Española", name_en: "Constitution Day" },
        { date: `${year}-12-08`, name: "Inmaculada Concepción", name_en: "Immaculate Conception" },
        { date: `${year}-12-25`, name: "Navidad", name_en: "Christmas Day" },
      ];
      return { content: [{ type: "text", text: JSON.stringify({ year, country: "Spain", total_holidays: holidays.length, holidays }) }] };
    });
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint. The description adds behavioral details: 9 mandatory national holidays, output structure with date and names, and the exclusion of regional holidays. No contradictions with annotations.

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?

Three sentences pack all necessary information: what it does, output structure, and limitations. No redundant words, directly to the point.

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?

Given the presence of annotations, full schema coverage, and an output schema, the description is complete enough. It clarifies the return format and the scope (national only), which is valuable for an agent comparing with sibling tools like get_france_holidays or get_public_holidays_range.

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?

The single parameter 'year' is fully described in the schema (100% coverage). The description adds no new parameter meaning beyond the schema, but reinforces that the year is used to filter holidays, which is expected. Baseline 3 applies.

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?

The description clearly states the tool returns 'all Spanish national public holidays for a given year' as a structured list with specific fields. It distinguishes itself from sibling tools targeting other countries (e.g., get_france_holidays) and explicitly excludes regional holidays, providing precise scope.

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?

The description indicates when to use the tool (to obtain Spanish national public holidays) and when not (for regional holidays). It implicitly suggests alternatives like regional-specific tools, but does not explicitly name sibling tools for regional holidays.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/josemvelez78/mcp-europe-business'

If you have feedback or need assistance with the MCP directory API, please join our Discord server