Skip to main content
Glama

Timezone

get_timezone
Read-onlyIdempotent

IANA timezone of a point (timezone-boundary-builder polygons: land and territorial waters) with the current UTC offset, DST flag and local time; match is none on the open sea. dst is true when the zone's clocks are advanced at that instant: its offset is the larger of the two it shows in that year (1 January and 1 July); a zone with one offset all year is never DST (Morocco: +01:00 and the +00:00 of Ramadan are both dst: false). When zones share an edge or overlap, ambiguous is true, timezone and the other fields are the first zone by name and candidates lists all of them (each with its own offset, dst and local time). 503 NOT_READY on a dataset built before the feature. Needs an API key: the MCP client sends Authorization: Bearer <key>.

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": {
      "lat": "<lat>",
      "lon": "<lon>"
    },
    "name": "get_timezone"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesLatitude in decimal degrees, from -90 to 90.
lonYesLongitude in decimal degrees, from -180 to 180.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / lat / description
      Added value: +"Latitude in decimal degrees, from -90 to 90."
    • addedInput schema / properties / lon / description
      Added value: +"Longitude in decimal degrees, from -180 to 180."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish readOnly/idempotent/openWorld=false, so the safety profile is covered, and the description adds substantial behavior beyond it: open-sea returns 'none', overlap cases set `ambiguous` with a name-sorted first zone plus a `candidates` list, and old datasets return 503 NOT_READY. It also discloses the exact DST derivation rule (larger of the 1 January and 1 July offsets), which is real behavioral information not in the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The main purpose and return fields are front-loaded, but the DST paragraph is dense, and the Morocco example (+01:00 vs Ramadan's +00:00) is longer than needed to convey the rule. It is informative rather than padded, yet an agent must read past a lot of DST minutiae to reach the ambiguity and error-handling clauses.

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?

With no output schema, the description carries the full return-value burden and does so: timezone, offset, dst, local time, ambiguous, candidates, and 'none' on open sea. It also covers the error path (503 NOT_READY) and the auth requirement (Bearer key), leaving nothing an agent needs to call it correctly unstated.

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 meaning the schema cannot: coordinates over open sea yield 'none' rather than an error, which tells the agent how to interpret edge-case lat/lon inputs. It does not add format or precision guidance beyond the schema, so it stays below 5.

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?

Names a specific resource and outputs: the IANA timezone of a point plus current UTC offset, DST flag and local time, and states the polygonal source. The point-based scope cleanly separates it from siblings like get_country or get_place_boundary, which return areas rather than a point's zone.

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?

Usage context is implied by 'of a point' and by the note that the match is none on open sea, so an agent knows the input must be a land/water coordinate. However, it never explicitly says when to prefer this over siblings such as get_country (which could also hint at a zone) or what conditions make the call inappropriate.

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