The Problem
LLMs do math in their head. Sometimes they get it wrong. In customer support, wrong means lost trust.
Real Chatbot Failures
These aren't hypotheticals—they're actual mistakes that cost companies money and trust.
Timezone Disasters
Customer: "Your website says the sale starts at 9am PST. What time is that in Berlin?"
Chatbot guessed: "That would be 5pm in Berlin."
TinyFn calculates: time/convert → 6pm CET (9 hour difference, not 8)
Customer missed the sale by an hour. Lost sale + angry review.
Shipping Date Math
Customer: "If I order today (Friday), when will it arrive with 5-day shipping?"
Chatbot guessed: "You'll receive it by Wednesday."
TinyFn calculates: datetime/add_business_days → Friday (5 business days, not calendar days)
Customer expected it Wednesday, got it Friday. Support ticket filed.
Subscription Renewal
Customer: "My annual subscription started Jan 15. When does it renew?"
Chatbot guessed: "Your subscription renews on January 15th next year."
TinyFn calculates: datetime/add_time → January 15, 2026 (with exact date handling)
Simple case, but leap years and edge cases trip up LLMs regularly.
Loan & Payment Calculations
Customer: "What's the monthly payment on a $15,000 loan at 6.5% APR for 48 months?"
Chatbot guessed: "Your monthly payment would be approximately $355."
TinyFn calculates: finance/loan_payment → $355.49 (exact amortization formula)
$0.49 × 48 months = $23.52 discrepancy over loan lifetime.
How It Works
When your chatbot has TinyFn tools via MCP, it automatically calls them instead of guessing. The LLM recognizes when a calculation is needed and uses the right tool.
Tools Your Chatbot Will Use
The most common customer questions map directly to TinyFn tools.
Timezone Conversions
"What time is the 3pm EST webinar in Tokyo?"
time/convert→ 5:00 AM JST (+1 day)
Date Calculations
"When does my 30-day trial end?"
datetime/add_time→ March 5, 2026
Price Calculations
"What's 25% off $149.99?"
finance/calculate_discount→ $112.49
Unit Conversions
"What's 5'10 in centimeters?"
convert/length→ 177.8 cm
Format Validation
"Is this order ID valid?"
validate/uuid→ Valid format ✓
Distance Calculations
"How far is the nearest store?"
geo/haversine_distance→ 3.2 miles
Payment Calculations
"What's my monthly payment for this loan?"
finance/loan_payment→ $287.50/month
Email Validation
"Is this email address correct?"
validate/email→ RFC-compliant ✓
{
"mcpServers": {
"tinyfn": {
"url": "https://api.tinyfn.io/mcp/all/",
"headers": {
"X-API-Key": "your-api-key"
}
}
}
}
Quick Setup
- Add TinyFn tools to any MCP-compatible chatbot framework
- 500+ deterministic tools available for accurate responses
- No more hallucinated timezone conversions or math errors
Build smarter support bots
Get your free API key and give your chatbot accurate answers.