Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}
logging
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
fndB

9-day Weather Forecast (fnd) API Request

Parameters:

  • lang: 'en' (English), 'tc' (Traditional Chinese), 'sc' (Simplified Chinese)

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=fnd&lang=en

Response Keys:

  • weatherForecast: List of daily forecasts

  • forecastDate: Forecast Date (YYYYMMDD)

  • forecastWeather: Forecast Weather

  • forecastMaxtemp: Forecast Maximum Temperature

  • forecastMintemp: Forecast Minimum Temperature

  • week: Day of the week

  • forecastWind: Wind direction and strength

  • forecastMaxrh: Maximum relative humidity

  • forecastMinrh: Minimum relative humidity

  • ForecastIcon: Weather icon code

  • PSR: Probability of Significant Rain (High, Medium High, Medium, Medium Low, Low)

rhrreadB

Current Weather Report (rhrread) API Request

Parameters:

  • lang: 'en' (English), 'tc' (Traditional Chinese), 'sc' (Simplified Chinese)

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=rhrread&lang=en

Response Keys:

  • humidity: Current humidity data

  • temperature: Current temperature data

  • pressure: Current pressure data

  • wind: Current wind data

  • uvindex: Current UV index data

  • visibility: Current visibility data

  • rainfall: Current rainfall data

  • specialWxTips: Special weather tips

  • updateTime: Last update time

  • warningMessage: Weather warning messages

flwB

Local Weather Forecast (flw) API Request

Parameters:

  • lang: 'en' (English), 'tc' (Traditional Chinese), 'sc' (Simplified Chinese)

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=flw&lang=en

Response Keys:

  • generalSituation: General weather situation

  • tcInfo: Tropical cyclone information

  • fireDangerWarning: Fire danger warning message

  • forecastPeriod: Forecast period

  • forecastDesc: Detailed forecast description

  • outlook: Weather outlook

  • updateTime: Update time in format YYYY-MM-DD'T'hh:mm:ssZ

warningInfoB

Weather Warning Information (warningInfo) API Request

Parameters:

  • lang: 'en' (English), 'tc' (Traditional Chinese), 'sc' (Simplified Chinese)

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=warningInfo&lang=en

Response Keys:

  • Warning_Summary: Array of warning summary objects

  • Special_Warning: Array of special warning objects (if any)

  • Reminder_Warning: Array of reminder warning objects (if any)

warnsumB

Weather Warning Summary (warnsum) API Request

Parameters:

  • lang: 'en' (English), 'tc' (Traditional Chinese), 'sc' (Simplified Chinese)

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=warnsum&lang=en

Response Keys:

    • {Property name}: Warning Statement Code (WFIRE, WFROST, WHOT, etc.)

  • name: Warning Name

  • code: Warning Code

  • actionCode: Action Code (ISSUE, REISSUE, CANCEL, etc.)

  • issueTime: Issue Time (YYYY-MM-DD'T'hh:mm:ssZ)

  • updateTime: Update Time (YYYY-MM-DD'T'hh:mm:ssZ)

swtC

Special Weather Tips (swt) API Request

Parameters:

  • lang: 'en' (English), 'tc' (Traditional Chinese), 'sc' (Simplified Chinese)

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/weather.php?dataType=swt&lang=en

Response Keys:

  • desc: Tips Content

  • updateTime: Tips Update Time (YYYY-MM-DD'T'hh:mm:ssZ)

qemB

Quick Earthquake Messages (qem) API Request

Parameters:

  • lang: 'en' (English), 'tc' (Traditional Chinese), 'sc' (Simplified Chinese)

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/earthquake.php?dataType=qem&lang=en

Response Keys:

  • lat: Latitude

  • lon: Longitude

  • mag: Richter magnitude scale

  • region: Region

  • ptime: Earthquake date and time (YYYY-MM-DD'T'hh:mm:ssZ)

  • updateTime: Update time (YYYY-MM-DD'T'hh:mm:ssZ)

feltearthquakeB

Locally Felt Earth Tremor Report (feltearthquake) API Request

Parameters:

  • lang: 'en' (English), 'tc' (Traditional Chinese), 'sc' (Simplified Chinese)

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/earthquake.php?dataType=feltearthquake&lang=en

