Money value: inflation math from the official CPI
check_inflationReturns inflation math for a country: what an amount from one year is worth in another, the total price change, the average yearly rate and the latest inflation rate. The US series is the Bureau of Labor Statistics CPI-U, monthly, from 1913. Eligible European countries use the monthly Eurostat HICP index; other countries use the World Bank index, yearly. Inputs are amount, from, to, country and optional category. Applies to questions about what an amount from one year is worth in another year, or how prices changed over time. Today's interest rates and pay for a job are outside this result.
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": "check_inflation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Year or month to convert to; defaults to the latest figure | |
| from | Yes | Year (1990), or for the US and eligible European countries a month (1990-06) | |
| amount | Yes | Amount in the country's currency (dollars for the US) | |
| country | No | Country name or two-letter code; defaults to the United States. Amounts are in that country's currency. | |
| category | No | Price category; availability depends on country. |