Skip to main content
Glama

Find a place by name

geocode_search
Read-onlyIdempotent

Finds places, addresses and points of interest by name (geocoding). Partial text works, as for autocomplete. Each result has the name, the address, lat and lon, a bounding box (south, west, north, east), the OpenStreetMap element (osm), and for ways and relations an overpass_area_id to use in overpass_query as area(id:N). Languages: en, de, fr. One call counts as one geocoding request.

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": {
      "query": "<query>"
    },
    "name": "geocode_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoonly places of this kind; settlement is a city, town, village or district
nearNoprefer results near this point, such as a place named in the conversation
limitNomost results
queryYeswhat to find, such as "Bundesplatz 3, Bern", "Zermatt" or "Louvre"
withinNo
languageNolanguage of the names and addresses; the local names when not set
country_codesNoonly results in these countries, ISO 3166-1 alpha-2 codes such as CH or DE

Output Schema

NameRequiredDescriptionDefault
resultsYes
attributionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "attribution": {
      +      "type": "string"
      +    },
      +    "results": {
      +      "items": {
      +        "properties": {
      +          "address": {
      +            "additionalProperties": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          "addresstype": {
      +            "type": "string"
      +          },
      +          "bbox": {
      +            "properties": {
      +              "east": {
      +                "type": "number"
      +              },
      +              "north": {
      +                "type": "number"
      +              },
      +              "south": {
      +                "type": "number"
      +              },
      +              "west": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "south",
      +              "west",
      +              "north",
      +              "east"
      +            ],
      +            "type": "object"
      +          },
      +          "category": {
      +            "type": "string"
      +          },
      +          "display_name": {
      +            "type": "string"
      +          },
      +          "lat": {
      +            "type": "number"
      +          },
      +          "lon": {
      +            "type": "number"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "osm": {
      +            "description": "the OpenStreetMap element, such as relation/1682378",
      +            "type": "string"
      +          },
      +          "overpass_area_id": {
      +            "description": "for area(id:N) in overpass_query; ways and relations only",
      +            "type": "integer"
      +          },
      +          "type": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "display_name",
      +          "lat",
      +          "lon",
      +          "osm"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "results"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / near / description
      Previous value: -"prefer results near this point"New value: +"prefer results near this point, such as a place named in the conversation"
  3. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent and open-world behavior, and the description adds real value on top: it names the returned fields (name, address, lat/lon, bounding box, osm element), explains the overpass_area_id handoff to overpass_query as area(id:N), and discloses that 'One call counts as one geocoding request' – a quota/cost signal not present in annotations.

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 dense paragraph written front-to-back: purpose first, then query-matching behavior, then result shape, then the cross-tool handoff, then cost. No filler sentences, and each clause carries information an agent needs.

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 7-parameter tool with nested objects, an output schema and full annotations, the description covers the workflow angle (getting an area id and using it in overpass_query) and the cost model. It is nearly complete; only explicit routing against sibling tools is missing.

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 86%, so parameters are already well documented, including kind, near, limit, within, language and country_codes. The description only restates the language options (en, de, fr) and adds no syntax, format or interaction detail beyond what the schema provides, so the baseline 3 applies.

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?

The description opens with a specific verb and resource: 'Finds places, addresses and points of interest by name (geocoding).' The phrase 'by name' implicitly separates it from geocode_reverse, but no sibling is actually named, so the differentiation is inferential rather than explicit.

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?

'Partial text works, as for autocomplete' gives a concrete hint about how to phrase the query, which is genuine usage guidance. However, there is no statement of when to prefer overpass_query or geocode_reverse instead, and no prerequisites or exclusion conditions are given.

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