AI basics · Free guides
Never let your AI agent do the maths: the 3 T's
A client asked an AI agent how many enquiries came in during May. In one chat it said 189, then 309, then 367. The real number was 368. Here's why it happens, and the 3 T's template to stop it.
- Runs in
- ChatGPT, Claude, Gemini or Claude Code
- Time
- 10 min
What happened
A client asked an AI agent how many enquiries came in during May. In one chat it said 189, then 309, then 367, and the real number was 368. It was searching the CRM and adding them up itself, and it kept missing some.
Why
An AI model predicts words. Counting a long list exactly is a job for a program.
We tried it ourselves on 13 November 2026. We gave Claude Haiku 5.5 a 900-row export with no tools and asked for May's count three times. Twice it said 326, which was right. Once it guessed "around 630".
Two right answers out of three is still not a number you can report.
What's a tool?
Without a tool, the AI reads your rows and predicts a number. That's a guess. With a tool, it runs code, like a Python script or a report query, that does the counting, then reads back the exact answer. MCP is the standard way to plug tools into an AI (modelcontextprotocol.io).
The 3 T's
T1. Tool: let code do the maths
Add this to your AI's instructions.
For any number, like a count, a total or a percentage, use the report tool or run code to calculate it. Never count or add up rows yourself. If you can't calculate it, say so and tell me what data you need.
T2. Terms: write down what your words mean
"Enquiry" can mean different things to different people, and to your AI. A rules sheet says what counts. The lines below are an example. Change them to fit your business.
Enquiry: [what counts, e.g. a new person asking about a trip]
Booking: [what counts, e.g. a trip with a paid deposit]
Write one line for every word your numbers depend on.
T3. Test: check it before you trust it
Write down questions where you already know the right answer.
| Question | Right answer | Run 1 | Run 2 | Run 3 |
|---|---|---|---|---|
| How many enquiries came in during May? | 368 | |||
Ask each question three times. Every run must match before you trust it.
Related
- Put the T1 line into your AI's standing instructions. The system prompt page shows where, plus the ROLE template.
- Want an agent to try this on? Start with the Build Remi page.