Skip to main content
Glama

x402_holidays_get_v1_holidays_year_countryCode

Retrieves public holidays for a specified country and year from Nager.Date to help you plan around national dates.

Instructions

holidays — Public holidays by country and year (Nager.Date) [GET /v1/holidays/{year}/{countryCode}] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/holidays/2026/US

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": "x402_holidays_get_v1_holidays_year_countryCode"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. It does disclose a genuinely useful behavioral fact — it is a paid call costing $0.005 USDC across four specific chains — which is context the schema does not supply. It falls short on return shape, error/empty-result behavior, and how the paid retry semantics interact with this endpoint.

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

Conciseness4/5

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

A single compact line, front-loaded with the resource name and route, followed by pricing and an example — every element earns its place. The dense bracket notation is slightly harder to scan but not wasteful.

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

Completeness3/5

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

For a simple read endpoint with no output schema, the description gives route, example and price, which is enough to invoke it. It does not describe the returned holiday records (date, name, localName, types) or whether year/query filters are supported, leaving the consumer to discover the payload shape.

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

Parameters4/5

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

The input schema defines only body/query/restart/operationId and does not declare the actual path parameters, so the description's route template and 2026/US example are the only source of year and countryCode semantics, including their format. That is real added meaning beyond the schema, though it stops short of stating that countryCode is ISO-3166 alpha-2.

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 description states a specific verb+resource — public holidays by country and year — and pins the upstream source (Nager.Date) plus the exact route GET /v1/holidays/{year}/{countryCode}. It is clearly distinguishable from the longweekend sibling by scope, though it never names that sibling as an alternative.

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 only implied: the concrete example (/v1/holidays/2026/US) shows the call shape, but there is no statement of when to prefer this over the long-weekend endpoint or what preconditions apply. An agent can infer the use case but gets no exclusions.

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

Deploy Server

Other Tools