Inflation calculator (CPI, 1913 to latest month)
calculate_inflationAdjust a dollar amount for U.S. inflation between any two periods from 1913 to the latest published month using official BLS CPI data, returning the adjusted value and inflation rates.
Instructions
Adjusts a dollar amount for inflation between any two periods from 1913 to the latest month the U.S. Bureau of Labor Statistics has published, using the official CPI-U (or CPI-W or core CPI). Checks the BLS Public Data API live for months newer than its bundled data (bundled through September 2026, fetched 2026-11-03), so it knows CPI figures newer than a model's training data. Handles the October 2025 gap: BLS published no October 2025 CPI because of the 2025 lapse in appropriations. Returns the adjusted amount, cumulative and average annual inflation, and the exact index values used.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"amount": "<amount>",
"from": "<from>"
},
"name": "calculate_inflation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Ending period, default "latest": "YYYY" for the annual average, "YYYY-MM" for one month, or "latest". | |
| from | Yes | Starting period, e.g. "1995" or "2020-01": "YYYY" for the annual average, "YYYY-MM" for one month, or "latest". | |
| amount | Yes | Dollar amount in the 'from' period. | |
| series | No | cpi_u (default, the headline CPI), cpi_w (wage earners, used for Social Security COLAs) or core (CPI-U less food and energy). |