Current weather and a 3-day forecast for a place name or latitude and longitude ($0.003)
get_weatherRetrieves current weather conditions and a 3-day forecast for any place name or coordinates, with metric or imperial units.
Instructions
Current conditions (temperature, humidity, wind, cloud, pressure, rain next hour) and a 3-day daily forecast for a place name or lat/lon anywhere. Metric or imperial units. Data from MET Norway, geocoding from OpenStreetMap. Not charged on bad input, unknown place or upstream failure. No API key. Price: $0.003 USDC per call, paid over x402 on Base from the wallet in X402_PRIVATE_KEY (not charged when the call fails).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_weather"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | Latitude -90 to 90 | |
| lon | No | Longitude -180 to 180 | |
| place | No | Place name, e.g. "Cincinnati, OH" (use this or lat and lon) | |
| units | No | metric (default) or imperial |