Skip to main content
Glama

Business days calculator between two dates, excluding weeken

business_days_between
Read-onlyIdempotent

Calculate business days between two dates while excluding weekends and public holidays; use it to set deadlines and estimate delivery dates.

Instructions

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.

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

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 observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and openWorld, so safety is covered. The description adds real value by disclosing the holiday-exclusion logic, inclusive endpoints, and that no API key or payment is required. It does not say what happens when the range exceeds the limit or with malformed dates, so behavioral disclosure is partial.

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 sentence is well front-loaded and efficient, but it is followed by a full Spanish restatement carrying nearly identical information, plus a separate 'Free tool / official open data' footer. For an agent, the bilingual duplication is redundant payload rather than added signal.

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?

There is no output schema, so the description should clarify that the result is a count of business days (and possibly the excluded holidays). It implies this via 'calculator' but never states the return shape, which is a notable gap for a computational tool with four parameters.

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 'pais', 'desde', 'hasta' and 'region' are already documented including ISO formats and the 2-year max range. The description contributes the meaningful nuance that both endpoints are counted and that regional holidays apply only 'si se indica', but adds little beyond the schema overall.

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: counting business days between two dates while excluding weekends and national/regional holidays. It is clearly distinguishable from most siblings, but never references the closely related 'public_holidays' sibling, so an agent must infer the difference between 'which days are holidays' and 'how many working days fall in a span'.

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?

The phrase 'For deadlines and delivery dates' gives a light usage context but no explicit when-not guidance, no prerequisites, and no alternative tools named. An agent knows the general domain but not the boundary case such as when to prefer a plain date-difference or the public_holidays sibling.

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