Index-linkage calculator (הצמדה למדד)
calculate_linked_amountAdjusts an amount by a CBS price index (e.g. CPI) between two dates or months to compute index-linked rent, alimony, or loan balances, with an optional no-decrease floor.
Instructions
Adjust an amount by a CBS index between two points in time, e.g. rent, alimony, a contractor payment or a loan balance linked to the CPI or to the residential building inputs index (200010). Two methods: (1) from_month/to_month — the actual index of those months (מדד בגין), computed from published values and CBS chaining coefficients, in either direction; (2) from_date/to_date — the index known on each date (המדד הידוע: month M is known from the 16th of M+1), via the official CBS calculator. no_decrease keeps the original amount when the index fell (a common contract floor). Returns the linked amount, factor, change_pct, both index values with bases and the chaining coefficient.
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>"
},
"name": "calculate_linked_amount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | CBS index code, e.g. 120010 for the headline CPI (find codes with search_indices) | |
| amount | Yes | Amount to adjust, e.g. 5000 | |
| to_date | No | Target date, YYYY-MM-DD (method 2). Defaults to today; future dates are rejected | |
| to_month | No | Target index month, YYYY-MM (method 1). Defaults to the latest published | |
| from_date | No | Base date, YYYY-MM-DD (method 2) | |
| from_month | No | Base index month, YYYY-MM (method 1) | |
| no_decrease | No | Never return less than the original amount (index floor). Default false |