Account statement
get_account_statementThe account statement: the movements of one or more accounts over a date range, as a flat list of ledger rows with a running balance — this is the tool for 'what happened on account X', not for totals. Choose the scope: 'single' with account (the account NUMBER, e.g. '1020'), 'range' with from_account and to_account (account numbers), or 'all' for every account. Each row has the booking date, number and status, the description, the counterpart accounts, and debit / credit / running as integers in CENTS of the home currency — divide by 100 and present francs with two decimals. Rows with is_opening true are the account's starting balance, not a movement. Only the FIRST page of rows is returned: items_total is how many movements match in total, items_shown how many you can see. When items_total is larger than items_shown, say so and offer to narrow the dates instead of summing the rows you got — for totals, use the balance sheet or income statement.
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": {
"scope": "<scope>",
"date_from": "<date_from>",
"date_to": "<date_to>",
"company_id": "<company_id>"
},
"name": "get_account_statement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | 'single' for one account, 'range' for a band of account numbers, 'all' for every account. | |
| account | No | scope 'single': the account's number or id. | |
| date_to | Yes | End of the period, YYYY-MM-DD, inclusive. | |
| date_from | Yes | Start of the period, YYYY-MM-DD, inclusive. | |
| company_id | Yes | The company to work on — one of list_my_companies' company_id values. | |
| to_account | No | scope 'range': the last account number in the band. | |
| from_account | No | scope 'range': the first account number in the band. |