Book a journal entry
Books a journal entry of two or more balancing lines, for whatever the other tools do not cover.
$0.01 a call
From your agent’s balance. A call that fails costs nothing.
An example
Book the 15,000 euro bank loan that landed in our account on October 1.
Your agent callsbooks_record_entry$0.01 a call
The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.
{
"date": "2026-10-01",
"memo": "Bank loan for the new forklift",
"reference": "Loan 4471-02",
"lines": [
{
"account": "1010",
"debit": "15000.00"
},
{
"account": "2300",
"credit": "15000.00"
}
]
}Use it when
Opening balances, a loan, depreciation, owner's drawings, a transfer between accounts, a correction.
- For a cost the business paid, use
books_record_expense. - For an invoice to a customer, use
invoices_create.
What it does
Book an entry: two or more lines, each a debit or a credit on an account, which must balance. For anything the other tools don't cover: opening balances, a loan, depreciation, owner's drawings, moving money between accounts, a correction. Entries are never edited; undo one with books_reverse_entry. Lines can carry a tax so the tax report counts them.
What comes back
The entry booked: its number, date, memo, reference, party, source and lines. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
dateRequired | string | YYYY-MM-DD. Matches ^\d{4}-\d{2}-\d{2}$. |
memo | string | Up to 500 characters. |
reference | string | Up to 120 characters. |
party | string | Who paid or was paid. Up to 200 characters. |
linesRequired | array of objects | 2 to 200 items. |
lines[].accountRequired | string | An account code from the chart, e.g. "6600". 1 to 20 characters. |
lines[].debit | number or string | A positive amount. Up to 24 characters. |
lines[].credit | number or string | A positive amount. Up to 24 characters. |
lines[].description | string | Up to 300 characters. |
lines[].tax | string | A tax by name (books_get lists them), e.g. "VAT 19%". Up to 60 characters. |
lines[].tracking | object | Tracking options by category, e.g. {"Department": "Service"} (books_list_tracking). |
currency | string | When it is not the base currency, e.g. "USD". The rate is then rate, a standing rate, or the European Central Bank's for the date. Matches ^[A-Za-z]{3}$. |
rate | number or string | One unit of currency in the base currency, e.g. "0.9241". Default: a standing rate, else the European Central Bank's reference rate for the date. Up to 24 characters. |
receipt_file_id | string | A file_id from the file store. Exactly 36 characters. |
The call
Over MCP, call books_record_entry on https://api.conecto.chat/mcp/books. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/books_record_entry \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"date":"2026-10-01","memo":"Bank loan for the new forklift","reference":"Loan 4471-02","lines":[{"account":"1010","debit":"15000.00"},{"account":"2300","credit":"15000.00"}]}'When it refuses
A refused call costs nothing and says what to do next.
| Code | When | What to do |
|---|---|---|
no_books409 | The business keeps no books yet. | Set them up with books_setup (base currency, start date). |
not_found404 | No account, tax, entry or file of the books has that code, name or id. | Check the codes with books_list_accounts and the taxes with books_get. |
archived409 | The account or tax is archived. | Use another one, or un-archive it with books_save_accounts. |
unbalanced400 | The debits and credits do not add up to the same amount. | Make the lines balance. |
before_start409 | The date is before the books start. | Use a later date. |
period_locked409 | The books are locked for that date. | Use a later date, or unlock with books_lock. |
no_rate409 | There is no exchange rate for the currency on that day. | Pass rate, or set a standing rate with books_setup rates. |
rates_loading503 | The day's exchange rates are still loading. | Try again in a few minutes, or pass rate. |
invalid_input400 | A line has no amount, both a debit and a credit, or the entry has fewer than two lines. | Give each line a debit or a credit, and at least two lines. |
More Bookkeeping tools
All 33 tools- Set up the books
books_setupStarts the business's double-entry books (currency, start date, chart of accounts) or changes their settings.$0.001 a call - Read the books' settings
books_getThe books' settings: currency, start date, fiscal year, locked period, roles, payment accounts, taxes, and what is waiting.Free* - List the chart of accounts
books_list_accountsEvery account with its code, type, role and balance on a day.Free* - Add or change accounts
books_save_accountsAdds accounts or changes them, matched by code: name, type, description, code, role or archived.$0.001 a call - Add or change a tax
books_save_taxAdds or changes a tax rate the books use (VAT, GST, sales tax), matched by name.$0.001 a call - Book an expense
books_record_expenseBooks a cost the business paid, with its tax split off and the receipt attached.$0.01 a call - Attach a receipt
books_attach_receiptAttaches a receipt from the file store to an entry that has none.$0.01 a call - Reverse an entry
books_reverse_entryUndoes an entry by booking its mirror image; entries are never edited or deleted.$0.01 a call
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md