{"slug": "if-your-app-uses-an-llm-for-anything-numeric-take-the-math-away-from-it", "title": "If your app uses an LLM for anything numeric, take the math away from it", "summary": "A developer building MaliMoney, a voice AI for personal finance, replaced LLM-computed math with a public MCP server of deterministic calculator tools, after the model's arithmetic on questions like retirement projections proved wrong often enough to be dangerous while still sounding confident. The server is listed in the official MCP Registry as com.malimoney/calculators and is exposed over streamable HTTP without authentication, addable to Claude Code via a single command. The developer notes the trade-off that each new question type requires a new tool, slowing shipping compared with letting the model answer directly, and asks how to detect in production when a model skips the tool and does the math itself.", "body_md": "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.\n\nWhat fixed it:\n\nThe 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:\n\n```\nclaude mcp add --transport http malimoney https://malimoney.com/v1/mcp\n```\n\nOr list the tools with curl:\n\n```\ncurl -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\"}'\n```\n\nThe 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?\n\nI'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/).", "url": "https://wpnews.pro/news/if-your-app-uses-an-llm-for-anything-numeric-take-the-math-away-from-it", "canonical_source": "https://dev.to/toddsmith_mali/if-your-app-uses-an-llm-for-anything-numeric-take-the-math-away-from-it-15pa", "published_at": "2026-11-26 08:06:56+00:00", "updated_at": "2026-11-26 08:13:45.811114+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "agent-protocols", "large-language-models", "ai-products"], "entities": ["MaliMoney", "Claude Code", "MCP Registry"], "also_reported_by": [], "takeaway": "Moving numeric calculations out of the LLM and into deterministic MCP calculator tools eliminated confidently wrong financial math, at the cost of needing a new tool for each new question type.", "recommendation": {"advice": "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.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/if-your-app-uses-an-llm-for-anything-numeric-take-the-math-away-from-it", "markdown": "https://wpnews.pro/news/if-your-app-uses-an-llm-for-anything-numeric-take-the-math-away-from-it.md", "text": "https://wpnews.pro/news/if-your-app-uses-an-llm-for-anything-numeric-take-the-math-away-from-it.txt", "jsonld": "https://wpnews.pro/news/if-your-app-uses-an-llm-for-anything-numeric-take-the-math-away-from-it.jsonld"}}