Skip to main content
Glama

ClockCrest time tools

Add business days to a date

add_business_days
Read-onlyIdempotent

Finds the date that is N business days after (or, with a negative N, before) a start date in a country, skipping its weekend days and nationwide public holidays. Holiday data covers 2025–2028; a calculation that leaves those years is refused rather than guessed.

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>",
      "start": "<start>",
      "days": "<days>"
    },
    "name": "add_business_days"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysYesBusiness days to add; negative to go back (−1000 to 1000)
startYesStart date, YYYY-MM-DD
countryYesISO 3166-1 alpha-2 country code, e.g. FR

Output Schema

NameRequiredDescriptionDefault
daysYes
notesYesCaveats and conventions that apply to this response.
rulesYes
startYesCalendar date, YYYY-MM-DD
resultYesThe business day reached
sourceYesWhere the data or the algorithm comes from.
countryYesISO 3166-1 alpha-2 country code
weekendYes
dataYearsYesYears the holiday data covers for this country.
sourceUrlYes
countryNameYes
lastUpdatedYesDate the underlying data set was last generated or checked.
calendarDaysYesSigned calendar days from start to result
startWeekdayYesEnglish weekday name
resultWeekdayYesEnglish weekday name
holidaysSkippedYesNationwide holidays on working weekdays that were stepped over
startIsBusinessDayYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations (which only declare it read-only, idempotent, non-destructive, closed-world) by disclosing the exact skipping rules, that only nationwide rather than regional holidays are honored, the 2025–2028 data horizon, and the fail-closed error behavior for out-of-coverage results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core operation, then the constraints. Every clause carries information an agent needs; nothing is repeated from the schema or annotations.

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?

Annotations cover the safety profile and an output schema exists, so the description only had to explain the calculation and its limits — which it does, including the refusal behavior an agent must anticipate. Nothing material is missing for correct invocation.

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 coverage is 100%, so the baseline is 3, and the description adds real meaning: the country argument selects which weekend days ("its weekend days") and holiday set apply, not merely an ISO code, and negative values for days reverse direction. It stops short of 5 only because date format and bounds are left entirely to the 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?

States a specific verb and result ("Finds the date that is N business days after… a start date in a country") and pins the algorithm to weekend days plus nationwide public holidays. That output-oriented framing separates it from a day-counting sibling such as calculate_business_days without needing to name it.

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?

Clear about the calculation it performs and the sign convention, and it states a real usage boundary: holiday data covers 2025–2028 and out-of-range calculations are refused. It never explicitly says when to prefer an alternative (e.g. counting days between dates), so it falls short of a 5.

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