Skip to main content
Glama

Maps Geocode

maps_geocode
Read-onlyIdempotent

"Geocode [address] via Google Maps" / "Google Maps coordinates of [place]" / "lat lng for [address] using Google", convert an address to lat/lng + formatted address via Google Maps Platform. Premium-quality geocoding (highest accuracy for US addresses); requires Google Maps API key. Use when Mapbox/MapTiler/OpenStreetMap miss the address.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "_apiKey": "your-google_maps-api-key",
      "address": "1600 Amphitheatre Parkway, Mountain View, CA"
    },
    "name": "maps_geocode"
  }
}

Input Schema

NameRequiredDescriptionDefault
_apiKeyYesGoogle Maps API key
addressYesAddress to geocode (e.g., "1600 Amphitheatre Parkway, Mountain View, CA")

Output Schema

NameRequiredDescriptionDefault
statusNoStatus of the geocoding request
resultsNoArray of geocoding results

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "results": {
      +      "description": "Array of geocoding results",
      +      "items": {
      +        "properties": {
      +          "address_components": {
      +            "description": "Array of address components",
      +            "items": {
      +              "properties": {
      +                "long_name": {
      +                  "description": "Long component name",
      +                  "type": "string"
      +                },
      +                "short_name": {
      +                  "description": "Short component name",
      +                  "type": "string"
      +                },
      +                "types": {
      +                  "description": "Component type tags",
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "formatted_address": {
      +            "description": "Human-readable address",
      +            "type": "string"
      +          },
      +          "geometry": {
      +            "description": "Location geometry",
      +            "properties": {
      +              "bounds": {
      +                "description": "Bounding box for the address",
      +                "type": "object"
      +              },
      +              "location": {
      +                "properties": {
      +                  "lat": {
      +                    "description": "Latitude coordinate",
      +                    "type": "number"
      +                  },
      +                  "lng": {
      +                    "description": "Longitude coordinate",
      +                    "type": "number"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "location_type": {
      +                "description": "Type of location (ROOFTOP, RANGE_INTERPOLATED, GEOMETRIC_CENTER, APPROXIMATE)",
      +                "type": "string"
      +              },
      +              "viewport": {
      +                "description": "Recommended viewport for displaying the address",
      +                "type": "object"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "place_id": {
      +            "description": "Unique identifier for this place",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "status": {
      +      "description": "Status of the geocoding request",
      +      "enum": [
      +        "OK",
      +        "ZERO_RESULTS",
      +        "INVALID_REQUEST",
      +        "OVER_QUERY_LIMIT",
      +        "REQUEST_DENIED",
      +        "UNKNOWN_ERROR"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "_apiKey": "your-google_maps-api-key",
      +    "address": "1600 Amphitheatre Parkway, Mountain View, CA"
      +  },
      +  {
      +    "_apiKey": "your-google_maps-api-key",
      +    "address": "Eiffel Tower, Paris, France"
      +  }
      +]
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description adds genuinely new behavioral context beyond them: a Google Maps API key is required, results are premium/highest accuracy for US addresses, and the call reaches an external paid provider. Return content is also sketched (lat/lng + formatted address), though the output schema makes that redundant rather than valuable.

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?

The substantive content is two short clauses, but it is padded by three redundant quoted trigger phrasings that repeat 'Google Maps' three times. The real information (what it does, when to use it) is buried behind search-keyword noise instead of front-loaded.

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?

With an output schema, full 100% parameter coverage, and rich annotations, the description only needed to supply purpose, provider, and fallback guidance, all of which are present. The only missing piece is an explicit note about quota/cost implications of a premium geocoder, which is minor given the surrounding structure.

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% and both parameters already have descriptions and worked examples, so the schema carries the parameter burden. The description only restates 'address' implicitly and adds no syntax, format, or normalization guidance beyond what is already structured. 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 definition states a specific verb and resource: convert an address into lat/lng plus a formatted address via Google Maps Platform. That is concrete and distinguishable from a reverse geocoder, though the task of differentiation is partly carried by the quoted trigger phrases rather than a clean scope statement. A reader knows exactly what the tool returns without opening the schema.

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 final sentence, 'Use when Mapbox/MapTiler/OpenStreetMap miss the address,' gives an explicit trigger condition and implies a fallback ordering (try cheaper geocoders first). It does not name an exclusion for the sibling maps_reverse_geocode, and it does not state what to do when Google also fails, which keeps it below a 5.

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.