Health Calculation MCP Tools for AI Agents

Your fitness agent calculates BMI as weight divided by height. But is height in meters or centimeters? And is weight in kg or lbs? Formula confusion and unit mix-ups make health calculations unreliable from LLMs. These tools use the correct formulas with proper unit handling.

All Health Tools (9)

Your agent gets access to 9 health tools via the /mcp/health/ endpoint. Here's the complete list:

ToolDescription
health/bmiCalculate Bmi
health/bmrCalculate Bmr
health/ideal-weightIdeal Weight
health/heart-rate-zonesHeart Rate Zones
health/body-fatEstimate Body Fat
health/water-intakeDaily Water Intake
health/calories-burnedCalories Burned
health/macrosCalculate Macros
health/sleepSleep Cycles

Agent Scenarios

Here's how real agents use these tools:

1. Fitness coaching agent

A health agent calculates a user's BMI from height and weight, with proper unit handling.

Tool Call: health/bmi
{ "weight_kg": 75, "height_cm": 180 }

2. Nutrition planning agent

A diet agent calculates daily calorie needs based on activity level using the Harris-Benedict equation.

Tool Call: health/bmr
{ "weight_kg": 75, "height_cm": 180, "age": 30, "gender": "male" }

3. Wellness tracker agent

A health agent calculates ideal weight ranges based on height using multiple standard formulas.

Tool Call: health/ideal-weight
{ "height_cm": 175, "gender": "female" }

MCP Setup

Add health tools to your agent in under 2 minutes. Choose your client:

Claude Desktop / Claude Code

Add this to your MCP config:

{
  "mcpServers": {
    "tinyfn-health": {
      "url": "https://api.tinyfn.io/mcp/health/",
      "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/health/sse
  • Headers: X-API-Key: your-api-key

Tip: Use the category-specific endpoint (/mcp/health/) 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 health 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 health tools to your agent?

Get Free API Key 100 requests/month free. No credit card required.

Frequently Asked Questions

Are health calculations from LLMs safe to use?

LLMs frequently mix up formulas, confuse units, or apply incorrect factors. For health calculations that users may act on, using deterministic tools with validated formulas is essential.

What health metrics does TinyFn calculate?

TinyFn calculates BMI, BMR (basal metabolic rate), TDEE (total daily energy expenditure), ideal weight, and calorie needs based on activity level.

What formulas does TinyFn use?

TinyFn uses standard medical formulas: the BMI formula from WHO, Harris-Benedict and Mifflin-St Jeor equations for BMR, and established ideal weight formulas (Devine, Robinson, Miller).

Ready to try TinyFn?

Get your free API key and start building in minutes.

Get Free API Key