Skip to main content
Glama

lhl

Retrieve cloud-to-ground and cloud-to-cloud lightning counts from Hong Kong Observatory. Supports JSON and CSV formats with language options.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
langNoLanguage for the response: 'en' (English), 'tc' (Traditional Chinese), 'sc' (Simplified Chinese)en
rformatNoOutput format: 'json' or 'csv' (default: 'csv')csv
Behavior3/5

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

No annotations are provided, so the description must disclose behavioral traits. It implies a read-only retrieval (API request with no side effects) and includes request/response details. However, it does not explicitly state safety, permissions, or rate limits, which would be helpful for an agent.

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?

The description is structured with clear sections and includes necessary information without excessive verbosity. However, it repeats parameter defaults that are already in the schema, so minor redundancy exists.

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 the tool has only two parameters and no output schema, the description provides sufficient context: input options, example request, and response format. It lacks error handling or rate limit info but is adequate for basic usage.

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?

The input schema already covers both parameters with descriptions and defaults (100% coverage). The description adds value by providing a concrete request example and detailed response keys, which help the agent understand how to construct requests and interpret responses.

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

Purpose4/5

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

The description clearly states that the tool retrieves lightning count data (Cloud-to-Ground and Cloud-to-Cloud). The verb 'API Request' indicates a retrieval operation. While it does not explicitly distinguish from sibling weather tools, the context makes it clear this is for lightning data.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It does not mention any conditions, prerequisites, or exclusions. The agent is left to infer usage based on the tool name and description alone.

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