Skip to main content
Glama

Business Days and Holidays

Add business days to a date

add_business_days
Read-onlyIdempotent

Use this when the user asks what date is a number of working or business days after or before a date, for example "what date is 37 business days after 11 August in England?", "when is payment due 30 business days from invoice date 3 March in Germany?" or "5 working days before 20 December in the US". Pass the country code, the start date as YYYY-MM-DD, the number of days (negative for earlier) and a region when the user names one. The start date is day 0 and is not counted. Returns the resulting date and weekday, the holidays skipped, and the conventions used. At most 1000 business days. Do not use it for legal deadlines that follow their own court or contract rules, or for calendar-day offsets.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysYesWorking days to move: positive for later, negative for earlier. At most 1000 either way.
regionNoState, province or nation within the country, as a subdivision code such as DE-BY or BY (Bavaria), GB-SCT (Scotland), US-CA or AU-NSW. Optional.
countryYesTwo-letter ISO 3166-1 country code whose holidays apply, such as US, GB, DE, AU or VN.
startDateYesThe date to count from, YYYY-MM-DD. It is day 0 and is not counted.
weekendDaysNoDays of the week that are not working days. Default: saturday and sunday. Use friday and saturday where that is the weekend.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysYes
noteNo
regionNo
sourceYes
countryYes
weekendNo
startDateYes
resultDateYes
conventionsYes
calendarDaysYes
resultWeekdayYes
holidaysSkippedYes
startIsBusinessDayYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description's behavioral additions — the 1000-business-day cap and 'start date is day 0' — are already stated in the schema, and the output schema covers the return values it mentions, so net new disclosure is modest.

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?

Front-loaded with the use case and examples before the constraints and exclusions, and every sentence carries information. The three separate example utterances are somewhat verbose for the point they establish.

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

Completeness5/5

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

With a full output schema and annotated read-only semantics, plus limits, day-0 convention and usage exclusions in the description, an agent has everything needed to call this correctly.

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 description coverage is 100%, so baseline is 3, but the description adds routing guidance the schema lacks: pass the region 'when the user names one' and pass day count 'negative for earlier'. It lightly touches the remaining params without restating all schema detail.

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 precise verb+resource outcome: compute the date that falls a given number of business days from a start date. The scope ('after or before', country holidays, weekday/weekend logic) makes it unmistakable, and it is naturally distinct from count_business_days (offset vs count).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit trigger conditions with three concrete user phrasings, plus negative guidance ('Do not use it for legal deadlines that follow their own court or contract rules, or for calendar-day offsets'). An agent knows exactly when this tool applies and when it does not.

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