Journal
get_journalThe journal: the company's bookings in CHRONOLOGICAL order (oldest first) over a date range, one page at a time — the view for 'what was booked in March', 'walk me through last week's entries' or checking a sequence of booking numbers. date_from and date_to are required (YYYY-MM-DD, inclusive). Each row: date, number, status (draft = provisional, not yet in the reports; complete = booked), description, the debit and credit account labels, amount_home (integer CENTS of the home currency — divide by 100), the cost centers on its legs and its source (how it was created: a bank import, the assistant, a connector). Filters: status, search (description or number), account_id (only bookings with a leg on that account). items_total says how many bookings match; ask for the next page only when the user needs it, and never add amounts across many rows yourself — use the income statement or balance sheet for totals. For the leg-by-leg journal document (every debit and credit line), call export_report with report 'journal'.
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": {
"date_from": "<date_from>",
"date_to": "<date_to>",
"company_id": "<company_id>"
},
"name": "get_journal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number, from 1 (default 1). | |
| search | No | Free text matched against the booking description or number. | |
| status | No | Only bookings in this state; omit for both. | |
| date_to | Yes | Last booking date, YYYY-MM-DD, inclusive. | |
| per_page | No | Rows per page, 1-50 (default 25). | |
| date_from | Yes | First booking date, YYYY-MM-DD, inclusive. | |
| account_id | No | Only bookings with a leg on this account id. | |
| company_id | Yes | The company to work on — one of list_my_companies' company_id values. |