get_activity_suggestions
Generate personalized activity recommendations for Cox's Bazar based on current temperature and time of day to optimize your travel itinerary.
Instructions
Suggest activities based on temperature and time of day.
Args: temperature: Temperature in Celsius time_of_day: "morning", "afternoon", or "evening"
Returns: List of suggested activities
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| temperature | Yes | ||
| time_of_day | No | afternoon |
Implementation Reference
- src/mcp_server/components/tools/itinerary.py:112-115 (registration)MCP tool registration for get_activity_suggestions with name and description.@mcp.tool( name="get_activity_suggestions", description="suggest activities based on temperature and time of day", )
- Handler function that wraps the helper and executes the tool logic by calling the imported get_suggestions.async def get_activity_suggestions(temperature: float, time_of_day: str = "afternoon") -> list[str]: """ Suggest activities based on temperature and time of day. Args: temperature: Temperature in Celsius time_of_day: "morning", "afternoon", or "evening" Returns: List of suggested activities """ return get_suggestions(temperature, time_of_day)
- Core helper function implementing the activity suggestion logic with conditional lists based on temperature and time of day.def get_activity_suggestions(temperature: float, time_of_day: str = "afternoon") -> List[str]: """ Suggest activities based on temperature and time of day. Args: temperature: Temperature in Celsius time_of_day: "morning", "afternoon", or "evening" Returns: List of suggested activities """ suggestions = [] if time_of_day == "morning": if temperature < 28: suggestions = [ "Beach walk and photography", "Visit Himchari National Park", "Sunrise at Laboni Beach", "Morning yoga on the beach" ] else: suggestions = [ "Early morning swim", "Sunrise boat ride", "Visit Inani Beach", "Morning market exploration" ] elif time_of_day == "afternoon": if temperature < 30: suggestions = [ "Visit Aggameda Khyang monastery", "Explore Ramu Buddhist Village", "Maheshkhali Island tour", "Marine Drive scenic route" ] else: suggestions = [ "Indoor activities - shopping at local markets", "Visit Bangabandhu Safari Park", "Relax at beach resorts", "Water sports activities" ] else: # evening suggestions = [ "Sunset at Sugandha Beach", "Seafood dinner at local restaurants", "Beach bonfire", "Night market shopping", "Cultural performances" ] return suggestions