Get current weather
get_current_weatherGet current weather for any city or postal code by resolving the location and returning read-only conditions with units, time, and data source. Check resolved_location to avoid ambiguous place names.
Instructions
Resolve a city or postal-code-like location and return read-only, model-based current conditions. This Tool does not provide forecasts, alerts, advice, or arbitrary URL content. Always inspect resolved_location because place names can be ambiguous.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location | Yes | City, place name, or postal-code-like text. Trimmed length must be 2-100 characters; the value is never interpreted as a URL. | |
| country_code | No | Optional ISO 3166-1 alpha-2 country code. Lower-case input is accepted and normalized to upper-case. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| current | Yes | ||
| metadata | Yes | ||
| country_code | Yes | ||
| resolved_location | Yes | ||
| requested_location | Yes |