Bookkeeping

Save a tracking category

books_save_tracking · Changes data · Markdown

Saves a tracking category with its options, like Xero's: a department, a region or a project line that any line of the books can carry.

$0.001 a call

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

An example

Track our numbers by department: service, sales and the warehouse.

Your agent callsbooks_save_tracking$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
{
  "name": "Department",
  "options": [
    "Service",
    "Sales",
    "Warehouse"
  ]
}
What comes back
{
  "category": {
    "name": "Department",
    "archived": false,
    "options": [
      {
        "name": "Service",
        "archived": false
      },
      {
        "name": "Sales",
        "archived": false
      }
    ]
  }
}

Use it when

The business wants profit and loss per department, branch or project; then pass tracking on entries, expenses, bank lines, bank rules, invoice and bill lines.

What it does

A tracking category, like Xero's: a department, a region or a project line, with its options. Up to two at a time. Any line can then carry one option of each (tracking: {"Department": "Service"}): journal entry lines, expenses, bank lines booked to an account, invoice and bill lines; profit and loss splits by a category with books_report by_tracking, or keeps to one option with tracking. Matched by name: options adds options, rename renames them on every line, archive stops new use.

What comes back

category: its name, whether it is archived, and its options with theirs. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
nameRequiredstring1 to 60 characters.
new_namestringUp to 60 characters.
optionsarray of stringsUp to 100 items.
renamearray of objectsUp to 100 items.
rename[].fromRequiredstringUp to 60 characters.
rename[].toRequiredstringUp to 60 characters.
archivearray of stringsUp to 100 items.
archivedbooleanArchive (or bring back) the whole category.

The call

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

Terminal
curl -X POST https://api.conecto.chat/v1/tools/books_save_tracking \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Department","options":["Service","Sales","Warehouse"]}'

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_input400A new category has no options, or a name is empty.Give a name and options.
not_found404An option to rename or archive does not exist.List them with books_list_tracking.
name_taken409The new name is another category's or option's.Pick another name.
limit_reached409Two categories are active already (Xero's limit too), or a category has 100 options.Archive a category first.

Give this to your agent.

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