getWeatherForecast
Retrieve weather forecasts for any location using customizable parameters such as temperature units, forecast duration, and language. Integrates with MCP Weather Server for accurate, real-time weather data.
Instructions
Get weather forecast for a location. Returns weather forecast for the next few days.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
location | No | The location to get weather forecast for (city name, zip code, coordinates, etc.). If not provided, default location will be used. | |
options | No | 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 weather forecast for (city name, zip code, coordinates, etc.). If not provided, default location will be used.",
"type": "string"
},
"options": {
"additionalProperties": false,
"description": "Forecast configuration options, all fields are optional",
"properties": {
"days": {
"description": "Number of days to forecast (default: 3, supports 3, 7days)",
"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"
}