commit_statement
Saves an approved statement preview into the month's draft using its draftId, replacing the account's figures and category lines so the same filing produces no duplicates.
Instructions
Saves the statement preview_statement prepared, exactly as previewed, into the month's draft (the user then closes the month): pass only its draftId, and only after the user said yes to this exact preview. It replaces the account's figures and, when the preview had categories, its lines by category for the month, so filing the same statement again changes nothing. advisor.draft_stale means the account's row, the loan lines it names, its lines or the income and expenses tracking changed since the preview, or the month is no longer the open one; draft_conflict means a write changed the draft during validation: prepare a new preview and ask for yes again; 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. Answers what was filled, which accounts still miss figures (missing), warnings (loan_balance_differs, checked again against the schedule as it is now: an early payment entered since the preview changes it), the queue, a new stateHash and nextStep. If the month-close wizard is open in a browser, tell the user to reload it before typing or closing there: Claude's changes appear only after a reload, and stale browser writes are rejected. At most 20 previews wait at once; a further one drops the oldest — commit before previewing more.
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_statement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draftId | Yes | The draftId preview_statement answered for the table the user said yes to |