compare_loans
Compare EMI outputs for multiple loan scenarios in one API call, enabling side-by-side evaluation to inform borrowing decisions.
Instructions
Compare EMI outputs for multiple loan scenarios in a single API call.
Args:
scenarios: List of loan dictionaries with keys
name, principal, interestRate, and tenure.
Optional key calculation_method overrides the default.
calculation_method: Default strategy applied when a scenario omits it.
Returns: Backend JSON payload with comparison results 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": {
"scenarios": "<scenarios>"
},
"name": "compare_loans"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenarios | Yes | ||
| calculation_method | No | reducing |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |