Bank account analysis
get_bank_account_analysisWhether one bank account's bank statements, its bank transactions in YESbusiness and the books agree: the verdict (ok, to_fix, blocking), the bank and book balances at the last statement date, the findings (code, dates, amount in cents, the fix and the rung it needs), what is fine, and the sources by period. Call it when the user asks why a bank account does not match, about holes in the statements, duplicates or a difference between bank and books. Pass bank_account_id (a uuid from the page context: analysis_to_fix, bank tasks, bank_account_id) or, when the user names a cash account by its number (e.g. 1020), account_number instead: it is resolved to that account's bank account. The result's bank_account.id is the uuid ui_open_bank_account_analysis takes. Explain the findings; the user presses every fix on the page.
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": {
"company_id": "<company_id>"
},
"name": "get_bank_account_analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_from | No | first day, YYYY-MM-DD; default 1 January of this year | |
| company_id | Yes | The company to work on — one of list_my_companies' company_id values. | |
| date_until | No | last day, YYYY-MM-DD; default today | |
| account_number | No | the cash account's number the user named (e.g. 1020), when no uuid is in the page context | |
| bank_account_id | No | the bank account's uuid, from the page context |