get_weather
Retrieve current weather data for any city using the 'get_weather' tool on the MCP Server with OpenAI Integration. Specify city and temperature unit (Celsius or Fahrenheit) for accurate results.
Instructions
Get current weather information for a specific city
Input Schema
Name | Required | Description | Default |
---|---|---|---|
city | Yes | The city to get weather information for | |
unit | No | Temperature unit | celsius |
Input Schema (JSON Schema)
{
"properties": {
"city": {
"description": "The city to get weather information for",
"type": "string"
},
"unit": {
"default": "celsius",
"description": "Temperature unit",
"enum": [
"celsius",
"fahrenheit"
],
"type": "string"
}
},
"required": [
"city"
],
"type": "object"
}