Skip to main content
Glama

Geocode

geocode
Read-onlyIdempotent

Geocoding: convert an address, place name, or free-text location query into geographic coordinates (latitude/longitude). Returns formatted address, country, lat, lon, type, and match score. Example: geocode({ query: "350 5th Ave, New York" })

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return (default 5)
queryYesAddress or place to geocode, e.g. "350 5th Ave, New York" or "Eiffel Tower"
_apiKeyNoOptional — your own TomTom API key for higher limits; omit to use the shared Pipeworx key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "_apiKey": "your-tomtom-api-key",
      -    "query": "350 5th Ave, New York"
      -  },
      -  {
      -    "_apiKey": "your-tomtom-api-key",
      -    "limit": 3,
      -    "query": "Eiffel Tower"
      -  }
      -]New value: +[
      +  {
      +    "query": "350 5th Ave, New York"
      +  },
      +  {
      +    "limit": 3,
      +    "query": "Eiffel Tower"
      +  }
      +]
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "_apiKey": "your-tomtom-api-key",
      +    "query": "350 5th Ave, New York"
      +  },
      +  {
      +    "_apiKey": "your-tomtom-api-key",
      +    "limit": 3,
      +    "query": "Eiffel Tower"
      +  }
      +]
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. Beyond that, the description discloses the response shape (formatted address, country, lat, lon, type, match score), which is genuinely useful since no output schema exists; it only omits guidance on how to read the match score or how multiple results are ordered.

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 compact sentences, front-loaded with the core transform and followed by return fields and a worked example. The trailing example is somewhat redundant with the input schema's examples array, but nothing is padded or buried.

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 three-parameter, read-only lookup with no output schema, the definition covers purpose, return fields, and a concrete invocation, which is enough to call it correctly. The remaining gap is behavioral detail around ambiguous or zero-match queries and result ordering when limit > 1.

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%, with both query and limit documented inline (including the default of 5) plus two examples, so the baseline of 3 applies. The description's example geocode call restates what the schema examples already show rather than adding new semantics such as query formatting rules or ambiguity handling.

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 names a specific verb and resource ('convert an address, place name, or free-text location query into geographic coordinates') and pins the direction of the transform, which implicitly separates it from the sibling reverse_geocode. It also enumerates the returned fields, so an agent knows what it gets back without opening any 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?

Usage is only implied: the address-to-coordinate direction tells an agent to pick this over reverse_geocode, but the description never states when to use it versus search_poi, resolve_entity, or search_within. There are no exclusions or prerequisites, so routing is left to inference.

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.