PAGASA weather alerts
get_weather_alertsFetch active PAGASA weather alerts. Returns an empty list only when no alerts are confirmed; otherwise reports an indeterminate status and directs to the official PAGASA site for real-time updates.
Instructions
Get active PAGASA weather alerts and advisories.
The PAGASA homepage embeds alert names such as "Heavy Rainfall Warning" in its navigation menu and breadcrumbs, as well as in real active-warning sections. This tool reliably detects the "No Active Warnings" state, but it cannot yet isolate a real active warning from that navigation text. To avoid a fabricated advisory, this tool returns a bare empty list only for the confirmed "no active warnings" marker. For real-time advisories, call bagong.pagasa.dost.gov.ph directly. Examples:
get_weather_alerts() no region argument get_weather_alerts(region="NCR") region only changes the cache key
On failure, when the PAGASA homepage is unreachable, this tool returns data_status "unavailable", upstream_error: true, results: [], and the real error in caveats. When the page is reachable but the "no active warnings" marker does not match, this tool returns data_status "indeterminate" instead of guessing, and never caches that response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | For example "NCR", "Region VII", "CALABARZON". None returns all. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |