Summarize infrastructure spending
summarize_infra_spendingAggregate Philippine infrastructure procurement statistics from PhilGEPS to summarize spending by category, region, and top agencies, with filters for year and region.
Instructions
Aggregate infrastructure procurement statistics over the latest PhilGEPS window.
This tool aggregates the same infra-keyword-matched notice window search_infra_projects reads (cached 6h). rules_evaluated names which breakdowns ran, today by_category and by_region. rules_not_computable names by_funding_source, retired to an always-empty dict because PhilGEPS notices carry no funding source field. sample_size and sufficient_for_per_capita flag whether the window, today under the 500-notice threshold, is large enough for a per-100k rate. Examples:
summarize_infra_spending() summarize_infra_spending(region="ncr", year=2025)
On failure: data_status "unavailable", upstream_error true, totals zero and by_category/by_region/top_agencies empty, with the real PhilGEPS error in caveats. No validation_error path exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Filter publish date to this calendar year. Drops an undated record and notes the dropped count in caveats. | |
| region | No | PH region filter (partial match). | |
| funding_source | No | Reserved for future DPWH integration; PhilGEPS notices do not expose funding source, so this filter is a no-op today. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||