Skip to main content
Glama

Geocode and reverse geocode

geocode
Read-only

Convert addresses or place names into coordinates, or coordinates into formatted street addresses worldwide. Returns city, region, postcode and country for mapping and location lookup.

Instructions

Turn an address or place name into coordinates, or coordinates into a street address, anywhere in the world (OpenStreetMap). Returns the formatted address, city, region, postcode and country. Costs $0.001 per call.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "geocode"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoLatitude, for reverse geocoding.
lonNoLongitude, for reverse geocoding.
limitNoMatches to return for a forward search. Default 1.
queryNoAddress or place, e.g. "1600 Pennsylvania Ave, Washington". Use this or lat/lon.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds real value beyond that with the data source, the returned fields, and an explicit per-call price ($0.001) — cost is a genuinely useful behavioral trait that annotations cannot express. It stops short of describing empty-result behavior or rate limits, so it does not reach a 4.

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?

Two compact sentences, front-loaded with the core capability, then the return fields, then the cost. No filler, and the pricing detail is placed last where it belongs.

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?

No output schema exists, so the description correctly compensates by naming the returned fields (formatted address, city, region, postcode, country) and disclosing cost. It does not address what happens with zero matches or whether lat and lon must be supplied together, which keeps it short of 5 for a tool with 0 required params.

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%, so the schema already documents lat, lon, limit and query in detail. The description adds the mapping of the two modes to the parameter groups but says nothing about limit or the result-count tradeoff. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a specific bidirectional verb+resource: address/place name to coordinates and coordinates to street address. The parenthetical source (OpenStreetMap) and scope ('anywhere in the world') let an agent tell instantly what this tool does and does not do.

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?

The description clearly establishes the two operating modes (forward vs reverse) and the schema reinforces the mutually exclusive choice ('Use this or lat/lon'). There are no sibling geocoding tools to route away from, and no exclusions or prerequisites are stated, so this is clear context without explicit when-not guidance.

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