Skip to main content
Glama

Singapore haze (PSI / PM2.5)

get_haze

Get current Singapore haze data for your nearest PSI region, including 24-hr PSI, PM2.5, NEA advisory, and all five regions for comparison.

Instructions

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipNoGeolocate this IP instead of the machine's own public IP.
latNoLatitude, if the caller already knows where they are (skips IP lookup).
lonNoLongitude, paired with lat.
langNoLanguage for labels and health advice. Defaults to SG_HAZE_LANG or 'en'.
regionNoForce a PSI region instead of locating the caller: north, south, east, west or central.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses provenance (NEA via data.gov.sg) and freshness ('refreshed hourly'), plus the fact that all five regions are returned. It omits any auth requirements, failure behavior when geolocation or IP lookup fails, and defaults beyond what the schema states.

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

Conciseness5/5

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

Two sentences, zero filler, with the scope (nearest PSI region) front-loaded and provenance/freshness trailing. Every clause earns its place.

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?

There is no output schema, so the description correctly enumerates the returned values (24-hr PSI, 1-hr PM2.5, 24-hr PM2.5/PM10, band, advisory, all five regions). No annotations exist, so more on permissions or geolocation fallback would close the remaining gap, but for a read-only atmospheric data lookup this is close to complete.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents ip, lat, lon, lang, and region with enums and defaults. The description adds nothing parameter-specific, which matches the baseline 3 when structured fields do the heavy lifting.

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 names a specific verb+resource ('Current haze for the caller's nearest PSI region') and enumerates the returned metrics, so the tool's function is unambiguous. It never names or contrasts against siblings (weather_now, get_rain, get_forecast, locate_me), which is the only thing separating it from a 5.

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

Usage Guidelines3/5

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

Usage is implied by 'current haze for the caller's nearest PSI region' but there is no explicit when-to-use, when-not, or alternative routing (e.g., vs weather_now or locate_me for geolocation). An agent must infer the context from the purpose statement alone.

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

Deploy Server

Other Tools