Skip to main content
Glama
IPGeolocation

IP Geolocation MCP Server

Timezone Conversion

convert_timezone
Read-only

Convert time between any two timezones using IANA names, coordinates, airport codes, or city names. Get original and converted times with time differences.

Instructions

Read-only time conversion via GET /v3/timezone/convert. Works on free and paid plans. Cost: 1 credit. Use only when the user provides one source selector and one destination selector; use get_timezone for a single place's current time or metadata.

Source/destination selectors are tz_from/tz_to, location_from/location_to, iata_from/iata_to, icao_from/icao_to, locode_from/locode_to, or lat_from+long_from and lat_to+long_to. time is optional and must be yyyy-MM-dd HH:mm or yyyy-MM-dd HH:mm:ss. Returns original time, converted time, diff_hour, and diff_min.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeNoTime to convert in yyyy-MM-dd HH:mm or yyyy-MM-dd HH:mm:ss format. Defaults to current time.
tz_toNoDestination IANA timezone name (e.g. Asia/Tokyo).
lat_toNoDestination latitude. Use with long_to.
iata_toNoDestination 3-letter IATA airport code.
icao_toNoDestination 4-letter ICAO airport code.
long_toNoDestination longitude. Use with lat_to.
tz_fromNoSource IANA timezone name (e.g. America/New_York).
lat_fromNoSource latitude. Use with long_from.
iata_fromNoSource 3-letter IATA airport code.
icao_fromNoSource 4-letter ICAO airport code.
locode_toNoDestination 5-character UN/LOCODE.
long_fromNoSource longitude. Use with lat_from.
location_toNoDestination city or address string.
locode_fromNoSource 5-character UN/LOCODE.
location_fromNoSource city or address string.
Behavior5/5

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

Beyond the readOnlyHint annotation, it discloses cost (1 credit), plan availability (free and paid), and return fields (original time, converted time, diff_hour, diff_min), fully informing about behavior.

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 brief (5 sentences), front-loads key information (read-only, cost, endpoint), and every sentence serves a purpose without wasted words.

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?

Despite no output schema, it describes return values. It covers all selector options, time format, pricing, and plan limits, providing complete guidance for tool usage.

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

Parameters5/5

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

With 100% schema description coverage, the description adds value by grouping selectors into source/destination pairs and explaining the required combinations, such as lat_from+long_from, which is not obvious from schema alone.

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?

The description clearly states it is a 'Read-only time conversion' via a specific endpoint, and distinguishes it from sibling tool get_timezone by noting when to use each.

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 says 'Use only when the user provides one source selector and one destination selector' and directs to get_timezone for single place, providing clear decision criteria.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/IPGeolocation/ipgeolocation-io-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server