Bookkeeping

Lock a period

books_lock · Changes data · Markdown

Locks the books through a date, so nothing new is booked on or before it; null unlocks.

$0.001 a call

From your agent’s balance. A call that fails costs nothing.

An example

September's VAT return is filed. Lock the books through September 30.

Your agent callsbooks_lock$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.

With these arguments
{
  "through": "2026-09-30",
  "reason": "VAT return for September filed"
}
What comes back
{
  "books": {
    "currency": "EUR",
    "start_date": "2026-01-01",
    "fiscal_year_start_month": 1,
    "locked_through": "2026-09-30",
    "closed_through": null,
    "post_invoices": true,
    "roles": {
      "cash": "1000",
      "bank": "1010",
      "receivable": "1100",
      "inventory": "1200",
      "input_tax": "1300",
      "payable": "2000",
      "sales_tax": "2100",
      "retained_earnings": "3200",
      "opening_balances": "3900",
      "sales": "4000",
      "cost_of_sales": "5000",
      "exchange": "7900"
    },
    "payment_accounts": {},
    "standing_rates": {},
    "taxes": [
      {
        "name": "VAT 19%",
        "rate": "19",
        "sales_account": "2100",
        "purchase_account": "1300",
        "reclaimable": true,
        "archived": false
      }
    ],
    "entries": 2,
    "last_entry": {
      "entry": 2,
      "date": "2026-10-01"
    },
    "bank_lines_to_match": 0,
    "today": "2026-10-14",
    "history": [
      {
        "at": "2026-10-14T08:00:00+00:00",
        "event": "created",
        "detail": "EUR, from 2026-01-01",
        "by": "key 4101 (Pip)"
      },
      {
        "at": "2026-10-14T08:00:00+00:00",
        "event": "locked",
        "detail": "2026-09-30 VAT return for September filed",
        "by": "key 4101 (Pip)"
      }
    ]
  }
}

Use it when

A month is closed or a tax return is filed.

What it does

Lock the books through a date (a closed month, a filed tax return): nothing new can be booked on or before it, by any tool or invoice. null unlocks. Every change is kept in the books' history.

What comes back

The books' settings with the new locked_through date. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
throughRequiredstring or nullMatches ^\d{4}-\d{2}-\d{2}$.
reasonstringUp to 300 characters.

The call

Over MCP, call books_lock on https://api.conecto.chat/mcp/books. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/books_lock \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"through":"2026-09-30","reason":"VAT return for September filed"}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
no_books409The business keeps no books yet.Set them up with books_setup (base currency, start date).
invalid_input400The date is in the future or not a date.Lock through a day that has passed.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md