Weather
WeatherWeather: Weather is a current weather API that reports conditions for any city name or zip code: real-time temperature and wind speed with compass direction, in both metric and imperial units, with the location's coordinates, time zone and local time, day or night, and a UV risk level. Paid plans add a 7-day forecast with daily highs, lows, rain chance and conditions for the week ahead. (Cost: 10 credits)
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 |
|---|---|---|---|
| zip | No | The zip code for which you want to get the current weather | |
| city | No | The city for which you want to get the current weather (e.g., San Francisco) | |
| forecast | No | Included by default. Set to false to omit the 7-day forecast and return current conditions only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |