Did a pay raise beat inflation?
compare_raise_to_inflationCompare a pay raise with CPI inflation over the same period using official BLS data to calculate the real raise and whether pay kept pace.
Instructions
Compares a pay change with CPI inflation over the same period using official BLS data through the latest published month (checked live). Returns the nominal raise, inflation, the real (inflation-adjusted) raise, the pay needed to keep pace, and the gain or shortfall. Works for salaries, hourly wages, rents or any recurring amount.
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": {
"old_pay": "<old_pay>",
"new_pay": "<new_pay>",
"from": "<from>"
},
"name": "compare_raise_to_inflation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | When to measure, default "latest": "YYYY" for the annual average, "YYYY-MM" for one month, or "latest". | |
| from | Yes | When the old pay started, e.g. "2024-01": "YYYY" for the annual average, "YYYY-MM" for one month, or "latest". | |
| 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). | |
| new_pay | Yes | Pay after the change, same unit. | |
| old_pay | Yes | Pay before the change (annual salary or hourly rate). |