getHourlyWeather
Fetch hourly weather forecasts for any location, providing detailed weather data for the next 24 hours. Customize by location, units (metric/imperial), hours, and language using the MCP Weather Server.
Instructions
Get hourly weather forecast for a location. Returns weather data hour by hour for the next 24 hours.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
location | No | The location to get hourly weather forecast for (city name, zip code, coordinates, etc.). If not provided, default location will be used. | |
options | No | Hourly forecast configuration options, all fields are optional |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"location": {
"description": "The location to get hourly weather forecast for (city name, zip code, coordinates, etc.). If not provided, default location will be used.",
"type": "string"
},
"options": {
"additionalProperties": false,
"description": "Hourly forecast configuration options, all fields are optional",
"properties": {
"hours": {
"description": "Number of hours to forecast (default: 24, max: 24)",
"type": "number"
},
"language": {
"description": "Response language code (e.g., 'en' for English, 'zh' for Chinese)",
"type": "string"
},
"units": {
"description": "Temperature units: metric (Celsius) or imperial (Fahrenheit)",
"enum": [
"metric",
"imperial"
],
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}