Skip to main content
Glama

geocoding_lookup

Read-only

Returns typed Nominatim JSONv2 places for comma-separated OSM ids such as W34633854,N123,R456. osm_ids: Required comma-separated OSM object ids, each prefixed N (node), W (way), or R (relation), e.g. W34633854,N123,R456. addressdetails: Include a structured address breakdown in results, default true. Use geocoding_reverse to retrieve reverse geocode coordinates.

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": {
      "osm_ids": "<osm_ids>"
    },
    "name": "geocoding_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
osm_idsYesRequired comma-separated OSM object ids, each prefixed N (node), W (way), or R (relation), e.g. W34633854,N123,R456.
extratagsNoInclude additional OSM tags (extratags) in results, default false.
namedetailsNoInclude alternative name details (namedetails) in results, default false.
addressdetailsNoInclude a structured address breakdown in results, default true.
accept_languageNoPreferred result language as an Accept-Language tag, e.g. en-US.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description contributes useful defaults for the result-shaping flags (addressdetails default true), but omits behavioral facts the annotations cannot carry — notably Nominatim's strict rate-limit/politeness requirements and what happens when an OSM id is invalid or missing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences with the id format front-loaded and no filler. The one flaw is redundancy: the full osm_ids definition is repeated in the prose even though it appears identically in the schema.

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?

For a five-parameter read-only lookup with an output schema and full annotation coverage, the description supplies what is needed to construct a valid call. Only minor gaps remain: rate-limit expectations and failure behavior for unknown ids.

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 the schema already documents every parameter including defaults for extratags, namedetails, addressdetails and accept_language. The prose restates osm_ids and addressdetails almost verbatim, adding no syntax or semantic detail beyond the schema, so the baseline 3 applies.

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 — 'Returns typed Nominatim JSONv2 places for comma-separated OSM ids' — and shows the exact id format. It also names a sibling (geocoding_reverse) so an agent can distinguish this from the reverse-geocoding tool without opening either schema.

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

Usage Guidelines3/5

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

The final sentence points to geocoding_reverse as the alternative for reverse geocoding, which is useful routing. However, it never states the positive selection condition (e.g. 'use when you already have OSM ids from a previous search'), and no guidance is given relative to the more obvious sibling geocoding_search.

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.