Skip to main content
Glama

MiniTools Precision Calculators

Business Days & Deadline Calculator

calculate_business_days
Read-onlyIdempotent

Calculate exact business days between two calendar dates (excluding weekends and optional holidays) OR add/subtract business days to compute an exact deadline date.

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

Input Schema

NameRequiredDescriptionDefault
modeNo"between" counts business days between start_date and end_date; "add" adds/subtracts business_days from start_date.
end_dateNoEnd date in YYYY-MM-DD format (required when mode="between").
holidaysNoOptional list of custom holiday dates in YYYY-MM-DD format to exclude.
start_dateYesStart date in YYYY-MM-DD format.
business_daysNoSigned integer number of business days to add or subtract (required when mode="add").
include_end_dateNoInclude end_date in the count when mode="between" (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare the tool is read-only, idempotent, non-destructive, and closed-world. Beyond that, the description adds meaningful calculation behavior: weekends are excluded and optional holidays can be excluded, and add/subtract supports signed business days. It does not cover edge cases such as how weekend start/end dates are handled, but the added behavioral context is solid.

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?

The description is a single well-structured sentence with the primary purpose front-loaded and the two operating modes clearly separated. Every clause earns its place and there is no redundant wording.

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?

For a read-only, idempotent calculator with full schema descriptions and no output schema, the description covers both operational modes and the weekend/holiday exclusion rules. It could mention the return value more explicitly, but it is complete enough for an agent to call the tool correctly.

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 description coverage is 100%, so all six parameters already have structured descriptions, including the mode enum and conditional requirements. The description reinforces the holidays and signed add/subtract concepts but does not add syntax or format details beyond what the schema provides.

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 description states a specific verb and resource: calculating exact business days between dates or adding/subtracting business days to find a deadline. It clearly covers both modes and distinguishes the tool from the financial calculator siblings, which address a different domain.

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?

The description makes the two modes clear and implies when each is used: 'between' for counting days across a range and 'add' for computing a deadline date. It does not explicitly name alternatives or state when not to use the tool, but the context is sufficiently clear for an agent.

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.