sg-haze-rain-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SG_HAZE_LANG | No | `zh` for Chinese labels and advisories; per-call `lang` overrides. | en |
| SG_HAZE_API_BASE | No | Point at a mirror or a test server. | data.gov.sg v2 URL |
| SG_HAZE_IP_LOOKUP | No | `off` disables IP geolocation entirely. | on |
| SG_HAZE_CACHE_SECONDS | No | How long a fetched feed is reused. | 60 |
| SG_HAZE_DEFAULT_REGION | No | Region used when location is unknown or outside Singapore. | central |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| weather_nowA | One-call summary for the caller's location in Singapore: 24-hr PSI and 1-hr PM2.5 with NEA's health advisory, whether it is raining nearby, and the 2-hour forecast. Location comes from the caller's public IP unless region / lat+lon / ip is given. |
| get_hazeA | Current haze for the caller's nearest PSI region: 24-hr PSI, 1-hr PM2.5, 24-hr PM2.5/PM10, the NEA band and health advisory, plus all five regions for comparison. Data: NEA via data.gov.sg, refreshed hourly. |
| get_rainA | Is it raining near the caller? Uses NEA's 5-minute rain-gauge network (nearest three stations) plus the 2-hour area forecast; also counts wet stations island-wide. |
| get_forecastA | NEA forecast for the caller's area/region. horizon: '2h' (area nowcast), '24h' (default; general + regional periods) or '4d' (island-wide outlook). |
| locate_meA | Resolve the caller's location (public IP by default) to coordinates and the nearest NEA PSI region. Useful to check what the other tools will use before calling them. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| haze_check | Ask the assistant for a plain-language go/no-go on outdoor plans using current haze and rain. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
The three get_* tools target distinct data (haze/PSI, rain, forecast), but weather_now is a composite summary that duplicates all of them, creating genuine overlap about when to call the aggregate vs. the specific tools. Descriptions do clarify intent, keeping it from being worse than moderate ambiguity.
Four tools follow a verb_object pattern (get_haze, get_rain, get_forecast, locate_me), but weather_now breaks the convention with a noun_first form. The deviation is minor and all names remain readable.
Five tools is well-scoped for a focused Singapore weather/haze server, with a clear summary tool plus targeted drill-downs. Each tool earns its place.
The surface covers location resolution, haze/PSI, rain, forecast, and an aggregate summary, giving good lifecycle coverage for the domain. Only marginal extras (e.g. historical data or alert subscriptions) are absent, which agents can work around.