Health
Estimate BMR, TDEE, ideal weight, and macro splits for weight loss, maintenance, or muscle gain
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/tdee-bmr-body-comp-calculator' \
-H 'Content-Type: application/json' \
-d '{"weightKg":80,"heightCm":180,"age":30,"sex":"male","activityLevel":"moderate","goal":"maintain"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/tdee-bmr-body-comp-calculator| Name | Type | Required | Description |
|---|---|---|---|
| weightKg | number | Yes | — |
| heightCm | number | Yes | — |
| age | number | Yes | — |
| sex | select | No | — |
| activityLevel | select | No | — |
| goal |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-tdee-bmr-body-comp-calculator": {
"name": "tdee-bmr-body-comp-calculator",
"description": "Estimate BMR, TDEE, ideal weight, and macro splits for weight loss, maintenance, or muscle gain",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=tdee-bmr-body-comp-calculator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "tdee-bmr-body-comp-calculator",
"arguments": {
"weightKg": 80,
"heightCm": 180,
"age": 30,
"sex": "male",
"activityLevel": "moderate",
"goal": "maintain"
}
}
}Questions or issues? Contact [email protected]
| select |
| No |
| — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}