Weather Tool

A complete weather tool demonstrating external API integration, proper validation, and error handling.

Prerequisites

You’ll need a weather API key. This example uses WeatherAPI (free tier available).

Basic Implementation

Usage

With Multiple Cities

Extended Version with Forecast

Error Handling

The tool includes proper error handling:

Testing

See Also