Skip to main content
Glama

Nominatim OSM Geocoding MCP

Look up OpenStreetMap objects by OSM ID

lookup_osm_object
Read-onlyIdempotent

Fetch coordinates, address details, and bounding boxes for one or more OpenStreetMap nodes (N), ways (W), or relations (R).

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": "lookup_osm_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
osm_idsYesComma-separated typed OSM IDs (e.g. "W34633854" or "R146656,W34633854").

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 readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds genuine value by disclosing the return payload and that multiple mixed N/W/R IDs can be fetched in one call. It says nothing about behavior for invalid or missing IDs (partial results? errors?) or any rate limits, which is the remaining gap.

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?

A single front-loaded sentence with the resource and the three return categories stated up front and no filler. Nothing could be cut without losing information.

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 one-parameter read tool with no output schema, the description covers what is fetched and the ID type system. Slightly incomplete in that multi-ID result ordering/aggregation and error behavior for unresolved IDs are unstated.

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% and the parameter already shows an example, but the description adds meaning the schema does not: it decodes the N/W/R type prefixes into nodes, ways and relations. That directly explains the ID format an agent must construct, which is real added semantics beyond the schema.

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 (Fetch) and resource (OpenStreetMap nodes/ways/relations) plus the payload returned: coordinates, address details, bounding boxes. The OSM-ID input basis implicitly separates it from geocode_place and reverse_geocode, but the description never names that distinction explicitly.

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?

Usage is only implied: the agent must infer 'use this when you already have a typed OSM ID' from the N/W/R notation. There is no stated when-not, no mention of the sibling tools as alternatives, and no guidance on when to prefer geocoding by name instead.

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.