Skip to main content
Glama
code4mk

Cox's Bazar AI Itinerary MCP Server

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
NameRequiredDescriptionDefault
temperatureYes
time_of_dayNoafternoon

Implementation Reference

  • 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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/code4mk/coxs-bazar-itinerary-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server