Skip to main content
Glama

Count business days

business_days_between
Read-only

Counts business days between two dates inclusively, excluding weekends and Brazilian national holidays, helping you calculate working-day intervals accurately.

Instructions

Counts business days between two dates (inclusive), excluding weekends and Brazilian national holidays.

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

Input Schema

NameRequiredDescriptionDefault
endYesEnd date, YYYY-MM-DD
startYesStart date, YYYY-MM-DD

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the readOnlyHint and openWorldHint annotations, the description discloses two non-obvious behaviors: the count is inclusive of both endpoints, and the holiday calendar is specifically Brazilian national. It does not say where the holiday set comes from, whether movable observances (Carnival, Good Friday) are included, or what happens if start is later than end.

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?

A single tightly written sentence with the core action first and the two scoping qualifiers (inclusive, holiday exclusion) immediately after. Every clause carries information; there is no filler.

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 two-parameter, annotation-covered computation tool with no output schema, this is close to complete. The remaining gap is edge-case behavior—reversed date order, same-day input, and the exact holiday source—which an agent would want before relying on the result.

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%, with both start and end documented as YYYY-MM-DD strings, so the schema already carries parameter meaning. The description adds nothing further—for example, nothing about ordering, equality of the two dates, or timezone handling.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Counts business days between two dates') plus a precise scope constraint (inclusive, excluding weekends and Brazilian national holidays), which makes it obviously distinct from any sibling. It never explicitly names a related tool such as list_holidays, so it stops short of full sibling differentiation.

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 purpose statement rather than stated: an agent can infer this is the tool for business-day math, and the mention of Brazilian national holidays implicitly warns that other jurisdictions are unsupported. There is no explicit when-to-use, when-not-to-use, or pointer to list_holidays for inspecting which dates are excluded.

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