Skip to main content
Glama

Convert time between IANA zones

convert_timezone
Read-onlyIdempotent

Convert a local date and time between IANA time zones with exact UTC offsets and DST handling, so you can schedule across regions correctly.

Instructions

Convert a local date and time from one IANA timezone to another with exact UTC offsets and DST handling.

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_time_zone": "<from_time_zone>",
      "date_time": "<date_time>",
      "to_time_zone": "<to_time_zone>"
    },
    "name": "convert_timezone"
  }
}

Input Schema

NameRequiredDescriptionDefault
date_timeYesLocal date/time in "YYYY-MM-DD HH:MM:SS" or "YYYY-MM-DDTHH:MM:SS" format.
to_time_zoneYesTarget IANA timezone (e.g. "Asia/Tokyo").
from_time_zoneYesSource IANA timezone (e.g. "America/New_York").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is fully covered without the description. The description adds genuine behavioral context by promising 'exact UTC offsets and DST handling', but it leaves real gaps: it doesn't say how ambiguous or nonexistent local times during DST transitions are resolved, nor what shape the converted result takes.

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?

A single sentence with the action, source, target and the two most important behavioral guarantees (exact offsets, DST handling) front-loaded. Every clause earns its place and nothing is padded.

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

Completeness3/5

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

For a three-required-parameter tool with full schema coverage and rich annotations, the description covers the essentials. However, with no output schema, an agent still cannot tell what the return value looks like (a string? an object with offset fields?), and DST edge-case behavior is unaddressed.

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 description coverage is 100% — all three required parameters carry their own descriptions including format and IANA examples — so the schema does the heavy lifting. The description adds no format syntax, offset notation, or validation rules beyond what the schema already states, making the baseline 3 appropriate.

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 names a specific verb and resource pair ('Convert a local date and time') plus the scope ('from one IANA timezone to another'), which is clearly distinct from siblings like get_current_time_in_zone or get_timezone_dst_schedule. It stops short of 5 because it never explicitly contrasts itself with those siblings — the differentiation is inferred entirely from the wording.

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?

Usage is only implied: the phrase 'local date and time' signals that this tool is for converting a user-supplied timestamp rather than fetching the current time, which quietly separates it from get_current_time_in_zone. There is no explicit when-to-use/when-not-to-use statement and no mention of the alternative tools for schedules or meeting windows.

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