Skip to main content
Glama

ScrapeMole Pulse: FX rates (ECB), currency conversion, time zones, weather, Hacker News, public holidays and geocoding for AI agents: Geocode place or address

geocode
Read-onlyIdempotent

Use when an agent has a city, landmark or postal address and needs lat/lon for maps, weather, distance or logistics: returns the best match with latitude, longitude, display name, country/countryCode, optional admin hierarchy, street/house number, OSM ids and bounding box. Public OpenStreetMap-derived data via Photon (Komoot), with Nominatim fallback. Not found = 404, not charged. Attribute OpenStreetMap when redistributing. Paid tool: x402 USDC on Base, $0.001 per successful call; call without payment to receive the PaymentRequired object.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qYesPlace name or address to resolve (aliases: place, address).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld/idempotent annotations: 404 semantics plus 'not charged', the OSM attribution obligation, the Photon source with Nominatim fallback, and the x402 USDC-on-Base payment model at $0.001 per successful call with a PaymentRequired object when unpaid. That is exactly the behavioral context an agent needs to call a paid, fallback-backed tool safely.

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?

Front-loads the trigger and the payload fields in the first sentence, then layers provider, error, legal and pricing details. Dense but nearly every clause is load-bearing; the pricing/attribution tail slightly crowds a single-sentence tool.

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 enumerates the return shape (lat/lon, display name, country codes, admin hierarchy, street/house number, OSM ids, bounding box), and covers failure mode, cost and licensing. Nothing needed to invoke or interpret a result is missing.

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?

Only one parameter (q) and schema description coverage is 100%, so the schema already carries the meaning including the place/address aliases. The description adds no syntax, format, or example guidance for q 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.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Geocode place or address') and enumerates the returned fields (latitude, longitude, display name, country/countryCode, OSM ids, bounding box). It implicitly covers forward geocoding, but never names the near-identical siblings geocode_search or geocode_reverse, so an agent still has to guess which of the three to pick.

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?

'Use when an agent has a city, landmark or postal address and needs lat/lon for maps, weather, distance or logistics' gives a clear triggering condition and downstream use cases. No explicit exclusions or named alternatives are given, so the reverse-geocoding sibling is only implied.

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