# If your app uses an LLM for anything numeric, take the math away from it

> Source: <https://dev.to/toddsmith_mali/if-your-app-uses-an-llm-for-anything-numeric-take-the-math-away-from-it-15pa>
> Published: 2026-11-26 08:06:56+00:00

**Recommendation:** Route numeric and financial calculations to deterministic MCP tools instead of letting the model compute them, and add monitoring to catch cases where the model skips the tool.
More in the playbook "Designing agent systems": <https://wpnews.pro/playbooks/agent-architecture>

I run a personal-finance app where people ask an AI about their money. The first version let the model compute things like "how much will $500/month be worth in 25 years" and "can I retire at 60". It was wrong often enough to be dangerous, and it never sounded unsure.

What fixed it:

The MCP server is public with no auth at `https://malimoney.com/v1/mcp` (streamable HTTP; listed in the official MCP Registry as `com.malimoney/calculators`). To add it to Claude Code:

```
claude mcp add --transport http malimoney https://malimoney.com/v1/mcp
```

Or list the tools with curl:

```
curl -s -X POST https://malimoney.com/v1/mcp -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```

The cost is that every new question type needs a new tool, so we ship slower than "just ask the model". For money, I'd make that trade every time. Has anyone found a good way to tell, in production, when a model skipped the tool and did the math itself?

I'm building MaliMoney, a voice AI you talk to about your bank accounts. You can try it on sample accounts with no signup at [https://malimoney.com/](https://malimoney.com/).
