Your agent converts 98.6°F to Celsius and says 37.1°C. Close — but it's exactly 37.0°C. For medical, scientific, or engineering agents, "close enough" is not enough. These tools use exact conversion factors for every unit pair.
All Conversion Tools (42)
Your agent gets access to 42 conversion tools via the /mcp/convert/ endpoint. Here's the complete list:
| Tool | Description |
|---|---|
convert/temperature/c-to-f | Celsius To Fahrenheit |
convert/temperature/f-to-c | Fahrenheit To Celsius |
convert/temperature/c-to-k | Celsius To Kelvin |
convert/temperature/k-to-c | Kelvin To Celsius |
convert/length/m-to-ft | Meters To Feet |
convert/length/ft-to-m | Feet To Meters |
convert/length/km-to-mi | Kilometers To Miles |
convert/length/mi-to-km | Miles To Kilometers |
convert/length/in-to-cm | Inches To Centimeters |
convert/length/cm-to-in | Centimeters To Inches |
convert/weight/kg-to-lb | Kilograms To Pounds |
convert/weight/lb-to-kg | Pounds To Kilograms |
convert/weight/oz-to-g | Ounces To Grams |
convert/weight/g-to-oz | Grams To Ounces |
convert/weight/stone-to-kg | Stone To Kilograms |
convert/volume/l-to-gal-us | Liters To Gallons Us |
convert/volume/gal-us-to-l | Gallons Us To Liters |
convert/volume/l-to-gal-uk | Liters To Gallons Uk |
convert/volume/gal-uk-to-l | Gallons Uk To Liters |
convert/volume/ml-to-fl-oz | Milliliters To Fluid Ounces |
convert/volume/cups-to-ml | Cups To Milliliters |
convert/volume/ml-to-cups | Milliliters To Cups |
convert/area/sqm-to-sqft | Square Meters To Square Feet |
convert/area/sqft-to-sqm | Square Feet To Square Meters |
convert/area/acres-to-hectares | Acres To Hectares |
convert/speed/mph-to-kph | Mph To Kph |
convert/speed/kph-to-mph | Kph To Mph |
convert/speed/mps-to-mph | Meters Per Second To Mph |
convert/speed/knots-to-kph | Knots To Kph |
convert/data/bytes-to-human | Bytes To Human |
convert/data/kb-to-mb | Kilobytes To Megabytes |
convert/data/mb-to-gb | Megabytes To Gigabytes |
convert/base/dec-to-bin | Decimal To Binary |
convert/base/bin-to-dec | Binary To Decimal |
convert/base/dec-to-hex | Decimal To Hexadecimal |
convert/base/hex-to-dec | Hexadecimal To Decimal |
convert/base/dec-to-oct | Decimal To Octal |
convert/color/hex-to-rgb | Hex To Rgb |
convert/color/rgb-to-hex | Rgb To Hex |
convert/time/hours-to-minutes | Hours To Minutes |
convert/time/minutes-to-seconds | Minutes To Seconds |
convert/time/seconds-to-hms | Seconds To Hms |
Agent Scenarios
Here's how real agents use these tools:
1. Recipe scaling agent
A cooking agent converts 2 cups to milliliters for an international user. convert/cups-to-ml returns the exact value.
convert/cups-to-ml
{ "cups": 2 }
2. Fitness tracking agent
A health agent converts a user's weight from pounds to kilograms for BMI calculation. convert/lb-to-kg ensures precision.
convert/lb-to-kg
{ "lb": 165 }
3. DevOps monitoring agent
An infrastructure agent converts disk usage from bytes to human-readable GB. convert/bytes-to-gb handles the math correctly.
convert/bytes-to-gb
{ "bytes": 1099511627776 }
MCP Setup
Add conversion tools to your agent in under 2 minutes. Choose your client:
Claude Desktop / Claude Code
Add this to your MCP config:
{
"mcpServers": {
"tinyfn-convert": {
"url": "https://api.tinyfn.io/mcp/convert/",
"headers": {
"X-API-Key": "your-api-key"
}
}
}
}
Cursor
Go to Settings > MCP and add a new server:
- Type: SSE
- URL:
https://api.tinyfn.io/mcp/convert/sse - Headers:
X-API-Key: your-api-key
Tip: Use the category-specific endpoint (/mcp/convert/) for the best experience. The all-in-one endpoint (/mcp/all/) works too but has 500+ tools which some clients handle less efficiently.
When to Use These Tools
Use conversion MCP tools when your agent needs to:
- Guarantee correctness — when wrong answers have real consequences
- Process user data — when you're operating on actual user input, not hypothetical examples
- Maintain consistency — when the same input must always produce the same output
You don't need these tools for casual conversation or rough estimates. Use them when precision matters.
Ready to add conversion tools to your agent?
Get Free API Key 100 requests/month free. No credit card required.Frequently Asked Questions
Why do LLMs get unit conversions wrong?
LLMs memorize approximate conversion factors and apply them inconsistently. They confuse US and imperial gallons, use rounded values for precise conversions, and often fail multi-step conversions.
How many conversion types does TinyFn support?
TinyFn supports 50+ unit conversions across temperature, length, weight, volume, area, speed, data sizes, and number bases.
Does TinyFn handle UK vs US unit differences?
Yes. TinyFn correctly distinguishes between US and imperial gallons, US and imperial fluid ounces, and other regional unit variations.