Skip to main content
Glama

TinyFn

business_days

Count business days between two dates (excluding weekends).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_dateYesEnd date (YYYY-MM-DD)
start_dateYesStart date (YYYY-MM-DD)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
end_dateNo
start_dateNo
total_daysNo
weekend_daysNo
business_daysNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses the key behavioral trait: excluding weekends. However, it does not mention whether holidays are excluded, how edge cases (e.g., start/end date inclusivity) are handled, or the output format. Still, the core behavior is clear.

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 sentence with 8 words, front-loading the key purpose. No unnecessary text; every word contributes to clarity.

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 simple business day counter, the description covers the essential purpose and the weekend-exclusion behavior. It is largely complete given the availability of an output schema (not shown but indicated). However, it could specify whether start and end dates are inclusive in the count, and whether holidays are considered.

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?

The input schema already describes both parameters with format hints (YYYY-MM-DD). The description adds context (business days) but does not enhance parameter semantics beyond what the schema provides. Schema coverage is 100%, so a baseline of 3 is appropriate.

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 clearly states the tool's purpose: counting business days between two dates while excluding weekends. The verb 'Count' and resource 'business days' are specific, and the tool is easily distinguished from siblings like 'date_diff' (which counts all days) or 'add_business_days'.

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 usage for counting working days excluding weekends, but does not explicitly state when to use it versus alternatives like 'date_diff' or 'add_business_days'. No exclusions or alternative recommendations are provided.

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.