Skip to main content
Glama

Convert Timezone

convert_time

Converts a time from a source timezone to a target timezone.

Input Schema

NameRequiredDescriptionDefault
timeYesThe time to convert. e.g., "2025-03-23 12:30:00".
sourceTimezoneYesThe source IANA timezone name (e.g., "Asia/Shanghai").
targetTimezoneYesThe target IANA timezone name (e.g., "Europe/London").

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / sourceTimezone / description
      Previous value: -"Source IANA timezone name (e.g., \"Asia/Shanghai\")"New value: +"The source IANA timezone name (e.g., \"Asia/Shanghai\")."
    • changedInput schema / properties / targetTimezone / description
      Previous value: -"Target IANA timezone name (e.g., \"Europe/London\")"New value: +"The target IANA timezone name (e.g., \"Europe/London\")."
    • changedInput schema / properties / time / description
      Previous value: -"The time to convert (e.g., \"2025-03-23 12:30:00\")"New value: +"The time to convert. e.g., \"2025-03-23 12:30:00\"."
    • changedInput schema / required
      Previous value: -[
      -  "time",
      -  "sourceTimezone",
      -  "targetTimezone"
      -]New value: +[
      +  "sourceTimezone",
      +  "targetTimezone",
      +  "time"
      +]
    • changedOutput schema / (root)
      Previous value: -{
      -  "$schema": "http://json-schema.org/draft-07/schema#",
      -  "additionalProperties": false,
      -  "properties": {
      -    "convertedTime": {
      -      "type": "string"
      -    },
      -    "hourDifference": {
      -      "type": "number"
      -    }
      -  },
      -  "required": [
      -    "convertedTime",
      -    "hourDifference"
      -  ],
      -  "type": "object"
      -}New value: +null
  2. Changed7 schema fields changed
    • addedInput schema / $schema
      Added value: +"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / sourceTimezone / description
      Previous value: -"The source IANA timezone name (e.g., \"Asia/Shanghai\")."New value: +"Source IANA timezone name (e.g., \"Asia/Shanghai\")"
    • changedInput schema / properties / targetTimezone / description
      Previous value: -"The target IANA timezone name (e.g., \"Europe/London\")."New value: +"Target IANA timezone name (e.g., \"Europe/London\")"
    • changedInput schema / properties / time / description
      Previous value: -"The time to convert. e.g., \"2025-03-23 12:30:00\"."New value: +"The time to convert (e.g., \"2025-03-23 12:30:00\")"
    • changedInput schema / required
      Previous value: -[
      -  "sourceTimezone",
      -  "targetTimezone",
      -  "time"
      -]New value: +[
      +  "time",
      +  "sourceTimezone",
      +  "targetTimezone"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "convertedTime": {
      +      "type": "string"
      +    },
      +    "hourDifference": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "convertedTime",
      +    "hourDifference"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

B3.1/5.0
Behavior2/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 of behavioral disclosure, and it discloses almost nothing beyond the core action. It says nothing about DST handling, whether the conversion is purely computational, what format the result takes, or how invalid timezone names are handled.

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 zero filler, front-loading both the action and the two timezone roles. Nothing is padded or repeated from the title.

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 simple three-parameter deterministic utility with full schema coverage, the description is adequate but skips the one gap the schema cannot fill: there is no output schema, so the description should say what the converted result looks like. It also omits any DST or edge-case behavior.

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 (time, sourceTimezone, targetTimezone) are already documented with examples in the schema itself. The description adds no parameter meaning beyond that, which is the expected baseline 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb (converts) and resource (a time) plus the operative dimensions (source timezone to target timezone), so the purpose is unambiguous. It does not explicitly contrast itself with siblings like current_time or relative_time, but the name and description make the distinction obvious anyway.

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?

There is no guidance on when to use this tool versus the many sibling time tools, no mention of prerequisites, and no exclusions. An agent must infer that this is the right pick whenever an explicit timezone-to-timezone conversion is needed, with nothing to confirm that inference.

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.