Response Keys:

  • updateTime: Last update time (YYYY-MM-DD'T'hh:mm:ssZ)

  • mag: Richter magnitude scale (Numeric value)

  • region: Region of the earthquake (Text)

  • intensity: Intensity of the earthquake (Text)

  • lat: Latitude (Numeric value)

  • lon: Longitude (Numeric value)

  • details: Earthquake details (Text)

  • ptime: Date and time of the earthquake (YYYY-MM-DD'T'hh:mm:ssZ)

hhhotA

Hourly Heights of Astronomical Tides (HHOT) API Request

Parameters:

  • station: CCH/CLK/CMW/KCT/KLW/LOP/MWC/QUB/SPW/TAO/TBT/TMW/TPK/WAG

  • year: 2022-2024

  • month: (Optional) 1-12

  • day: (Optional) 1-31

  • hour: (Optional) 0-23

  • rformat: 'json' (Response format)

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/opendata.php?dataType=HHOT&station=CCH&year=2025&rformat=json

Response Keys (JSON format):

  • type: Array with data type ["Hourly Heights of Astronomical Tides"]

  • fields: Array with field names ["Year", "Month", "Day", "Hour", "Height(m)"]

  • data: Array of arrays with tide data

  • legend: Array with station information

Response Keys (CSV format):

  • Type: Data type line

  • Header row: Year,Month,Day,Hour,Height(m)

  • Data rows: Actual tide data

hltA

Times and Heights of Astronomical High and Low Tides (HLT) API Request

Parameters:

  • station: CCH/CLK/CMW/KCT/KLW/LOP/MWC/QUB/SPW/TAO/TBT/TMW/TPK/WAG

  • year: 2022-current year+1

  • month: (Optional) 1-12

  • day: (Optional) 1-31

  • hour: (Optional) 1-24

  • rformat: 'json' or 'csv' (Response format, default: json)

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/opendata.php?dataType=HLT&station=CLK&year=2025&rformat=json

Response Keys (JSON format):

  • fields: Array with field names ["Date", "Time", "Height(m)", "Type"]

  • data: Array of arrays with tide data

Response Keys (CSV format):

  • Header row: Date,Time,Height(m),Type

  • Data rows: Actual tide data

srsA

Times of Sunrise/Sunset (SRS) API Request

Parameters:

  • year: 2018-2024

  • month: (Optional) 1-12 (requires year)

  • day: (Optional) 1-31 (requires year and month)

  • rformat: 'json' or 'csv' (Response format, default: csv)

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/opendata.php?dataType=SRS&year=2025&month=1&rformat=json

Response Keys (JSON format):

  • type: Array with data type ["Sunrise/Sunset Times"]

  • fields: Array with field names ["Year", "Month", "Day", "Sunrise", "Sunset"]

  • data: Array of arrays with sunrise/sunset data

  • legend: Array with information

Response Keys (CSV format):

  • Type: Data type line

  • Header row: Year,Month,Day,Sunrise,Sunset

  • Data rows: Actual sunrise/sunset data

mrsC

Times of Moonrise/Moonset (MRS) API Request

Parameters:

  • dataType: 'MRS' (for Moonrise/Moonset Times)

  • rformat: 'json' or 'csv' (Response format, default: csv)

  • year: 2018-2024

  • month: (Optional) 1-12 (requires year)

  • day: (Optional) 1-31 (requires year and month)

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/opendata.php?dataType=MRS&year=2025&month=1&rformat=json

lhlB

Cloud-to-Ground and Cloud-to-Cloud Lightning Count (LHL) API Request

Parameters:

  • lang: 'en', 'tc', or 'sc' (Language option, default: en)

  • rformat: 'json' or 'csv' (Response format, default: csv)

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/opendata.php?dataType=LHL&lang=en&rformat=json

Response Keys (JSON format):

  • fields: Array with field names ["Date", "Time", "CloudToGround", "CloudToCloud"]

  • data: Array of arrays with lightning count data

Response Keys (CSV format):

  • Header row: Date,Time,CloudToGround,CloudToCloud

  • Data rows: Actual lightning count data

ltmvA

Latest 10-minute Mean Visibility (LTMV) API Request

Parameters:

  • lang: 'en', 'tc', or 'sc' (Language option, default: en)

  • rformat: 'json' or 'csv' (Response format, default: csv)

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/opendata.php?dataType=LTMV&lang=en&rformat=json

Response Keys (JSON format):

  • type: Array with data type ["10-minute Visibility"]

  • fields: Array with field names ["Automatic Weather Station", "Mean Visibility (km)"]

  • data: Array of arrays with visibility data

  • legend: Array with station information

