Why your assistant should not add up your invoices
Your assistant should not add up an invoice. The system that keeps the hours should do the sum, and the assistant should read the result back to you.
A client checks one number on an invoice: the total. If it is wrong, you spend the next week on an awkward email thread instead of getting paid. This page explains where the sum should happen and how Socienne handles it.
What goes wrong when a chat adds the numbers?
In our view, a chat is the wrong place for arithmetic on money. A month of time entries is a long list. A language model reads that list as text. It can misread a row or skip one, and the answer still looks confident.
The bigger problem is the trail. A total typed in a chat points to nothing. When a client asks “why is this 41 hours and not 38?”, you need to show the 41 hours. A number the assistant computed in its head has no rows behind it.
So the rule we hold to is short. The server computes every sum, balance and total and returns it in the tool result. The assistant repeats numbers. It never adds them.
Where does the sum happen in Socienne?
Socienne is an MCP server. MCP is, in the words of its own documentation, “an open-source standard for connecting AI applications to external systems”. Claude calls Socienne’s tools, and Socienne keeps the record.
Socienne tells the assistant, in its server instructions: “Never add, subtract or compute a number the result does not hold.” The tools are built so the assistant never needs to.
| You ask | Tool | What comes back |
|---|---|---|
| How many hours did we bill Northwind in October? | get_time_total |
Billable, non-billable and unpriced minutes, and the amount per currency, already summed |
| Show October by project | summarize_time |
One summed row per project, plus a grand total. Never the entry rows |
| How many retainer hours are left? | get_quota_status |
Quota, logged and remaining for the period |
| Show me the entries | list_entries |
The rows only. No totals |
The last row matters. The tool that returns raw rows returns no total, so there is no half-finished sum for the assistant to complete.
Money is stored in whole cents with a named currency. A rate of $150.00 an hour is stored as 15000 cents in USD.
What happens with two currencies?
get_time_total returns the amount per currency and never adds across currencies.
Harborline, a made-up agency, bills one client in USD and one in EUR. A total for the month comes back as two amounts, one per currency. The assistant reports both. It does not convert one into the other or add them into one figure.
What happens to hours with no rate?
Billable time with no rate in effect on its date comes back as unpriced_minutes. Socienne never prices that time at zero, and never at a rate that started later.
That is the usual way agencies undercharge. A new project starts, someone logs time, and nobody set a rate. With this field, the assistant tells you the hours are there and unpriced. You set the rate. A rate change adds a new rate row from a date you choose, and the old rate stays readable.
A worked example
The names and numbers here are made up.
Kaavio is a small studio. In October it logged 40 billable hours for Northwind on a project with a rate of $150.00. It also logged 2 billable hours on a new Northwind project with no rate yet.
The owner asks Claude: “What did we bill Northwind in October?” Claude calls get_time_total for Northwind and October. Among the fields, the server returns:
| Field | Value |
|---|---|
billable_amounts |
USD 600000 cents |
unpriced_minutes |
120 |
Claude reads that back: “$6,000.00 of priced time. 120 minutes have no rate yet.” It does not multiply 40 by 150. It does not guess a rate for the 2 hours. The owner sets the rate, asks again, and gets a new total from the server.
What about the invoice itself?
Invoicing is open only to Zentered’s own business during the private beta. We use it for our own books. Here is how it works there.
- The invoice total is the server’s sum of the printed lines. The assistant relays it as returned.
- Before an invoice takes a number, the server runs two checks.
lines_match_entrieschecks that every line still matches its time entries.possible_duplicatechecks whether the same time looks billed on another invoice. - If either check fails, the invoice gets no number. The owner sees which entries failed and decides.
- Unpriced time blocks the invoice too. The owner sets a rate or leaves those entries off this invoice.
- Once issued, an invoice is frozen. No tool edits or voids it afterward.
What stays with the owner?
The server does the arithmetic. The owner makes the calls the arithmetic cannot make.
- Which hours are billable.
- What the rate is, and from what date.
- Whether a flagged entry is a real hour or a duplicate.
- When an invoice is final.
In our view, that split is the point. A model is good at turning “what did we bill Northwind?” into the right tool call. The record is good at adding. Keep each one on its own job.
Sources
- Model Context Protocol, What is MCP?, checked 2026-11-26