Philippine consumer-price inflation
get_inflation_statsGet year-on-year headline inflation for the Philippines or any region from PSA official data.
Instructions
Headline consumer-price inflation (year-on-year, all items) from PSA.
Source: PSA OpenSTAT Consumer Price Index, 2018-based. The tool discovers the current CPI series by text, never a hardcoded table id, and returns the most recently published month's year-on-year change. PSA publishes with a lag, so the reported period is the latest one PSA has, not always the current month. Examples:
get_inflation_stats() national headline inflation, latest month get_inflation_stats(area="NCR") one region
On failure: every failure, including an area name PSA does not list, sets data_status "unavailable" and upstream_error true, with the real error or a not-found message in caveats. validation_error stays false in every case, because a bad area name is treated as an outage here, not a caller mistake.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_inflation_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | Region or "Philippines". None returns the national figure. For example "NCR", "Region VII", "Davao Region". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||