Skip to main content
Glama

reverse_geocode

Read-only

Benennt, was an einer KOORDINATE liegt — die Orte, in denen sie liegt („was liegt bei <lat,lon>"), mit level eine bestimmte Ebene davon, mit level='street' die nächste Adresse oder Straße (der Lookup für eine GPS-Startposition). Abgrenzung: den Weg zurück (Name → Koordinate und OSM-Ids) geht search_place, die fahrbare Halte-Id liefert die Ortsauflösung, und nearby listet auf, was UM eine Koordinate liegt, statt den Punkt selbst zu benennen. Pflicht: lat und lon — geschrieben auch latitude/longitude, so wie nearby die Koordinate nimmt; je Aufruf nur eine der beiden Schreibweisen. Optional: radius_m (Reichweite der nächsten Adresse in METERN, Default 500, höchstens 5000; ein Ort, IN dem die Koordinate liegt, hat Abstand 0 und ist immer dabei), limit (Höchstzahl Treffer, Default 10, Maximum 50) und level — 'place' (Default: alle Orte an der Koordinate, kleinster zuerst), 'city' (die Stadt/Gemeinde), 'suburb' (der Stadt- oder Ortsteil) oder 'street'. Kennt die Karte die gewünschte Ebene hier nicht, antwortet die nächst-gröbere, erkennbar am place_type; ein unbekannter Wert wirkt wie 'place'. Anleitung: get_usage_guide mit tool='reverse_geocode'. Anti-Fab: nur die zurückgegebenen Orts- und Straßen-Namen verwenden, einschließlich der Hausnummer aus der Karte — nie eine erfinden.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "lat": "<lat>",
      "lon": "<lon>"
    },
    "name": "reverse_geocode"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesLatitude of the coordinate to reverse-geocode. Also accepted spelled `latitude`, the way the vicinity search takes it — one of the two spellings per call.
lonYesLongitude of the coordinate to reverse-geocode. Also accepted spelled `longitude`, the way the vicinity search takes it — one of the two spellings per call.
levelNoOptional resolution level. `"place"` (default) answers with the places the coordinate lies in, the smallest first (part of a town → town → county → state); `"city"` with the town/municipality it lies in; `"suburb"` with the part of the town; `"street"` with the nearest ADDRESS or STREET, with its house number where the map knows one there — the level needed to label a real GPS start position. Where the map has no place at the requested level, the next coarser one answers, recognisable by its `place_type`. Any other / omitted value behaves as `"place"`.
limitNoOptional maximum number of hits, the smallest place first. Default 10, upper bound 50; a larger value is served as 50 and `0` as the default. Applies to every level and with or without `radius_m`.
formatNoAnswer serialisation: `"toon"` (default) or `"json"` — the detail is in `get_usage_guide`. **An agent leaves this out.**
radius_mNoOptional radius in METRES: how far the nearest address may lie, for the `street` level and the part of a town read off it. 500 when omitted, at most 5000. A place the coordinate LIES INSIDE is at distance 0 and is answered whatever the radius.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / level / description
      Previous value: -"Optional resolution level. `\"place\"` (default) answers with the\ncoordinate's whole admin hierarchy, finest first (suburb → town → county\n→ state → country); `\"city\"` with the town/municipality it lies in;\n`\"suburb\"` with the suburb; `\"street\"` with the nearest STREET/ADDRESS\n(street name + nearest house number, e.g. `\"Münzstraße 3-4\"`) — the level\nneeded to label a real GPS start position. Where the data has no place at\nthe requested level, the next coarser one answers, recognisable by its\n`place_type`. Any other / omitted value behaves as `\"place\"`."New value: +"Optional resolution level. `\"place\"` (default) answers with the places\nthe coordinate lies in, the smallest first (part of a town → town →\ncounty → state); `\"city\"` with the town/municipality it lies in;\n`\"suburb\"` with the part of the town; `\"street\"` with the nearest\nADDRESS or STREET, with its house number where the map knows one there —\nthe level needed to label a real GPS start position. Where the map has no\nplace at the requested level, the next coarser one answers, recognisable\nby its `place_type`. Any other / omitted value behaves as `\"place\"`."
    • changedInput schema / properties / limit / description
      Previous value: -"Optional maximum number of hits, nearest first. Default 10, upper bound\n50; a larger value is served as 50 and `0` as the default. Applies to\nevery level and with or without `radius_m`."New value: +"Optional maximum number of hits, the smallest place first. Default 10,\nupper bound 50; a larger value is served as 50 and `0` as the default.\nApplies to every level and with or without `radius_m`."
    • changedInput schema / properties / radius_m / description
      Previous value: -"Optional radius in METRES. When set, returns the places inside the\ncircle, sorted nearest-first and capped to `limit`. A place\nthe coordinate LIES INSIDE is at distance 0 and is therefore in every\nradius, however tight. When omitted, returns the `limit` nearest places."New value: +"Optional radius in METRES: how far the nearest address may lie, for the\n`street` level and the part of a town read off it. 500 when omitted, at most\n5000. A place the coordinate LIES INSIDE is at distance 0 and is answered\nwhatever the radius."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare read-only, open-world, non-destructive, so the safety bar is low; the description adds genuinely non-obvious behavior: coarser-level fallback identifiable via `place_type`, unknown `level` degrading to `'place'`, radius clamping at 5000, and the rule that a containing place is at distance 0 and always returned. What it does not describe is response shape/ordering beyond "smallest first", which for a geocoder would have been worth one clause.

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?

Purpose is front-loaded and the bolded section labels (Abgrenzung, Pflicht, Optional, Anleitung, Anti-Fab) give good scannability, but the parameter block re-states schema content nearly field for field, inflating the description well past what the annotations and schema leave unsaid.

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?

For a read-only lookup with no output schema, the description covers the fallback semantics, the distance-0 rule, the pointer to the detailed usage guide, and an anti-hallucination instruction for house numbers — the remaining unknowns (exact response fields) are covered by the named `place_type` marker and the usage guide reference.

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 baseline is 3; the description still earns credit by framing the parameters as a decision (mandatory coordinate spelling, optional radius/limit/level) and by flagging `format` as something an agent should omit. Most numeric defaults and bounds are, however, repeated verbatim from the schema rather than adding meaning.

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 opening line states a specific verb and resource ("names what lies at a COORDINATE") and immediately delimits scope by contrasting the reverse direction with `search_place` and the surrounding-point listing with `nearby`. An agent can pick this tool over its siblings without opening any schema.

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?

An explicit "Abgrenzung" paragraph names each alternative (search_place for name→coordinate, resolve_location for the stop id, nearby for what lies around a point) and states the selection condition. It additionally names the concrete use case for `level='street'` (labelling a GPS start position), which is exactly the guidance an agent needs.

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