Skip to main content
Glama

Timezone Lookup

timezone_lookup
Read-onlyIdempotent

Look up timezone details for any location using IP address, city, coordinates, or airport code. Get current time, UTC offset, and DST status instantly.

Instructions

Look up timezone information for a location. Accepts one of: IP address, timezone name, city/address, lat/long, IATA code, ICAO code, or UN/LOCODE. At least one input is required — provide IP if location fields are not provided. Returns current time, UTC offset, DST status, and timezone metadata. Airport/LOCODE inputs also return venue details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipNoIPv4 or IPv6 address. Required if none of the other location fields are provided.
tzNoTimezone name (tz database format, e.g. 'America/New_York', 'Europe/London').
locationNoCity name or address (e.g. 'Tokyo, Japan', 'New York, US').
latNoLatitude (-90 to 90). Must be paired with 'long'.
longNoLongitude (-180 to 180). Must be paired with 'lat'.
iata_codeNo3-letter IATA airport code (e.g. 'JFK', 'LHR').
icao_codeNo4-letter ICAO airport code (e.g. 'KJFK', 'EGLL').
lo_codeNo5-character UN/LOCODE for a city (e.g. 'USNYC', 'GBLON').
langNoLanguage for location name fields. Defaults to English.en
Behavior5/5

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

The description adds behavioral details beyond the annotations, specifying the return values (current time, UTC offset, DST status, timezone metadata) and noting that airport/LOCODE inputs return venue details. No contradiction with annotations.

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 concise and well-structured, front-loaded with the purpose. Every sentence adds meaningful information without redundancy.

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?

Given the complexity of 9 optional parameters and no output schema, the description adequately covers input combinations and return values. However, it lacks explicit differentiation from the sibling 'timezone_convert', which could affect selection.

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 description coverage is 100%, so baseline is 3. The description adds marginal value by explaining the relationship between parameters (e.g., 'provide IP if location fields are not provided') and the additional return info for specific input types.

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 clearly states the tool's purpose as looking up timezone information for a location, and lists multiple accepted input types. However, it does not explicitly differentiate from the sibling tool 'timezone_convert', which may lead to confusion.

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 description provides guidance on input requirements (at least one input, IP required if location fields absent) but does not mention when not to use the tool or suggest alternatives. Usage context is implied but not explicit.

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/api-freaks/apifreaks-mcp'

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