Skip to main content
Glama

Nearest city to a latitude/longitude

reverse_geocode
Read-only

Nearest city to a latitude/longitude. Reverse geocode coordinates. Fast city-level geocoding for 171,000 places worldwide: reverse geocoding (coordinates to nearest town, region, country and time zone), place search by name and nearby places within a radius. No rate-limited upstream.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
latYesLatitude (e.g. 40.4168)
lonYesLongitude (e.g. -3.7038)
minPopulationNoOnly places with at least this population (e.g. 0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, and destructiveHint=false. Beyond those, the description adds genuinely useful behavioral context: 'Fast city-level geocoding for 171,000 places worldwide' and 'No rate-limited upstream,' which tells the agent about latency and throttling expectations. It also implies the return content (town, region, country, time zone), partially compensating for the missing output schema.

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 first two sentences restate the title and name ('Nearest city to a latitude/longitude' / 'Reverse geocode coordinates'), which is redundant front-loading. The middle sentence then lists capabilities that arguably belong to other tools, diluting the message rather than tightening it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 wisely hints at returned fields (nearest town, region, country, time zone), which is helpful. But it omits parameter behavior details and conflates this tool with place-search functionality, leaving an agent uncertain about the exact return shape and scope.

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 description coverage is 100%, so lat, lon, and minPopulation are already documented with examples. The description adds no syntax or format detail beyond the schema, so the baseline of 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?

States a specific verb+resource: converting coordinates (lat/lon) to the nearest city. However, it then muddies its own scope by claiming 'place search by name and nearby places within a radius,' which overlaps sibling capabilities like city_search. The core operation is clear but the added capabilities blur boundaries.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit when-to-use or when-not-to-use guidance, and no alternatives are named despite obvious candidates (city_search for name lookups, timezone_by_coordinates for time zone by location). Usage must be inferred entirely from the tool name and the stated inputs.

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