Skip to main content
Glama

Geocode

geocode
Read-onlyIdempotent

Resolve a place name (city, optionally with state/country) to geographic coordinates (latitude/longitude). Useful before calling air_quality, which needs lat/lon. Example: geocode({ query: "Paris", limit: 5 })

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of matching locations to return (default 5).
queryYesPlace name to look up, e.g. "Paris", "Springfield,IL,US".
_apiKeyNoOptional — your own OpenWeatherMap 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-openweather-api-key",
      -    "limit": 5,
      -    "query": "Paris"
      -  },
      -  {
      -    "_apiKey": "your-openweather-api-key",
      -    "query": "Springfield,IL,US"
      -  }
      -]New value: +[
      +  {
      +    "limit": 5,
      +    "query": "Paris"
      +  },
      +  {
      +    "query": "Springfield,IL,US"
      +  }
      +]
  2. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "_apiKey": "your-openweather-api-key",
      +    "limit": 5,
      +    "query": "Paris"
      +  },
      +  {
      +    "_apiKey": "your-openweather-api-key",
      +    "query": "Springfield,IL,US"
      +  }
      +]
  3. First observed

TDQS

A3.8/5.0
Behavior3/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 only that the return value is coordinates, and says nothing about ambiguity resolution (the Springfield example implies multiple matches) or rate limits for the shared key.

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 short sentences: purpose first, usage second, concrete example last. Zero filler and every sentence carries 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?

With no output schema, the description correctly states the return type (latitude/longitude). It is nearly complete for a simple lookup, with the main gap being how multiple matches and the optional _apiKey affect results.

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%, so query, limit and _apiKey are already documented, which sets the baseline at 3. The description reinforces query format and shows limit in use but adds no syntax or 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 and resource: resolve a place name to latitude/longitude coordinates, with the accepted input shape (city, optionally state/country). It does not differentiate from the sibling resolve_entity, which an agent could plausibly confuse with this tool.

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?

Gives a concrete downstream condition — use this before calling air_quality because that tool needs lat/lon. It supplies no explicit when-not guidance or comparison against alternatives like resolve_entity or entity_profile.

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.