Skip to main content
Glama

AgentStall: Africa and global data for agents

Business day checker: is a date a working day? 220+ countries

is_business_day
Read-onlyIdempotent

Is it a business day? Checks whether a date is a business (working) day in any of 220+ countries and says why not: weekend or which public holiday. Returns the next and previous business days. Handles local weekends (Friday-Saturday in Saudi Arabia, Egypt and Israel) and observed holidays, with verified calendars for South Africa, Nigeria, Kenya, Egypt and 7 more African countries. Useful for payment, settlement and delivery dates. Returns JSON with date, weekday, isBusinessDay, reason, nextBusinessDay, previousBusinessDay. Read-only; invalid input is rejected before any charge. Price: $0.001 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": {
      "date": "<date>"
    },
    "name": "is_business_day"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesDate in 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.6/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, closed-world), and the description goes well beyond them: it discloses that local weekends differ by country (Fri–Sat in SA/EG/IL), that observed holidays are handled, that invalid input is rejected before any charge, and the exact pricing model (x402, Base mainnet, $0.001 paid only on success). The listing of returned fields also makes the response predictable.

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?

Front-loaded with the core question, then scope, then return shape, then cost — a sensible ordering with no wasted clauses. It is dense, and the field-by-field return listing plus pricing tail is slightly long, though each part carries information an agent needs.

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?

No output schema exists, and the description compensates by enumerating the returned JSON keys (date, weekday, isBusinessDay, reason, nextBusinessDay, previousBusinessDay). Combined with the pricing and error-handling notes, an agent has everything needed to call this correctly and interpret results.

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, but the description adds real semantic weight to the country parameter by explaining that weekend definition and holiday calendars vary by country and that a specific subset has verified calendars. It does not add format detail beyond the schema's ISO/Y-M-D guidance.

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?

Opens with a specific question plus a precise verb-and-resource statement: checks whether a date is a business day in 220+ countries and reports the reason (weekend vs. named public holiday). This is clearly a predicate/check tool, which distinguishes it from siblings like add_business_days, count_business_days and public_holidays 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?

Supplies a concrete usage context ('useful for payment, settlement and delivery dates') that tells the agent which class of problem it solves. It stops short of explicit routing guidance — it never says when to prefer public_holidays or add_business_days instead, and gives no exclusions.

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