save_account_lines
Saves an account's income and expense category lines for a closed month, allocating its pre-set totals without changing them; use only before the first open month.
Instructions
Saves an account's lines by category (income and expense) for a CLOSED month before the first open month of the wizard queue: what that month's account totals were made of. For the first open month use preview_statement / commit_statement; this tool refuses that month and later ones with 409 advisor.use_statement_tools. The totals are not changed here (the family edits them in Accounts): the lines allocate them, their sum per flow may not exceed the account's total (409 lines_exceed_total with lines and total), and what they leave is unallocated. account is the account's name and member exactly as the month's cash flow holds them (409 account_not_in_month otherwise); amounts are in the account's currency; each category once, never the reserved loan_payment one. It REPLACES the account's lines of that month; an empty items list clears them. Confirm the numbers with the user before saving.
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": {
"month": "<month>",
"account": "<account>",
"items": "<items>"
},
"name": "save_account_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| month | Yes | The closed month, YYYY-MM | |
| account | Yes |