Response Keys (CSV format):

  • Type: Data type line

  • Header row: Automatic Weather Station,Mean Visibility (km)

  • Data rows: Actual visibility data

clmtempB

Daily Mean Temperature (CLMTEMP) API Request

Parameters:

  • station: Station code (refer to documentation for full list)

  • year: Year (1884 - current year, station-specific range)

  • month: Month (1-12, optional but requires year)

  • rformat: 'json' or 'csv' (Response format, default: csv)

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/opendata.php?dataType=CLMTEMP&station=HKO&year=2025&rformat=json

Response Keys (JSON format):

  • type: Array with data type ["Mean Temperature"]

  • fields: Array with field names ["Year", "Month", "Day", "Temperature(C)"]

  • data: Array of arrays with temperature data

  • legend: Array with station information

Response Keys (CSV format):

  • Type: Data type line

  • Header row: Year,Month,Day,Temperature(C)

  • Data rows: Actual temperature data

clmmaxtA

Daily Maximum Temperature (CLMMAXT) API Request

Parameters:

  • station: Station code (refer to documentation for full list)

  • year: Year (1884 - current year, station-specific range)

  • month: Month (1-12, optional but requires year)

  • rformat: 'json' or 'csv' (Response format, default: csv)

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/opendata.php?dataType=CLMMAXT&station=HKO&year=2025&rformat=json

Response Keys (JSON format):

  • type: Array with data type ["Max Temperature"]

  • fields: Array with field names ["Year", "Month", "Day", "Temperature(C)"]

  • data: Array of arrays with temperature data

  • legend: Array with station information

Response Keys (CSV format):

  • Type: Data type line

  • Header row: Year,Month,Day,Temperature(C)

  • Data rows: Actual temperature data

clmminB

Daily Minimum Temperature (CLMMINT) API Request

Parameters:

  • station: Station code (refer to documentation for full list)

  • year: Year (1884 - current year, station-specific range)

  • month: Month (1-12, optional but requires year)

  • rformat: 'json' or 'csv' (Response format, default: csv)

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/opendata.php?dataType=CLMMINT&station=HKO&year=2025&rformat=json

Response Keys (JSON format):

  • type: Array with data type ["Min Temperature"]

  • fields: Array with field names ["Year", "Month", "Day", "Temperature(C)"]

  • data: Array of arrays with temperature data

  • legend: Array with station information

Response Keys (CSV format):

  • Type: Data type line

  • Header row: Year,Month,Day,Temperature(C)

  • Data rows: Actual temperature data

ryesA

Weather and Radiation Level Report (RYES) API Request

Parameters:

  • date: Date of report (YYYYMMDD format)

  • lang: 'en', 'tc', or 'sc' (Language option, default: en)

  • station: Station code (refer to documentation for full list)

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/opendata.php?dataType=RYES&date=20250101&lang=en&station=HKO

Response Keys:

  • type: Data type ("data")

  • SolarData: Solar radiation data with unit and period-value pairs

  • AmbientTemp: Ambient temperature data with unit and period-value pairs

  • Other parameters: Additional weather parameters

lunardateA

Gregorian-Lunar Calendar Conversion API Request

Parameters:

  • date: Gregorian date to convert (YYYY-MM-DD format)

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/lunardate.php?date=2025-07-26

Response Keys:

  • LunarYear: Lunar year in traditional Chinese with zodiac (e.g. "癸卯年,兔")

  • LunarDate: Lunar date in traditional Chinese (e.g. "六月初二")

hourlyrainfallA

Rainfall in the Past Hour from Automatic Weather Station API Request

Parameters:

  • lang: Language option (en, tc, sc) - default: en

Request Example: https://data.weather.gov.hk/weatherAPI/opendata/hourlyRainfall.php?lang=en

Response Keys:

  • obsTime: Observation time in ISO 8601 format

  • hourlyRainfall: Array of rainfall data from automatic weather stations

    • automaticWeatherStation: Name of the weather station

    • automaticWeatherStationID: ID of the weather station

    • value: Rainfall amount

    • unit: Measurement unit (mm)

Response example: { "obsTime": "2025-01-01T08:00:00+08:00", "hourlyRainfall": [ { "automaticWeatherStation": "Lau Fau Shan", "automaticWeatherStationID": "RF001", "value": "0", "unit": "mm" }, { "automaticWeatherStation": "Wetland Park", "automaticWeatherStationID": "RF002", "value": "2", "unit": "mm" } ] }

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/louiscklaw/mcp-hko'

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