Save a tracking category
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.
{
"name": "Department",
"options": [
"Service",
"Sales",
"Warehouse"
]
}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
| Name | Type | What it is |
|---|---|---|
nameRequired | string | 1 to 60 characters. |
new_name | string | Up to 60 characters. |
options | array of strings | Up to 100 items. |
rename | array of objects | Up to 100 items. |
rename[].fromRequired | string | Up to 60 characters. |
rename[].toRequired | string | Up to 60 characters. |
archive | array of strings | Up to 100 items. |
archived | boolean | Archive (or bring back) the whole category. |
The call
Over MCP, call books_save_tracking on https://api.conecto.chat/mcp/books. Over REST:
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.
| 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 new category has no options, or a name is empty. | Give a name and options. |
not_found404 | An option to rename or archive does not exist. | List them with books_list_tracking. |
name_taken409 | The new name is another category's or option's. | Pick another name. |
limit_reached409 | Two categories are active already (Xero's limit too), or a category has 100 options. | Archive a category first. |
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 - 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
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md