Skip to main content
Glama

Business Days & Workday Calc

Calculate a business-day due date and SLA

add_business_days
Read-onlyIdempotent

Use this when the user asks what date is a number of working days, business days or workdays after or before a date, including an SLA due date or turnaround, for example "what date is 37 business days after 11 August in England?" 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. For a trade's settlement date (T+1, T+2) pass calendars, such as ["NYSE", "FED"], ["LSE"] or ["JPX"]. Do not use it for legal deadlines that follow their own court or contract rules, or for calendar-day offsets.

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": {
      "country": "<country>",
      "startDate": "<startDate>",
      "days": "<days>"
    },
    "name": "add_business_days"
  }
}

Input 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.
calendarsNoHoliday calendars to apply; a day is off when any of them closes it. "public" (the default) is the country's public holidays. NYSE is the New York Stock Exchange (also Nasdaq), FED the Federal Reserve and Fedwire (which DTC settlement follows), LSE the London Stock Exchange, JPX the Japan Exchange Group, TARGET2 the euro payment system. For a settlement date join the market and payment calendars, such as ["NYSE", "FED"] for a US T+1 settlement or ["TARGET2", "FED"] for EUR/USD spot. Optional.
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

NameRequiredDescriptionDefault
daysYes
noteNo
regionNo
sourceYes
countryYes
weekendNo
calendarsNoThe calendars applied, when the call named calendars
startDateYes
resultDateYes
conventionsYes
calendarDaysYes
resultWeekdayYes
holidaysSkippedYes
startIsBusinessDayYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / calendars
      Added value: +{
      +  "description": "Holiday calendars to apply; a day is off when any of them closes it. \"public\" (the default) is the country's public holidays. NYSE is the New York Stock Exchange (also Nasdaq), FED the Federal Reserve and Fedwire (which DTC settlement follows), LSE the London Stock Exchange, JPX the Japan Exchange Group, TARGET2 the euro payment system. For a settlement date join the market and payment calendars, such as [\"NYSE\", \"FED\"] for a US T+1 settlement or [\"TARGET2\", \"FED\"] for EUR/USD spot. Optional.",
      +  "items": {
      +    "enum": [
      +      "public",
      +      "NYSE",
      +      "FED",
      +      "LSE",
      +      "JPX",
      +      "TARGET2"
      +    ],
      +    "type": "string"
      +  },
      +  "maxItems": 3,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedOutput schema / properties / calendars
      Added value: +{
      +  "description": "The calendars applied, when the call named calendars",
      +  "items": {
      +    "enum": [
      +      "public",
      +      "NYSE",
      +      "FED",
      +      "LSE",
      +      "JPX",
      +      "TARGET2"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed1 schema field changed
    • removedOutput schema / properties / note_from_openkrill
      Removed value: -{
      -  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      -  "type": "string"
      -}
  3. Changed1 schema field changed
    • addedOutput schema / properties / note_from_openkrill
      Added value: +{
      +  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already establish a safe, read-only, idempotent calculation; the description adds concrete counting semantics (start date is day 0 and excluded), a ±1000 business-day cap, and what the result includes. That is material behavioral context beyond the annotations.

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?

The description is front-loaded with the use case and examples, then moves through parameters, behavior, limits, and exclusions without much filler. It is a bit long and repeats some schema/output details, but the structure is clear.

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 six optional/required parameters, rich enum choices, annotations, and an output schema, the description supplies the needed context: counting convention, cap, calendar selection, and exclusions. It is complete enough for correct invocation.

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 coverage is 100%, and the description mostly restates the country/startDate/days/region/calendars guidance already in the schema, including the YYYY-MM-DD and negative-day conventions. It adds little new parameter-level semantics beyond the already detailed schema.

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?

The opening sentence gives a specific operation—finding the date N business days after or before a start date—and anchors it to SLA/turnaround use cases with concrete examples. Although it does not name count_business_days explicitly, the scope is unmistakable: this returns a resulting date, not a count of days.

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?

It explicitly says when to use this tool with examples and when not to use it for legal deadlines and calendar-day offsets, plus notes settlement-date calendar usage. It does not name the closest alternative for counting business days, so guidance is strong but not fully alternative-aware.

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.