Health
LDL-C Calculator (Friedewald)
Calculate LDL-C (low-density lipoprotein cholesterol) indirectly with the Friedewald formula. In mg/dL: LDL-C = Total Cholesterol − HDL-C − (Triglycerides / 5); in mmol/L: LDL-C = TC − HDL-C − (TG / 2.2). Unreliable when triglycerides ≥ 400 mg/dL (4.5 mmol/L), in the non-fasting state, in type III dysbetalipoproteinemia, and at very low LDL-C (< 70 mg/dL). Treatment thresholds (ACC/AHA 2018): < 70 mg/dL (1.8 mmol/L) high-risk secondary prevention; < 100 mg/dL (2.6 mmol/L) moderate-risk / diabetes primary prevention; ≥ 190 mg/dL (4.9 mmol/L) suggests familial hypercholesterolemia. Unit system selectable: mg/dL or mmol/L. Derived from Friedewald 1972, Martin 2013, Sampson 2020, and ACC/AHA 2018. Not medical advice.
Quick start
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/ldl-calculator-friedewald' \
-H 'Content-Type: application/json' \
-d '{"unitSystem":"mgdl","totalCholesterol":220,"hdl":45,"triglycerides":150,"decimalPlaces":1}'API reference
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
POST https://api.elysiatools.com/en/api/tools/ldl-calculator-friedewaldParameters
| Name | Type | Required | Description |
|---|---|---|---|
| unitSystem | select | Yes | — |
| totalCholesterol | number | Yes | Fasting total cholesterol. Use the unit selected under 'Unit System'. |
| hdl | number | Yes | Fasting HDL-C. Use the unit selected under 'Unit System'. |
| triglycerides | number | Yes | Fasting triglycerides. Use the unit selected under 'Unit System'. Note: Friedewald is unreliable when TG ≥ 400 mg/dL (4.5 mmol/L). |
| decimalPlaces | number |
MCP integration
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Server configuration
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-ldl-calculator-friedewald": {
"name": "ldl-calculator-friedewald",
"description": "Calculate LDL-C (low-density lipoprotein cholesterol) indirectly with the Friedewald formula. In mg/dL: LDL-C = Total Cholesterol − HDL-C − (Triglycerides / 5); in mmol/L: LDL-C = TC − HDL-C − (TG / 2.2). Unreliable when triglycerides ≥ 400 mg/dL (4.5 mmol/L), in the non-fasting state, in type III dysbetalipoproteinemia, and at very low LDL-C (< 70 mg/dL). Treatment thresholds (ACC/AHA 2018): < 70 mg/dL (1.8 mmol/L) high-risk secondary prevention; < 100 mg/dL (2.6 mmol/L) moderate-risk / diabetes primary prevention; ≥ 190 mg/dL (4.9 mmol/L) suggests familial hypercholesterolemia. Unit system selectable: mg/dL or mmol/L. Derived from Friedewald 1972, Martin 2013, Sampson 2020, and ACC/AHA 2018. Not medical advice.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=ldl-calculator-friedewald",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}List available tools
After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Call this tool
Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "ldl-calculator-friedewald",
"arguments": {
"unitSystem": "mgdl",
"totalCholesterol": 220,
"hdl": 45,
"triglycerides": 150,
"decimalPlaces": 1
}
}
}