Add or change accounts
Adds accounts or changes them, matched by code: name, type, description, code, role or archived.
$0.001 a call
From your agent’s balance. A call that fails costs nothing.
An example
Add an account for our Stripe balance, and one for the van we lease.
Your agent callsbooks_save_accounts$0.001 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.
{
"accounts": [
{
"code": "1020",
"name": "Stripe balance",
"type": "asset",
"description": "Card payments from the online shop, before they reach the bank."
},
{
"code": "6750",
"name": "Van lease",
"type": "expense"
}
]
}Use it when
The chart needs an account it lacks, or an account is renamed, renumbered or retired.
What it does
Add accounts or change them, matched by code: name, type (only while unused), description, a new code, archived (only with no balance and no role), a bank account's IBAN and BIC, and role. Roles are the accounts the books post to on their own: bank, cash, receivable, inventory, input_tax, sales_tax, payable, retained_earnings, opening_balances, sales, cost_of_sales, exchange, depreciation, accumulated_depreciation, asset_disposals, customer_credits, supplier_credits, expense_claims, import_vat. Giving a role moves it from the account that had it.
What comes back
accounts: each saved account with its code (account), name, type, role, archived and balance. Every change is kept in the books' history with what it was before. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
accountsRequired | array of objects | 1 to 100 items. |
accounts[].codeRequired | string | An account code from the chart, e.g. "6600". 1 to 20 characters. |
accounts[].name | string | Up to 120 characters. |
accounts[].type | string | One of: asset,liability,equity,income,expense. |
accounts[].role | string | One of: ,bank,cash,receivable,inventory,input_tax,sales_tax,payable,retained_earnings,opening_balances,sales,cost_of_sales,exchange,depreciation,accumulated_depreciation,asset_disposals,customer_credits,supplier_credits,expense_claims,import_vat. |
accounts[].description | string | Up to 500 characters. |
accounts[].archived | boolean | |
accounts[].new_code | string | Up to 20 characters. |
accounts[].iban | string | A bank account's IBAN, what bills paid in a batch are paid from; "" clears it. Up to 42 characters. |
accounts[].bic | string | Up to 11 characters. |
The call
Over MCP, call books_save_accounts on https://api.conecto.chat/mcp/books. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/books_save_accounts \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"accounts":[{"code":"1020","name":"Stripe balance","type":"asset","description":"Card payments from the online shop, before they reach the bank."},{"code":"6750","name":"Van lease","type":"expense"}]}'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). |
invalid_input400 | A code, type or role is not valid, or a new account has no name and type. | Fix what the message names; roles fit only some account types. |
type_fixed409 | The account has entries or a role, so its type stays. | Make a new account and move the balance with an entry. |
code_taken409 | The new code is used already. | Pick another code. |
has_role409 | The account holds a role and cannot be archived. | Give the role to another account first. |
has_balance409 | The account still has a balance and cannot be archived. | Move the balance to another account with books_record_entry first. |
in_use409 | A tax or a payment method uses the account. | Change the tax or payment_accounts first. |
role_needed409 | The books need the role the account holds. | Give that role to another account instead. |
archived409 | The account or tax is archived. | Use another one, or un-archive it with books_save_accounts. |
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 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 - Book a journal entry
books_record_entryBooks a journal entry of two or more balancing lines, for whatever the other tools do not cover.$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