Skip to main content
Glama

Sumar días hábiles

business-days-add
Read-onlyIdempotent

Suma o resta N días hábiles a una fecha, saltando fines de semana y festivos. Cuándo: un resultado de fechas, zonas horarias o calendario tiene que ser exacto (desfases, horario de verano, fines de mes, bisiestos). No para: sumar o restar N días hábiles a una fecha usando los festivos de Colombia (co-business-days-add). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Adds (or subtracts) N working days to a date, skipping configurable weekend days and given holidays; useful for due dates and SLAs. When: a date, time-zone or calendar result has to be exact (offsets, daylight saving, month ends, leap years). Not for: adding or subtracting N business days (co-business-days-add). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
dateYesDate YYYY-MM-DD (string; required; up to 10 chars; format date).
daysYesBusiness days to add (negative subtracts) (integer; required; min -10000; max 10000).
weekendNoWeekend days (0=Sun … 6=Sat) (array of integer; optional; default [0,6]; up to 6 items).
holidaysNoHoliday dates YYYY-MM-DD to skip (array of string; optional; default []; up to 2000 items).

Output Schema

NameRequiredDescriptionDefault
resultNoany JSON value
weekdayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / date / examples
      Added value: +[
      +  "2026-10-30"
      +]
    • addedInput schema / properties / days / examples
      Added value: +[
      +  1
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Adds (or subtracts) N working days to a date, skipping configurable weekend days and given holidays; useful for due dates and SLAs. When: a date, time-zone or calendar result has to be exact (offsets, daylight saving, month ends, leap years). Not for: adding or subtracting N business days (co-business-days-add). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB."
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld=false/idempotent/non-destructive, so the safety profile is covered; the description adds value with determinism (same input, same output) and hard operational limits (64 KB input, 1 s per call, 1 MB result) that no annotation conveys. The "no stored state, no network" note partly restates annotations but reinforces the pure-function model. It does not discuss error behavior for invalid dates or oversized holiday lists.

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 purpose is front-loaded and every clause is substantive, but the content is delivered twice (ES and EN) and the English text is repeated again in the schema description, roughly tripling the reading cost. The "Not for" sentence also echoes the purpose verbatim before getting to the differentiator (Colombian holidays).

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?

Return values are covered by the output schema, and the description supplies the remaining pieces an agent needs: scope, sibling exclusion, determinism and resource limits. Only minor gaps remain (error semantics for malformed dates, whether holidays may fall on weekend days).

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%, with per-property descriptions for date, days, weekend (0=Sun…6=Sat, default [0,6]) and holidays (up to 2000 entries), so the schema already carries full parameter meaning. The description only broadens this to "configurable weekend days and given holidays" without adding format or interaction detail, which is the expected baseline-3 case.

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?

States a specific verb and resource (add/subtract N working days to a date) and immediately specifies scope: skips configurable weekend days and supplied holidays. It also names the sibling it is not (co-business-days-add with Colombian holidays), so an agent can separate the generic tool from the localized one without opening the schema.

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?

Explicit "When" clause ties use to contexts demanding exact calendar arithmetic (offset drift, DST, month ends, leap years), and a "Not for" clause points to co-business-days-add. It does not mention other adjacent siblings such as business-days-between or date-add, so routing is clear but not exhaustive.

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