Skip to main content
Glama

calculate_business_days

Add or subtract business days from a date, skipping weekends, for project planning and SLA calculations.

Instructions

Calculate business days — add/subtract working days from a date.

Use this for project planning, SLA calculations, or any date arithmetic
that should skip weekends.

Parameters:
    date      — Starting date in ISO format (e.g. "2025-06-07").
                 Defaults to today if empty.
    days      — Number of business days to add/subtract (default: 0).
    direction — "forward" (add days, default) or "backward" (subtract).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNo
daysNo
directionNoforward

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations, so description must cover behavior. Explains weekend skipping and defaults, but lacks details on return format, handling of invalid dates, or inclusion of holidays.

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?

Very concise, two short paragraphs plus a clear parameter list. No wasted words.

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?

Output schema exists (not shown) so description covers what's needed for usage. Could mention edge cases like negative days, but overall complete for a simple tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, but description fully documents each parameter: date format and default, days default, direction options. Adds significant value beyond 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?

Clearly states the tool calculates business days by adding/subtracting working days that skip weekends. Distinct from siblings like 'calculate_date' which likely includes all 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?

Provides explicit use cases (project planning, SLA calculations) but does not mention when not to use or alternatives for calendar day arithmetic.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/scotia1973-bot/api-hub'

If you have feedback or need assistance with the MCP directory API, please join our Discord server