Skip to main content
Glama

AgentStall: Africa and global data for agents

Business days calculator: add or subtract working days, 220+ countries

add_business_days
Read-onlyIdempotent

Business days calculator: adds or subtracts working days from a date in any of 220+ countries, skipping weekends and public holidays, and lists the holidays skipped. Local weekends supported (e.g. Friday-Saturday in Saudi Arabia and Egypt). Verified calendars for South Africa and 10 African countries. Useful for payment terms such as 'net 5 business days', notice periods, SLAs, delivery estimates and legal deadlines. Returns JSON with start, businessDaysAdded, result, resultWeekday, holidaysSkipped. Read-only; invalid input is rejected before any charge. Price: $0.002 USDC per call (x402, Base mainnet), paid only when the call succeeds.

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

Input Schema

NameRequiredDescriptionDefault
daysYesBusiness days to add, -1000 to 1000
startYesStart date, YYYY-MM-DD
countryNo2-letter ISO country code, e.g. ZA (default), NG, KE, EG, IN, AE, SA, US, GB, DE, BR, CN (220+ countries). Verified calendars for ZA, NG, KE, EG, GH, MA, RW, UG, TZ, MU and BW

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/openWorld annotations, it discloses the output fields (start, businessDaysAdded, result, resultWeekday, holidaysSkipped), that skipped holidays are listed, that invalid input is rejected before any charge, and the exact price and payment chain. That is unusually rich behavioral context for a paid call.

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 front-loaded with the core action, then usage, return shape, safety, and pricing in a sensible order, with every sentence carrying information. It is somewhat dense and repeats the 220+ countries and verified-calendar list that the schema already carries, which is a minor waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description fully enumerates the response fields and result semantics; with three simple parameters and full annotation coverage, nothing an agent needs to call this correctly is missing. Pricing and failure-charge behavior are also covered.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description still adds meaning by noting that local weekend definitions vary (Friday–Saturday in Saudi Arabia and Egypt) and that calendars are 'verified' for a specific subset of countries, which clarifies the country parameter beyond the schema's enum-like example list. The redundancy of repeating 220+ countries and the country list keeps it from a 5.

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?

The description opens with a specific verb+resource: 'adds or subtracts working days from a date,' and scopes it to weekends/holidays plus local weekend rules. That makes it materially distinguishable from count_business_days or is_business_day, though it never names a sibling to route against explicitly.

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?

It gives concrete use contexts — payment terms like 'net 5 business days,' notice periods, SLAs, delivery estimates, legal deadlines — which tells the agent when to reach for it. It stops short of naming the alternative tools or stating when not to use it (e.g. when you only want a day count rather than a shifted date).

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