calculate_installments
Calculate the exact monthly payment for a SKU under a chosen installment plan. Applies active promotions, surcharges, fees, and interest to ensure accurate quotes before offering installments.
Instructions
Calculate the exact monthly payment for a SKU under one instalment plan. Applies the active promotion, the plan surcharge, the fee and the interest. Never quote instalments without calling this.
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": {
"sku": "<sku>",
"plan_id": "<plan_id>"
},
"name": "calculate_installments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | Yes | ||
| plan_id | Yes | Plan id returned by list_installment_plans. | |
| quantity | No | Default 1. |