Skip to main content
Glama

geocode

Convert addresses or place names to coordinates (forward) or coordinates to street addresses (reverse) using OpenStreetMap Nominatim. Supports worldwide location enrichment and validation.

Instructions

Forward and reverse geocoding via OpenStreetMap Nominatim. Forward: convert an address or place name to latitude/longitude, bounding box, and OSM metadata. Reverse: convert lat/lon to a structured street address. Supports any location worldwide. Useful for location enrichment, address validation, coordinate lookup, and building location-aware agent flows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNoAddress or place name to geocode (forward lookup). Example: '1600 Pennsylvania Ave Washington DC' or 'Eiffel Tower Paris'.
latNoLatitude for reverse geocoding. Requires 'lon' also.
lonNoLongitude for reverse geocoding. Requires 'lat' also.
limitNoMax results for forward geocode (default 3, max 10). Ignored for reverse.
Behavior2/5

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

No annotations are provided, so the description must carry the full burden. It mentions using OpenStreetMap Nominatim but does not disclose rate limits, accuracy, or other behavioral traits. Description is too sparse on behavioral context.

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?

Very concise; each sentence adds value. Front-loaded with core purpose, no fluff. Exemplary structure.

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?

Covers core functionality and use cases, but lacks detail on return format (e.g., fields returned). Since no output schema, more specificity would improve completeness.

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 baseline is 3. The description adds value by providing examples for the query parameter and clarifying that limit is ignored for reverse. This goes beyond schema descriptions.

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?

Clearly states forward and reverse geocoding, specifies use cases, and distinguishes between the two modes. Examples and worldwide scope add clarity.

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

Usage Guidelines4/5

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

Lists relevant use cases like location enrichment and address validation, but does not explicitly state when not to use or mention alternatives. Still provides clear context.

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/thebrierfox/the-stall'

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