Skip to main content
Glama

Add or subtract business days from a date

add_business_days
Read-onlyIdempotent

Add (or, with a negative number, subtract) business days to a date, skipping weekends and public holidays of the country (and region). Returns the result date and the holidays skipped. Read-only. Same engine, cache and limits as GET /v1/add.

Input Schema

NameRequiredDescriptionDefault
dateYesStart date, YYYY-MM-DD (2020-2035).
daysYesBusiness days to add; negative counts backwards.
typesNoOptional holiday types that close business days: comma list of public, bank (default: public; "all" = public,bank).
regionNoOptional region/state code for countries with regional holidays, e.g. DE-BY, US-CA (or just BY).
countryYesISO 3166-1 alpha-2 country code, e.g. US, DE, GB. See list_countries.
weekendNoOptional weekend days, comma list of day names like "sat,sun" (default) or "fri,sat", or "none".

Output Schema

NameRequiredDescriptionDefault
dateYes
daysYes
regionNo
resultYes
countryNo
weekendNo
calendar_daysNo
holiday_typesNo
result_weekdayNo
skipped_holidaysNo
skipped_holidays_truncatedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, yet the description adds real value: it discloses holiday-skipping behavior, that skipped holidays are returned, and that shared cache/limits apply. It goes beyond the structured safety hints with operational context.

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?

Two compact sentences with the core behavior front-loaded; nothing is wasted. The trailing 'GET /v1/add' reference is slightly cryptic for an agent but does convey engine/cache continuity efficiently.

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?

For a six-parameter date-math tool with an output schema already covering return structure, the description supplies the essential behavioral context (weekend/holiday skipping, negative direction, shared limits). An explicit pointer to sibling tools for adjacent operations is the only meaningful gap.

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 the schema already documents all six parameters, including the negative-days and holiday-type semantics. The description's mention of negative subtraction and country/region merely reinforces what the schema states, so baseline 3 is appropriate.

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+resource ('add/subtract business days to a date') with the exact mechanic (skipping weekends and public holidays). This clearly distinguishes it from siblings like business_days_between and is_business_day, which count or test rather than offset.

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?

It implies the subtract use case via negative numbers and orients the agent with 'same engine, cache and limits as GET /v1/add', but never states when to choose this over business_days_between or is_business_day. Usage context is implied rather than explicit routing.

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