calculate_with_prepayment
Compute EMI outcomes when regular prepayments reduce principal, revealing shorter tenure and interest savings.
Instructions
Calculate EMI outcomes when regular prepayments reduce the outstanding principal.
Args: principal: Loan amount. interestRate: Annual interest rate expressed in percent (e.g. 9.5). tenure: Total tenure in months. prepayment_amount: Amount paid on each prepayment event. prepayment_frequency: Frequency descriptor (for example, "monthly" or "quarterly"). prepayment_start_month: Month number when prepayment begins (1-indexed). calculation_method: Backend calculation strategy (for example, "reducing").
Returns: Backend JSON payload capturing EMI adjustments, duration changes, and savings or an error structure.
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": {
"principal": "<principal>",
"interestRate": "<interestRate>",
"tenure": "<tenure>",
"prepayment_amount": "<prepayment_amount>",
"prepayment_frequency": "<prepayment_frequency>",
"prepayment_start_month": "<prepayment_start_month>"
},
"name": "calculate_with_prepayment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tenure | Yes | ||
| principal | Yes | ||
| interestRate | Yes | ||
| prepayment_amount | Yes | ||
| calculation_method | No | reducing | |
| prepayment_frequency | Yes | ||
| prepayment_start_month | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |