Skip to main content
Glama

hourlyrainfall

Get rainfall amounts from Hong Kong automatic weather stations for the past hour, including station names and measurements in mm.

Instructions

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" } ] }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNoLanguage for the response: 'en' (English), 'tc' (Traditional Chinese), 'sc' (Simplified Chinese)en
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. It discloses the read-only nature via API request, shows response keys and example, and explains the sole parameter. No destructive actions mentioned, which is appropriate for a read operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Description is well-structured with sections for description, parameters, request example, response keys, and response example. It is front-loaded with purpose. Some redundancy (e.g., repeating parameter info) but overall efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given only 1 optional parameter and no annotations or output schema, the description is nearly complete. It documents the response format and includes a full example. Missing error handling or rate limits, but not critical for a simple API tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% for the single parameter. Description adds value by showing the parameter in the URL example and clarifying default and options ('en, tc, sc'), going beyond the schema's enum-less description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states 'Rainfall in the Past Hour from Automatic Weather Station API Request', providing a specific verb (rainfall) and resource (automatic weather station). It distinguishes itself from siblings which appear to be other weather data types.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

While no explicit when-to-use/alternatives are given, the description provides a clear request example and response structure, implying usage for hourly rainfall data. Sibling names are distinct, so context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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