warnsum
Retrieve current weather warnings for Hong Kong, including names, codes, and issue times. Supports English, Traditional Chinese, and Simplified Chinese.
Instructions
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)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "warnsum"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | change the language of the result | en |