commit_loan
Saves a prepared loan preview after the user confirms it, using only the preview draft ID. Handles expired drafts or name conflicts by requiring a new preview and confirmation.
Instructions
Saves the loan preview_loan prepared, exactly as previewed: pass only its draftId, and only after the user said yes to this exact preview. advisor.draft_not_found means the preview expired (30 minutes), was used already or is another user's: prepare a new preview and ask for yes again. advisor.loan_exists means the name was taken meanwhile; advisor.draft_stale means its member or currency was renamed or removed: prepare a new preview. Answers the saved row, loanLineThisMonth (true when the month wizard now lists this loan's payment line), the preview's warnings (loan_balance_differs among them) and nextStep.
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": {
"draftId": "<draftId>"
},
"name": "commit_loan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draftId | Yes | The draftId preview_loan answered for the loan the user said yes to |