Skip to main content
Glama

ClockCrest time tools

Count business days

calculate_business_days
Read-onlyIdempotent

Business days between two dates (both inclusive) in a country, excluding its weekend days and nationwide public holidays. Lists the holidays that were excluded. Holiday data covers 2025–2028.

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>",
      "end": "<end>"
    },
    "name": "calculate_business_days"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesLast day (inclusive), YYYY-MM-DD; at most 1500 days after start
startYesFirst day, YYYY-MM-DD
countryYesISO 3166-1 alpha-2 country code, e.g. FR

Output Schema

NameRequiredDescriptionDefault
endYesCalendar date, YYYY-MM-DD
rulesYes
startYesCalendar date, YYYY-MM-DD
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.
businessDaysYes
calendarDaysYes
endInclusiveYes
holidaysExcludedYesNationwide holidays that removed a working day
holidaysOnWeekendYesNationwide holidays that fall on a weekend day anyway

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description adds genuine context: inclusive endpoints, weekend plus nationwide-holiday exclusion, and the return of the excluded holiday list. It also discloses the 2025–2028 holiday data window, a real behavioral constraint, though it doesn't say what happens for dates outside that window.

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?

Three short sentences, front-loaded with the core operation and followed by the exclusion rules and data coverage. No filler or redundancy.

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?

An output schema exists, so return values needn't be explained. Combined with full schema coverage and annotations, the description supplies everything needed to call it correctly; the only minor omission is out-of-window date behavior, which is low-stakes for a read-only calculation.

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 bar is baseline 3, but the description adds meaning beyond the schema: it clarifies that both start and end are inclusive and that 'country' determines which weekend/holiday rules apply, plus the holiday-data year range that effectively bounds valid inputs.

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 ('Business days between two dates') with scope qualifiers ('both inclusive', 'in a country'), which distinguishes it cleanly from siblings like add_business_days (offsetting) and calculate_date_difference (any date difference).

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?

The description implies the use case (counting excluded holidays between two dates in a country) but never explicitly names when to prefer this over add_business_days or calculate_date_difference, nor any when-not conditions.

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