Skip to main content
Glama

Geocode an address

geocode
Read-onlyIdempotent

Convert one address, place name or postal code into latitude/longitude coordinates. Returns the matched address and coordinates, or found=false. Costs $0.001; with extra_columns (time zone, and in the US county, census tract and district) $0.002. For several addresses use batch_geocode.

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": {
      "address": "<address>"
    },
    "name": "geocode"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYesThe address to locate, e.g. "350 5th Avenue, New York, NY 10118, USA". Include city and country for the best match.
extra_columnsNoAlso return the time zone (any country: timezone, utc_offset, dst) and, in the US only, county, county_fips, census tract, block_group and the 120th Congress district, with match_level. Costs $0.001 more per lookup.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / extra_columns
      Added value: +{
      +  "default": false,
      +  "description": "Also return the time zone (any country: timezone, utc_offset, dst) and, in the US only, county, county_fips, census tract, block_group and the 120th Congress district, with match_level. Costs $0.001 more per lookup.",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, open-world and non-destructive traits, and the description adds genuinely new context: per-call pricing tiers and the failure signal (found=false). It does not spell out what happens with ambiguous matches (single best match vs multiple candidates) or rate limits.

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?

Three tightly packed sentences: capability first, return contract second, cost third, alternative last. Every sentence carries information an agent needs, with no filler.

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 no output schema, the description does supply the return contract and cost model, which is most of what an agent needs for a 2-parameter lookup. It falls short only on ambiguity/partial-match behavior and the exact shape of returned fields.

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 baseline is 3, but the description adds real meaning: the extra_columns flag doubles cost and what categories of extra fields it unlocks (time zone anywhere, US-only county/tract/district). The address parameter itself is left to the schema's own example.

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?

States a specific verb (convert) and resource (one address, place name or postal code) with the exact output (latitude/longitude), and explicitly sets itself apart from the multi-address sibling batch_geocode.

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?

Explicitly routes multi-address workloads to batch_geocode and the single-item framing implies reverse_geocode is not the tool for this direction. No explicit when-not conditions or prerequisites beyond that, so slightly short of 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.

Resources