Skip to main content
Glama

AgentStall: Africa and global data for agents

Count business days between two dates (working days calculator), 220+ countries

count_business_days
Read-onlyIdempotent

Working days calculator: counts the business days between two dates in any of 220+ countries, excluding weekends and public holidays, and lists the holidays excluded. Local weekends supported. Verified calendars for South Africa, Nigeria, Kenya, Egypt, Ghana and 6 more African countries. Useful for SLAs, turnaround times, leave days and deadlines measured in business days. Returns JSON with from, to, businessDays, calendarDays. 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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "count_business_days"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesEnd date, YYYY-MM-DD (inclusive), within 5 years of 'from'
fromYesStart date, YYYY-MM-DD (exclusive)
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.4/5.0
Behavior5/5

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

Annotations already cover read-only and idempotency, but the description adds material context the agent could not infer: the returned JSON fields (from, to, businessDays, calendarDays), that local weekend conventions are honored, that input is validated before billing, and the exact cost model ($0.002 USDC on Base, charged only on success). That is genuine behavioral disclosure beyond the structured fields.

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?

Purpose is front-loaded in the first clause and the sentence order follows the agent's decision path: what it does, then use cases, then return shape, then cost. It is slightly dense with promotional verification detail ("Verified calendars for South Africa, Nigeria, Kenya, Egypt, Ghana and 6 more African countries") that partly duplicates the country parameter schema.

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 steps in and names the four return fields, and it discloses both cost and failure behavior, which is what an agent needs before committing a paid call. Nothing essential about invoking a three-parameter, fully schema-documented date tool is left unstated.

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 coverage is 100%, including the exclusive/inclusive asymmetry and the ISO country code with defaults and verified-calendar list, so the schema carries the parameter load. The description only loosely reinforces this via "any of 220+ countries" and "local weekends supported," adding little syntax or format meaning beyond the schema, which is the expected baseline.

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?

States a specific verb and resource up front: "counts the business days between two dates," plus scope (220+ countries, weekends and public holidays excluded) and a distinctive side effect ("lists the holidays excluded"). The date-range framing separates it from the single-date sibling is_business_day and the forward-shifting add_business_days without needing to name them.

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?

Gives concrete use-case context ("SLAs, turnaround times, leave days and deadlines measured in business days"), which tells an agent the right class of question. It does not explicitly state when to prefer this over add_business_days or is_business_day, and names no exclusions, so it stops short of full routing guidance.

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