Bookkeeping

Close a fiscal year for good

books_close_year · Deletes data · Markdown

Closes a fiscal year for good: nothing is booked on or before its last day again, and it can't be undone.

$0.001 a call

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

An example

Our 2025 accounts are signed off. Close the 2025 books for good.

Your agent callsbooks_close_year$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
{
  "year_end": "2025-12-31",
  "reason": "Annual accounts 2025 adopted"
}
What comes back
{
  "books": {
    "currency": "EUR",
    "start_date": "2025-01-01",
    "fiscal_year_start_month": 1,
    "locked_through": null,
    "closed_through": "2025-12-31",
    "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": [],
    "entries": 0,
    "last_entry": null,
    "bank_lines_to_match": 0,
    "today": "2026-10-14",
    "history": [
      {
        "at": "2026-10-14T08:00:00+00:00",
        "event": "created",
        "detail": "EUR, from 2025-01-01",
        "by": "key 4101 (Pip)"
      },
      {
        "at": "2026-10-14T08:00:00+00:00",
        "event": "year_closed",
        "detail": "2025-12-31 Annual accounts 2025 adopted",
        "by": "key 4101 (Pip)"
      }
    ]
  }
}

Use it when

The annual accounts and tax returns for a year are final.

  • For closing a month or a quarter, which can be reopened, use books_lock.

What it does

Close a fiscal year once its accounts and tax returns are final: nothing can be booked on or before its last day again, by any tool, invoice or unlock, and every earlier year is closed with it. It can't be undone; a correction found later is booked in the open year. Monthly work uses books_lock instead.

What comes back

The books' settings with closed_through, the last day closed for good. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
year_endRequiredstringThe fiscal year's last day, like 2025-12-31. Matches ^\d{4}-\d{2}-\d{2}$.
reasonstringUp to 300 characters.

The call

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

Terminal
curl -X POST https://api.conecto.chat/v1/tools/books_close_year \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"year_end":"2025-12-31","reason":"Annual accounts 2025 adopted"}'

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 not the last day of a fiscal year, the year hasn't ended, or it is before the books start.Give the last day of a fiscal year that has ended, as the message says.
year_closed409That year is closed for good already.Nothing to do.

Give this to your agent.

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