Skip to main content
Glama
xmpuspus

ph-civic-data-mcp

by xmpuspus

PAGASA weather alerts

get_weather_alerts
Read-onlyIdempotent

Fetches active weather warnings and advisories from PAGASA for Philippine regions. Returns empty list when no warnings are active.

Instructions

Get active PAGASA weather alerts and advisories.

The PAGASA homepage embeds alert names ("Heavy Rainfall Warning", "Flood Advisory") in its navigation menu and breadcrumbs as well as in actual active-warning sections. We can reliably detect the "No Active Warnings" state but cannot yet isolate active warnings from chrome text. To avoid fabricated advisories, this tool returns [] with a caveat when the page is reachable but the state is ambiguous, and [] with the explicit "no active warnings" signal when the homepage says so. For real-time advisories, call bagong.pagasa.dost.gov.ph directly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
regionNoe.g. "NCR", "Region VII", "CALABARZON". None returns all.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

The description discloses important behavioral quirks beyond the annotations: it cannot isolate active warnings from chrome text, and it returns [] with a caveat when state is ambiguous or with an explicit 'no active warnings' signal. This is valuable reliability context that annotations do not provide.

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?

The description is compact (about 70 words) yet information-dense. Each sentence adds value: purpose, reliability limitation, return behavior, and an alternative. It is front-loaded with the core purpose and well-structured with a caveat explanation.

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

Completeness5/5

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

Despite having an output schema and strong annotations, the description provides crucial context about failure modes, ambiguity handling, and the alternative source, making it complete for real-world usage. It covers edge cases (ambiguous state) that structured fields do not.

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% — the region parameter is already explained with examples ('e.g. "NCR", "Region VII"...'). The tool description adds no additional parameter information, so baseline 3 is appropriate.

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?

The first sentence, "Get active PAGASA weather alerts and advisories," uses a specific verb and resource, clearly distinguishing this from sibling tools like get_weather_forecast and get_active_typhoons. The scope (active alerts/advisories) is explicit and non-tautological.

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

Usage Guidelines5/5

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

The description explicitly states when the tool returns [] in ambiguous vs. no-active-warning states, and provides an alternative for real-time advisories: "For real-time advisories, call bagong.pagasa.dost.gov.ph directly." This gives clear when-to-use and when-not-to-use guidance.

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/xmpuspus/ph-civic-data-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server