getWeather
Retrieve real-time weather data for any location: temperature, humidity, and conditions. Specify units (metric/imperial) and language for tailored responses via the MCP Weather Server.
Instructions
Get current weather information for a location. Returns weather data including temperature, humidity, and conditions.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
location | No | The location to get weather for (city name, zip code, coordinates, etc.). If not provided, default location will be used. | |
options | No | Weather 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 for (city name, zip code, coordinates, etc.). If not provided, default location will be used.",
"type": "string"
},
"options": {
"additionalProperties": false,
"description": "Weather configuration options, all fields are optional",
"properties": {
"language": {
"description": "Response language code (e.g., 'en' for English, 'es' for Spanish, 'zh' for Chinese)",
"type": "string"
},
"units": {
"description": "Temperature units: metric (Celsius) or imperial (Fahrenheit)",
"enum": [
"metric",
"imperial"
],
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}