Set up the books
books_setupStart the business's double-entry books, or change their settings. The first call needs currency (the base currency of every report; it can't change once something is booked) and makes the chart: "starter" (cash, bank, receivables, tax, equity, sales and common costs, numbered 1000-8000), "minimal" (only the eight accounts the books post to on their own), or a country's standard numbers: "skr03" or "skr04" for Germany (DATEV's charts, the ones German tax advisers work in; ask the adviser which), so accounts the books make later take that chart's numbers too and a DATEV export needs no mapping. The books start on start_date (default: the start of this fiscal year); enter what the business owned and owed that day as one entry against the account with the opening_balances role (3900; 9000 on the German charts), unpaid invoices and bills from before included. vat_basis says when VAT on the business's own sales is owed: "invoice" (by invoice date, the default) or "payment" (as customers pay: Germany's Ist-Versteuerung, §20 UStG, which the tax office allows on request), for invoices issued from vat_basis_from on. Entries are booked the same either way; the tax and vat_return reports then count each such invoice's VAT by its payments. An invoice keeps the rule of its own date, so a switch counts nothing twice. With post_invoices (default on), sent invoices and supplier bills, their payments and voids post on their own, those from start_date on right away. payment_accounts says where payments land per method, in and out (default: the bank account, cash in the cash account); rates are standing exchange rates for currencies the European Central Bank doesn't publish. Costs $0.001 per call; nothing if it fails.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "books_setup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chart | No | Only on the first call. | |
| rates | No | Currency -> one unit of it in the base currency, e.g. {"AED": "0.2486"}; null removes one. Used instead of the ECB's rate. | |
| currency | No | ISO 4217, e.g. "EUR". | |
| vat_basis | No | When VAT on sales is owed. Default "invoice". | |
| start_date | No | The first day the books cover. | |
| post_invoices | No | ||
| vat_basis_from | No | The first invoice date vat_basis holds for. Needed once something is booked; before that, default the start date. Not in a locked or closed period. | |
| payment_accounts | No | Payment method -> account code, e.g. {"card": "1020"}; null goes back to the default. Methods: bank_transfer, card, cash, check, online, other. | |
| fiscal_year_start | No | The month the fiscal year starts. Default 1 (January). |