Skip to main content
Glama

Convert Time Between Timezones

convert_timezone
Read-only

Convert a datetime from one timezone to another using flexible source and target identifiers such as country, city, airport code, or IANA, plus ISO, yyyy-MM-dd HH:mm:ss, or 'now' input.

Instructions

Convert a datetime from one timezone to another. Supports multiple datetime formats and flexible timezone identifiers (country names, codes, city names, airport codes, IANA timezones).

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": {
      "datetime": "<datetime>",
      "fromTimezone": "<fromTimezone>",
      "toTimezone": "<toTimezone>"
    },
    "name": "convert_timezone"
  }
}

Input Schema

NameRequiredDescriptionDefault
datetimeYesDatetime to convert. Use ISO 8601 format (e.g., '2025-12-20T15:30:00'), 'yyyy-MM-dd HH:mm:ss' format, or 'now' for current time.
toTimezoneYesTarget timezone. Can be: country name, country code, city name, airport code, or IANA timezone.
fromTimezoneYesSource timezone. Can be: country name, country code, city name, airport code, or IANA timezone.

Output Schema

NameRequiredDescriptionDefault
dataNo
sourcesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered externally. The description adds that multiple datetime formats and flexible timezone identifiers are accepted, which is useful behavioral context, but it says nothing about edge cases such as invalid identifiers, DST handling, or ambiguity resolution.

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?

Two short sentences, front-loaded with the core action and followed by capability detail. No filler wording and nothing that could be trimmed without losing information.

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 simple three-parameter, read-only conversion tool with a full output schema and 100% schema coverage, the description supplies enough to call it correctly. Only minor niceties like DST or error behavior are absent.

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%, so all three parameters (datetime, fromTimezone, toTimezone) are already documented in the schema. The description's mention of formats and identifier types largely restates what the schema properties say, adding little new meaning; the baseline of 3 is 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 opens with a specific verb and resource: 'Convert a datetime from one timezone to another.' That is unambiguous and an agent can distinguish it from get_timezone_info or get_world_clock by the conversion action. It stops short of explicitly naming a sibling comparison, so it lands at 4 rather than 5.

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?

The use case (timezone conversion) is clearly implied by the purpose statement, but there is no explicit when-to-use or when-not-to-use guidance and no reference to alternatives such as get_timezone_info. An agent can infer the context but is given no routing rules.

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