Index-adjust an amount by the CPI
adjust_by_cpiAdjusts an amount (rent, salary, contract price) from one month to another by Statistics Norway's consumer price index: amount × index(to) / index(from). Costs 0.005 USDC per successful call (x402, Base). Errors are free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | The month to adjust to, YYYY-MM. Default: the latest month. | |
| from | No | The month the amount was set, YYYY-MM. Required. | |
| amount | No | The amount to adjust, e.g. 15000. |