Geocode / reverse geocode
geocodePlace name or address → coordinates (with city, state, country, postcode), or lat,lon → the nearest address. Up to 10 candidates. OpenStreetMap data via Photon. Returns OSM links so results can be checked. When to use: To turn names into coordinates; weather and sun_moon accept place names directly. Price: $0.001 per call (10 free/day; after that a payment-required result lists x402 options). Errors: returns isError with a message for invalid input or an upstream failure (not charged).
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": {
"query": "<query>"
},
"name": "geocode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many candidate matches to return. Range 1-10. Default 3. | |
| query | Yes | address/place, or "lat,lon" for reverse |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| query | No | ||
| results | No | ||
| attribution | No |