Flag infrastructure spending anomalies
flag_infra_anomaliesFlag infrastructure projects for review by cross-referencing Philippine procurement, earthquake, and typhoon data.
Instructions
Flag PhilGEPS infrastructure projects that warrant further review by cross-referencing PHIVOLCS earthquakes and PAGASA typhoon footprints.
This tool emits heuristic anomaly indicators, not accusations. Every flagged item ships with the rule that fired and a disclaimer noting that patterns may have legitimate explanations.
Heuristic rules:
duplicate_titles_same_agency: same agency files multiple notices with effectively identical titles (case-insensitive) within the window
high_cost_no_published_progress: cost_php exceeds min_cost_php. The PhilGEPS open listing publishes no progress data for ANY notice, so this is a cost-threshold transparency flag, not a project-specific "progress is missing" finding.
hazard_overlap: project location keywords overlap with a recent PHIVOLCS earthquake (>=M4.0 in last 30d) or an active PAGASA typhoon footprint, suggesting urgency or post-disaster reconstruction context. Examples:
flag_infra_anomalies() flag_infra_anomalies(min_cost_php=100_000_000)
On failure: this tool never raises. data_status is "success" when PhilGEPS, PHIVOLCS, and PAGASA all load, "indeterminate" when one or two fail, and "unavailable" when all three fail; upstream_error is true for the last two. A failed sub-call shows up as a caveats entry naming the source, and the flagged list still returns data from every source that did respond.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | PH region filter for the project list. | |
| province | No | Province filter (partial match). | |
| min_cost_php | No | Threshold for the high_cost_no_published_progress rule (default 50,000,000 PHP). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||