Skip to main content
Glama

Geocode a place, geocoding: place name to latitude and longitude

geocode
Read-only

Find places by name in Wikidata (CC0) and get their coordinates, description, country, administrative region, population and elevation where recorded, best match first. Cities, towns, landmarks and other places with coordinates. Use before weather, sun or distance lookups, or to tell two places of the same name apart. Example: name=Lisbon. Price $0.002/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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

Input Schema

NameRequiredDescriptionDefault
nameYesPlace name
countNoMax results (1-10, default 5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / count / maximum
      Previous value: -9007199254740991New value: +10
    • changedInput schema / properties / count / minimum
      Previous value: --9007199254740991New value: +1
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, it discloses the data source and licence, result ordering, that some fields exist only 'where recorded', and a full pricing model ($0.002/call, first 10 free, failed calls free). The line 'each call is charged, so repeats are not free' adds real context that explains why idempotentHint is false, which the annotation alone would not convey.

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?

The core purpose and usage guidance are front-loaded and each later sentence adds a distinct fact (source, pricing, read-only semantics). The pricing sentence is a dense run-on with several semicolon-delimited clauses, which costs a little readability but not enough to warrant trimming.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 carries the return-value burden itself by listing coordinates, description, country, administrative region, population and elevation, and it notes partial availability. Combined with annotations covering safety and open-world behavior, an agent has everything needed to call it correctly, including cost implications.

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 both parameters (name, count with its 1-10 range and default) are already documented in structured form. The description only reinforces the primary input with 'Example: name=Lisbon' and says nothing about the count parameter beyond what the schema states, so the baseline of 3 applies.

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 states a precise verb and resource ('Find places by name in Wikidata ... and get their coordinates'), names the source (CC0 Wikidata), and enumerates the returned fields plus ordering ('best match first'). It also scopes the domain ('Cities, towns, landmarks and other places with coordinates'), which cleanly separates forward geocoding from the reverse-geocoding sibling.

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?

It gives explicit when-to-use guidance by naming downstream tools ('Use before weather, sun or distance lookups') and a disambiguation use case ('to tell two places of the same name apart'). It stops short of an explicit when-not or a named alternative such as geocode_reverse, so the boundary with that sibling is left implicit.

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