Skip to main content
Glama

what_time_when

Convert a given local time from one IANA time zone to another to find the corresponding time in the target zone. Provide source zone, target zone, and local time or date.

Instructions

Answer: what time is it in targetZone when it is localTime in sourceZone. Uses local date-fns-tz / Intl only — no external time APIs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoYYYY-MM-DD if localTime is HH:mm only.
localTimeYesHH:mm or YYYY-MM-DDTHH:mm[:ss]
sourceZoneYesZone where localTime applies.
targetZoneYesZone to convert into.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It usefully discloses that the tool uses local date-fns-tz / Intl with no external time APIs, but it omits DST handling, invalid-zone behavior, and what the response looks like.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two short sentences with no wasted words, and the core operation is front-loaded. The implementation note is brief and relevant.

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

Completeness2/5

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

There is no output schema, so the description should explain the return format, but it only implies a time answer. It also does not address DST, ambiguous local times, invalid zones, or sibling-tool selection, leaving material gaps for a timezone conversion tool.

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 input schema already documents all four parameters. The description restates the roles of sourceZone, targetZone, and localTime but adds no syntax or format details beyond the schema.

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 states a specific verb and resource: converting a local time in sourceZone to the corresponding time in targetZone. It is clear, but it does not distinguish this tool from the sibling convert_timezone, which likely has overlapping purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is given on when to use this tool instead of convert_timezone or meeting_overlap. The only contextual clue is that it uses local libraries, but that is not framed as a selection criterion.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.