Skip to main content
Glama

MAD Synapse · World

Time zones + date math

time_convert
Read-onlyIdempotent

Current time in any time zones, convert a time between zones (DST-correct), and date arithmetic: add/subtract durations, days between dates, weekday, ISO week, Unix time. Computed locally from the IANA time-zone database — no rate limits, exact. Zones are IANA names (America/New_York, Asia/Tokyo, UTC). Price: free. Errors: returns isError with a message for invalid input or an upstream failure (not charged).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addNoe.g. "+3d 4h", "-90m", "+2w"
timeNoISO time, "now", or a Unix timestamp; naive times are read in from_tz
to_tzNoIANA time zones to convert into. 0-20 items. Default ["UTC"].
untilNosecond ISO date: returns the difference
from_tzNoIANA time zone the input time is in, e.g. "America/New_York". Default "UTC".UTC

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
utcNo
unixNo
addedNo
iso_weekNo
convertedNo
input_utcNo
source_zoneNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, it discloses that computation happens locally against the IANA database, that there are no rate limits, that results are exact, that the tool is free, and that failures surface as isError with a message and no charge. That is genuinely useful operational context; only the mild tension between 'computed locally' and openWorldHint=true keeps it from a 5.

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 paragraph, front-loaded with the three capability groups before operational details. Price and error notes are compact, though the trailing cost/failure sentence is slightly less essential than the leading capability enumeration.

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?

An output schema exists, so return values need not be described, and the description covers the multi-mode nature, zone format, and error behavior for a 5-param, zero-required tool. The one residual gap is what a bare call with no arguments returns, which is only loosely implied by 'Current time in any time zones'.

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 documents every parameter including defaults, maxItems, and the 'naive times are read in from_tz' rule. The description adds the IANA zone-name convention and examples, but no deeper interaction semantics (e.g., how add combines with until). Baseline 3 applies when the schema does the heavy lifting.

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 specific verbs and resources across all modes: current time in zones, zone-to-zone conversion (DST-correct), and date arithmetic (add/subtract durations, days between, weekday, ISO week, Unix time). It is clearly distinguishable from the similarly-named sibling unit_convert because it is scoped to time zones and calendar math.

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?

It enumerates the capabilities, which implies when the tool is applicable, but never states when NOT to use it or names an alternative (e.g., unit_convert for non-time unit conversion, sun_moon for celestial events). Usage is inferable rather than prescribed, which fits a 3.

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