Skip to main content
Glama

location_search

Read-onlyIdempotent

Resolve any place name into coordinates and IANA timezone, including historical UTC offset for a birth date. Use this first when a user gives a birth city; if ambiguous, ask which place they mean.

Instructions

Resolve a place name to coordinates and IANA timezone — use this first whenever a user gives a birth city rather than latitude/longitude. NEVER recall coordinates from memory; always resolve them here. CREDIT COST: 1 credit per call. Returns display name, region (state/province), latitude, longitude, and IANA timezone. Pass the birth date as date to also get utcOffsetAtDate, the historically-correct UTC offset for that place on that date (1987 DST rules differ from today's). Post-1970 dates resolve locally and cost no extra credits; a pre-1970 date consults the API's historical correction overlay for the top match (1 extra credit) and returns its provenance — tzRuleSource, tzRuleCitation, tzOverlayVersion. When the result is ambiguous (several places share the name, e.g. "portland"), ASK the user which one they mean rather than assuming the first. Optional bias params (country/region/near) improve ranking; a trailing "City, ST" qualifier in the query is also honored.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoOptional birth/event date as 'YYYY-MM-DD'. When given, each suggestion also carries utcOffsetAtDate / utcOffsetMinutes / isDst — the UTC offset that actually applied at that place on that date, using historical DST rules. Post-1970 is free (local resolution, no API call). Pre-1970, the top match is additionally corrected through the API's historical overlay (1 extra credit) because tzdata models only the zone's reference city before 1970; the remaining suggestions keep their tzdata estimate and are labelled historical_estimate.
nearNoOptional 'lat,lon' proximity hint (e.g. '37.77,-122.42') to bias ranking toward nearby places.
queryYesSearch query for location, e.g. 'Los Angeles' or 'Wakefield, MI'
admin1NoAlias for region (region wins if both supplied).
regionNoOptional admin1 (state/province) qualifier to bias ranking — full name ('Michigan'), ASCII name, or code ('MI'). Boost, not filter.
countryNoOptional ISO 3166-1 alpha-2 country code (e.g. 'US') to bias ranking. Boost, not filter.
Install Server

TDQS

A4.9/5.0
Behavior5/5

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

Even with readOnly/idempotent/non-destructive annotations, the description discloses material behavior annotations cannot: credit cost (1 per call, +1 for pre-1970), the ambiguous-result contract, conditional return fields (utcOffsetAtDate, provenance fields), and the historical DST caveat ('1987 DST rules differ from today's'). 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?

About 170 words but zero filler — purpose, usage rule, cost, return fields, historical behavior, ambiguity protocol, and param hints each get exactly one sentence, in logical order with the most decision-relevant info front-loaded.

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?

No output schema exists, so the description carries the full burden of return-value disclosure and meets it: return fields, conditional fields, provenance metadata, and the ambiguity outcome are all spelled out. For a 6-param tool with 1 required param and no enums, nothing an agent needs to call it correctly — input, costs, or output — is missing.

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 schema already documents all six parameters and the pre/post-1970 cost split. The description adds value beyond it by explaining that country/region/near act as ranking biases, that a trailing 'City, ST' qualifier in the query is honored, and by reinforcing the date parameter's cost implications. Above the high-coverage baseline because of the extra query-format and ranking semantics.

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 opens with a specific verb and resource — 'Resolve a place name to coordinates and IANA timezone' — and immediately scopes it against the alternative: 'use this first whenever a user gives a birth city rather than latitude/longitude.' This clearly separates it from sibling tools like timezone_resolve that would operate on already-known coordinates.

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?

States explicitly when to use ('use this first whenever a user gives a birth city'), when not to ('NEVER recall coordinates from memory; always resolve them here'), and how to handle ambiguity ('ASK the user which one they mean rather than assuming the first'). The only unstated alternative is the sibling timezone_resolve, but the 'rather than latitude/longitude' phrasing makes the boundary unambiguous.

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

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/openephemeris/openephemeris-MCP'

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