Skip to main content
Glama

Time of Meeting

Working days between two dates

working_days_between
Read-onlyIdempotent

Business days / working days calculator: count business days between two dates for one country, skipping weekends and public holidays, bank closures, or both (calendar: business, bank, combined). Returns the skipped dates with reasons.

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": {
      "start": "<start>",
      "end": "<end>",
      "country": "<country>"
    },
    "name": "working_days_between"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesSecond date, YYYY-MM-DD. Also accepted: YYYY-MM-DDTHH:MM, YYYY-MM-DDTHH:MM:SSZ, YYYY/MM/DD, or YYYYMMDD.
startYesFirst date, YYYY-MM-DD. Also accepted: YYYY-MM-DDTHH:MM, YYYY-MM-DDTHH:MM:SSZ, YYYY/MM/DD, or YYYYMMDD.
countryYesISO 3166-1 alpha-2 code or English country name. UK is accepted for the United Kingdom.
calendarNobusiness (default) skips national public holidays. bank skips bank closures: US Federal Reserve holidays, Danmarks Nationalbank closing days (DK), UK bank holidays (GB, or one nation GB-ENG, GB-WLS, GB-SCT, GB-NIR), and TARGET2 euro closing days. combined skips both. Other countries have no bank data, so bank and combined return an error for them.business
include_endNoCount end when it is a working day. Default false.
include_startNoCount start when it is a working day. Default false.

Output Schema

NameRequiredDescriptionDefault
endYes
daysYes
errorNo
startYes
sourceYes
countryYes
skippedYes
calendarYes
holidaysYes
candidatesNo
zone_notesNoPresent when a city argument was a time zone abbreviation or fixed offset such as EST or UTC+2. Says which time zone it was read as, and what else the abbreviation can mean.
include_endYes
alternativesNoOther cities that matched the same name, after the best-ranked city was chosen. The order is the site search order: match, then priority, then population.
country_nameYes
include_startYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / zone_notes
      Added value: +{
      +  "description": "Present when a city argument was a time zone abbreviation or fixed offset such as EST or UTC+2. Says which time zone it was read as, and what else the abbreviation can mean.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / end / description
      Previous value: -"Second date, YYYY-MM-DD."New value: +"Second date, YYYY-MM-DD. Also accepted: YYYY-MM-DDTHH:MM, YYYY-MM-DDTHH:MM:SSZ, YYYY/MM/DD, or YYYYMMDD."
    • changedInput schema / properties / start / description
      Previous value: -"First date, YYYY-MM-DD."New value: +"First date, YYYY-MM-DD. Also accepted: YYYY-MM-DDTHH:MM, YYYY-MM-DDTHH:MM:SSZ, YYYY/MM/DD, or YYYYMMDD."
  3. Changed4 schema fields changed
    • addedInput schema / properties / calendar
      Added value: +{
      +  "default": "business",
      +  "description": "business (default) skips national public holidays. bank skips bank closures: US Federal Reserve holidays, Danmarks Nationalbank closing days (DK), UK bank holidays (GB, or one nation GB-ENG, GB-WLS, GB-SCT, GB-NIR), and TARGET2 euro closing days. combined skips both. Other countries have no bank data, so bank and combined return an error for them.",
      +  "enum": [
      +    "business",
      +    "bank",
      +    "combined"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / calendar
      Added value: +{
      +  "enum": [
      +    "business",
      +    "bank",
      +    "combined"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / skipped
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "date": {
      +        "type": "string"
      +      },
      +      "reason": {
      +        "type": "string"
      +      },
      +      "reasons": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "date",
      +      "reason",
      +      "reasons"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "start",
      -  "end",
      -  "country",
      -  "country_name",
      -  "days",
      -  "include_start",
      -  "include_end",
      -  "holidays",
      -  "source"
      -]New value: +[
      +  "start",
      +  "end",
      +  "country",
      +  "country_name",
      +  "days",
      +  "include_start",
      +  "include_end",
      +  "holidays",
      +  "source",
      +  "calendar",
      +  "skipped"
      +]
  4. Added

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 and non-destructive, so the description adds value by disclosing that the result includes the skipped dates with reasons. It also signals the calendar modes change which closures are skipped, though it leaves the error behavior for countries without bank data to the schema rather than repeating it.

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?

It is a single front-loaded sentence that leads with the core action and tucks qualifications into a clause. The parenthetical "(calendar: business, bank, combined)" is slightly cramped and largely duplicates the schema, but no filler is present.

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?

With an output schema present, return values need no explanation, and annotations carry the safety profile, so the description only needs to convey purpose and scope, which it does. The one gap is that the bank/combined limitation for unsupported countries is only visible in the schema.

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%, so every parameter including the calendar enum and its default is already documented in structured fields. The description only restates the three calendar values and the single-country constraint, adding no format, boundary, or default details beyond 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?

Uses a specific verb+resource ("count business days between two dates") and scopes it to a single country, skipping weekends and holidays. The phrase "business days / working days calculator" makes it immediately distinguishable from the plain days_between sibling.

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?

Usage is implied by the domain: use it when you need a count of working days rather than calendar days. It does not state when to prefer add_business_days or days_between, nor when-not to use it, so an agent must infer the alternative from the name and purpose alone.

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