Skip to main content
Glama

Geonames Get Timezone

geonames_get_timezone
Read-onlyIdempotent

Get timezone information for a latitude/longitude location. Returns timezone ID, GMT offset, DST offset, current local time, sunrise, and sunset. Example: get_timezone(40.7128, -74.0060) for New York.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "lat": 40.7128,
      "lng": -74.006
    },
    "name": "geonames_get_timezone"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesLatitude (e.g., 40.7128)
lngYesLongitude (e.g., -74.0060)
_apiKeyYesGeoNames username

Output Schema

NameRequiredDescriptionDefault
sunsetYesSunset time
sunriseYesSunrise time
latitudeYesLatitude coordinate
longitudeYesLongitude coordinate
dst_offsetYesDaylight saving time offset
gmt_offsetYesCurrent GMT offset in hours
raw_offsetYesRaw offset from GMT
timezone_idYesIANA timezone identifier
country_codeYesISO country code
country_nameYesFull country name
current_timeYesCurrent local time at location

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety and side-effect profile is covered by structured data. The description contributes the return payload summary (timezone ID, GMT/DST offsets, local time, sunrise, sunset), which is genuinely useful, but it says nothing about the required GeoNames username/API key, quotas, or failure behavior for invalid coordinates.

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?

Three short sentences, front-loaded with the purpose and followed by the return fields and an example — no filler. The example slightly duplicates the schema's examples block and uses a shortened tool name, a minor redundancy rather than a readability problem.

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?

For a simple two-coordinate lookup the description plus annotations plus a full-coverage schema and output schema give the agent everything needed to call it correctly and interpret results. The only gap is that the required API-key parameter's operational meaning (GeoNames username) is left entirely to the schema.

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 coverage is 100%, including per-parameter descriptions and an examples block, so the schema already carries the parameter semantics. The description's inline example call merely restates the schema example and adds no new meaning such as ranges, sign conventions, or coordinate precision expectations; baseline 3 applies.

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 opens with a specific verb+resource ("Get timezone information") and names the exact input domain (latitude/longitude location), so the agent knows precisely what the tool produces. It does not differentiate itself from any sibling (e.g., get_nearby), leaving that to the agent's own inference.

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 is only implied: the agent can infer this is the right tool when it has coordinates and wants timezone data, but there is no explicit when-to-use framing, no alternatives, and no prerequisites. Since the tool's domain is narrow and unambiguous, the implied guidance is sufficient to avoid mis-selection, but it adds nothing proactive.

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.