MCP for Chatbots

Chatbots That
Get It Right

Customer support bots need accurate answers. TinyFn MCP gives your chatbot deterministic tools for timezone conversions, calculations, and validations.

The Problem

LLMs do math in their head. Sometimes they get it wrong. In customer support, wrong means lost trust.

Without TinyFn
Support Bot
I have 3 items at $67.50 each with 20% off. What's my total?
With 20% off, your total would be $154.00
Wrong! Actual answer is $162.00
With TinyFn MCP
Support Bot
I have 3 items at $67.50 each with 20% off. What's my total?
math/multiply → $202.50
finance/calculate_discount → $162.00
Your total is $162.00
3 × $67.50 = $202.50, minus 20% ($40.50)

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/convert6pm 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_daysFriday (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_timeJanuary 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.

Tool calls are automatic—no special prompting
Results are deterministic, not probabilistic
Works with any MCP-compatible framework
Setup MCP
E-commerce Support Bot
I want to buy 2 items at $89.99 each. What's the total with 20% off and 8.25% tax?
finance/calculate_discount → $143.98
math/percentage → $11.88 tax
Here's your order breakdown:

Subtotal: $179.98
Discount (20%): -$36.00
After discount: $143.98
Tax (8.25%): +$11.88
Total: $155.86

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 ✓
MCP Configuration
{
  "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
Full Setup Guide

Build smarter support bots

Get your free API key and give your chatbot accurate answers.