Weather
weatherUse when you need a weather forecast for a latitude/longitude anywhere in the world: hourly temperature, wind speed and direction, humidity, pressure, cloud cover. Returns the paid x402 request for your input (GET /weather, $0.001 per call; schema linked). Call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. Forecast and US alerts for one point; for earthquakes and open natural events near a site use hazards_near. First call each day returns the data itself, free; later calls return the paid request.
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": {
"lat": "<lat>",
"lon": "<lon>"
},
"name": "weather"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | Yes | latitude in decimal degrees | |
| lon | Yes | longitude in decimal degrees | |
| hours | No | forecast horizon in hours, 1..240 (default 48); steps are hourly first, then 6-hourly as MET publishes |