Skip to main content
Glama

convert_time

Read-onlyIdempotent

utilpeek: convert one instant between time zones. For business days use count_or_add_business_days. Uses bundled IANA tzdata; flags wall times in DST gaps or folds. An unknown zone, malformed time or time with both an offset and from_tz is a 422 (not charged). Typically under 0.1 s. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. Docs: https://tanod.dev/learn/timezone-converter-api.html

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": {
      "to_tz": "<to_tz>"
    },
    "name": "convert_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeNoISO 8601 date-time or Unix seconds (default now).
to_tzYes1-20 IANA time zones to convert to.
from_tzNoIANA zone of a time WITHOUT an offset (default UTC).

Output Schema

NameRequiredDescriptionDefault
utcNo
unixNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
inputNo
sourceNo
conversionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • removedInput schema / properties / from_tz / default
      Removed value: -null
    • changedInput schema / properties / from_tz / description
      Previous value: -"Optional IANA zone of a time WITHOUT an offset (default UTC)."New value: +"IANA zone of a time WITHOUT an offset (default UTC)."
    • removedInput schema / properties / from_tz / title
      Removed value: -"From Tz"
    • removedInput schema / properties / time / default
      Removed value: -null
    • changedInput schema / properties / time / description
      Previous value: -"Optional ISO 8601 date-time or Unix seconds (default now)."New value: +"ISO 8601 date-time or Unix seconds (default now)."
    • removedInput schema / properties / time / title
      Removed value: -"Time"
    • removedInput schema / properties / to_tz / title
      Removed value: -"To Tz"
    • removedInput schema / title
      Removed value: -"convert_timeArguments"
    • removedOutput schema / properties / conversions / items
      Removed value: -{
      -  "properties": {
      -    "abbreviation": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "date": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "dst": {
      -      "type": [
      -        "boolean",
      -        "null"
      -      ]
      -    },
      -    "time": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "timezone": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "utc_offset": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "utc_offset_seconds": {
      -      "type": [
      -        "integer",
      -        "null"
      -      ]
      -    },
      -    "weekday": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "type": [
      -    "object",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / input / properties
      Removed value: -{
      -  "abbreviation": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "ambiguous": {
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "date": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "dst": {
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "nonexistent": {
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "time": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "timezone": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "utc_offset": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "utc_offset_seconds": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "weekday": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / source / properties
      Removed value: -{
      -  "library": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "license": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "tzdata": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "url": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  }
      -}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "conversions": {
      +      "items": {
      +        "properties": {
      +          "abbreviation": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "dst": {
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "time": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "timezone": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "utc_offset": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "utc_offset_seconds": {
      +            "type": [
      +              "integer",
      +              "null"
      +            ]
      +          },
      +          "weekday": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    },
      +    "error": {
      +      "description": "Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object."
      +    },
      +    "input": {
      +      "properties": {
      +        "abbreviation": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "ambiguous": {
      +          "type": [
      +            "boolean",
      +            "null"
      +          ]
      +        },
      +        "date": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "dst": {
      +          "type": [
      +            "boolean",
      +            "null"
      +          ]
      +        },
      +        "nonexistent": {
      +          "type": [
      +            "boolean",
      +            "null"
      +          ]
      +        },
      +        "time": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "timezone": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "utc_offset": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "utc_offset_seconds": {
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "weekday": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "properties": {
      +        "library": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "license": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "tzdata": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "url": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "unix": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "utc": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds context beyond them: bundled IANA tzdata, DST gap and fold flagging, 422 semantics with "not charged," typical latency under 0.1 s, price, and the free-tier limit of 10 calls per IP per UTC day. That is unusually complete behavioral disclosure for a pricing-metered tool.

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?

Dense and front-loaded: purpose first, sibling routing second, then constraints, then cost/latency. Every clause carries information, though the pricing, free-tier, and docs-URL tail is operational overhead rather than call-shaping content and slightly dilutes the paragraph.

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

Completeness5/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-shape explanation is not needed, and the description covers the remaining unknowns an agent faces: cost, rate limits, latency, and the failure modes that produce a 422. Nothing material is missing for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine cross-parameter meaning: a time with both an offset and from_tz is invalid, which clarifies how `time` and `from_tz` interact in a way the schema cannot express. The DST gap/fold flagging also hints at wall-time interpretation limits, though it does not say how the result surfaces those flags.

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?

States a specific verb and resource ("convert one instant between time zones") and immediately scopes it against the nearest sibling by name ("For business days use count_or_add_business_days"). An agent can distinguish it from convert_units, get_block_at_time, and the business-day tool without opening any schema.

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

Usage Guidelines5/5

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

Explicitly routes the business-day case to a named alternative, and the error clause tells the agent which inputs will be rejected (unknown zone, malformed time, offset plus from_tz). Together these give real when-to-use and when-not-to-use guidance rather than implied usage.

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