get_weather
Retrieve current weather data for any specified city to inform decisions and planning.
Instructions
it gets and retuns the weather of the city
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes |
Implementation Reference
- server.py:114-117 (handler)The core handler function for the 'get_weather' tool, registered via the @mcp.tool() decorator in FastMCP. It takes a 'city' parameter (str) and returns an integer (hardcoded to 45, dummy implementation). This captures both the execution logic and registration.@mcp.tool() def get_weather(city: str) -> int: """it gets and retuns the weather of the city""" return 45