Skip to main content
Glama

dato402 – Spain & EU data

Business days calculator between two dates, excluding weeken

business_days_between
Read-onlyIdempotent

Business days calculator between two dates, excluding weekends and national and regional public holidays. For deadlines and delivery dates.

ES: Cuenta los días laborables entre dos fechas (ambas incluidas) descontando fines de semana y festivos nacionales y, si se indica, autonómicos. Útil para plazos y entregas.

Source of truth: official Spanish/EU open data. Free via MCP up to 20 calls/day; unlimited via the x402 pay-per-call endpoint https://dato402.com/api/calendario/laborables ($0.001 USDC).

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": {
      "desde": "<desde>",
      "hasta": "<hasta>"
    },
    "name": "business_days_between"
  }
}

Input Schema

NameRequiredDescriptionDefault
paisNoCódigo ISO de 2 letras (por defecto ES)
desdeYesAAAA-MM-DD
hastaYesAAAA-MM-DD (rango máx. 2 años)
regionNoRegión ISO 3166-2 (opcional), p. ej. ES-CT

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

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, non-destructive, openWorld, so the safety profile is covered. The description adds genuinely useful behavior beyond them: the data source (official Spanish/EU open data), a free-tier quota of 20 calls/day, and a paid x402 endpoint with price. It still says nothing about what the call returns or error behavior when the 2-year range is exceeded.

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 and Spanish blocks are near-verbatim duplicates of the same content, so roughly half the text earns no new information. The core purpose is front-loaded and the pricing/quota note is cleanly separated at the end, but the bilingual repetition costs space.

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 four-parameter read tool with no output schema, the definition covers inputs, data provenance, and quota/cost. It omits the return shape entirely — an agent cannot tell whether it gets an integer count, a list of dates, or a per-day breakdown, which matters 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.

Parameters4/5

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

Schema coverage is 100%, and the schema already documents each parameter including the ISO formats and the 2-year range cap. The description nonetheless adds meaning the schema does not: that both endpoint dates are inclusive ("ambas incluidas") and that the region parameter pulls in regional holidays when supplied.

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?

States a specific verb+resource: counting business days between two dates with weekends and national/regional holidays excluded. An agent can tell this apart from a plain holiday-listing tool like public_holidays, though the sibling is never named explicitly.

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?

"For deadlines and delivery dates" gives an implied use case but no explicit when-not conditions and no named alternatives. The agent must infer that this is the tool for counting days rather than for retrieving the holiday calendar itself.

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