Current weather and short hourly (up to 48h) + daily (up to 7d) forecast worldwi
weatherCurrent weather and short hourly (up to 48h) + daily (up to 7d) forecast worldwide by city name or lat/lon: temperature (°C), humidity, wind speed/direction, pressure, cloud cover, precipitation and condition code. Source: MET Norway Locationforecast 2.0 (CC BY 4.0) + OpenStreetMap/Photon geocoding (ODbL). 404/503 and no charge if location not found or upstream is down. Price: $0.002 USDC per call via x402.
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": "weather"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | latitude (-90 to 90), used with lon | |
| lon | No | longitude (-180 to 180), used with lat | |
| city | No | city or place name (alternative to lat & lon), e.g. Berlin | |
| days | No | daily summary days (1-7, default 3) | |
| hours | No | hourly forecast steps (1-48, default 24) | |
| country | No | optional 2-letter ISO country code filter for city search, e.g. DE, US |