Skip to main content
Glama

Linked payment schedule (לוח תשלומים צמוד מדד)

calculate_linked_schedule

Builds index-linked payment schedules from amount, start date, interval, and count, adjusting each payment to the CBS index known on its date and returning linked amounts, differentials, and totals.

Instructions

Build an index-linked payment schedule: payments payments of amount every interval_months from start_date — monthly rent, quarterly instalments to a contractor linked to the residential building inputs index (200010), alimony, a linked loan — each adjusted from one base index to the index known on its payment date (המדד הידוע: month M is known from the 16th of M+1), chain-linked across CBS base changes. The base is either base_month (the base index month written in the contract) or base_date (e.g. the signing date: the index known on it). Returns every payment with its index month and value, factor, linked amount and linkage differential (הפרשי הצמדה), plus totals; payments whose index is not published yet are marked estimated and use the latest published index. no_decrease applies a contract-style floor at the base amount. One API request.

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>",
      "start_date": "<start_date>",
      "payments": "<payments>"
    },
    "name": "calculate_linked_schedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoCBS index code, e.g. 120010 for the headline CPI (find codes with search_indices)
amountYesBase amount of each payment, e.g. 6000 (monthly rent)
paymentsYesNumber of payments
base_dateNoBase date, YYYY-MM-DD, e.g. the contract signing date; the index known on it is the base (use this or base_month)
base_monthNoBase index month, YYYY-MM (use this or base_date)
start_dateYesDate of the first payment, YYYY-MM-DD
no_decreaseNoNever pay less than the base amount (index floor). Default false
interval_monthsNoMonths between payments: 1 monthly (default), 3 quarterly, 12 yearly

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the burden and does well: it discloses the index-known lag (month M known from the 16th of M+1), chain-linking across CBS base changes, the estimated flag for unpublished indices using the latest published index, and the no_decrease floor. It omits failure modes (invalid index code, base_date vs base_month conflict) and the 360-payment cap, which the schema carries instead.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core construction sentence is front-loaded and the exception rules (base month vs base date, estimation, floor) follow in a logical order. It is dense to the point of overloading a single paragraph with parenthetical Hebrew terms and examples, but almost nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 8 parameters, no annotations and no output schema, the description still explains the return shape (index month and value, factor, linked amount, linkage differential, plus totals) and the estimation caveat. An agent has what it needs to call this correctly and interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns above that by explaining the semantic distinction between base_month (index month written in the contract) and base_date (index known on that date) and by framing no_decrease as a contract-style floor rather than a boolean toggle. It adds genuine meaning beyond the field-level text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a concrete verb and resource ('Build an index-linked payment schedule') and quantifies the shape of the output (payments of amount every interval_months). It never names the obvious sibling calculate_linked_amount for the single-payment case, so differentiation is inferred from wording rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Concrete scenarios (monthly rent, quarterly contractor instalments linked to index 200010, alimony, a linked loan) tell the agent when this tool applies. There are no explicit exclusions or a named alternative for one-off calculations, so the guidance stops short of full routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.