Skip to main content
Glama

Location Toolkit

Local time, time zone, DST, weekend days and business hours for any point on Earth, plus working-day counts

local_time_and_working_days

From coordinates, a Plus Code, DIGIPIN or Indian PIN: the IANA time zone, local date and time, UTC offset, whether daylight saving is active, the country's weekend days (e.g. Friday-Saturday in Saudi Arabia, Sunday only in Nepal), whether it is business hours now and when the next business day opens (local and UTC). Optional: count working days between two dates, or add N working days to a date (deadlines, delivery estimates, SLAs). Public holidays are not included. Price 0.001 USDC per call; first 3 calls per day free.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "local_time_and_working_days"
  }
}

Input Schema

NameRequiredDescriptionDefault
atNoOptional ISO date-time to convert instead of now, e.g. 2026-12-01T15:00:00Z
latNoLatitude. Use with lng.
lngNoLongitude. Use with lat.
codeNoInstead of lat/lng: Plus Code, DIGIPIN or 6-digit Indian PIN
paymentNoOptional x402 payment (base64 X-PAYMENT header value). Not needed while the free daily sample lasts.
end_dateNoOptional YYYY-MM-DD: count working days from start_date to end_date
open_hourNoBusiness opening hour (default 9)
close_hourNoBusiness closing hour (default 17)
start_dateNoOptional YYYY-MM-DD (default: today local)
add_working_daysNoOptional: add this many working days to start_date

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description does the heavy lifting: it discloses pricing and a free tier ('0.001 USDC per call; first 3 calls per day free'), explains the payment parameter and that it can be omitted, and flags the holiday exclusion. It does not spell out the computational/read-only nature or the shape of results in working-day mode, but the key non-obvious behaviors are surfaced.

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?

One dense but well-ordered paragraph: inputs first, then returned values, then optional modes, then caveats and pricing. Every clause carries information, though the single-sentence-list style packs many features (pricing, free tier, DST, weekend variants) without visual breaks, making it slightly harder to scan than it could be.

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 10-parameter tool with no annotations and no output schema, the description covers the returned fields and the optional calculation modes, and notes the holiday gap. It does not clarify that lat/lng and code are mutually exclusive inputs, but the schema descriptions ('Use with lng', 'Instead of lat/lng') carry that load.

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%, so the schema already defines every parameter including defaults for open_hour/close_hour and start_date. The description adds modest meaning beyond that — enumerating the accepted code formats and framing start_date/end_date/add_working_days as the working-day calculation mode — but not enough to exceed the 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?

The description names a precise resource set — IANA time zone, local date/time, UTC offset, DST status, weekend days, business-hours state and next-open time — plus a working-day arithmetic mode. The accepted inputs (coordinates, Plus Code, DIGIPIN, Indian PIN) are stated up front, and no sibling tool (clean_address, distance_between, reverse_lookup, etc.) covers this ground, so the agent can route unambiguously.

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 cases for the optional modes ('deadlines, delivery estimates, SLAs') and an explicit limitation ('Public holidays are not included'), which tells the agent when results will diverge from expectations. It stops short of naming alternatives or stating when not to call it, so it is clear context rather than full when/when-not 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.