Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

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.

json· JSON resultOpen tool

Quick start

Call this tool from your code in three languages.

cURL
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

HTTP
POST https://api.elysiatools.com/en/api/tools/ldl-calculator-friedewald

Parameters

NameTypeRequiredDescription
unitSystemselectYes—
totalCholesterolnumberYesFasting total cholesterol. Use the unit selected under 'Unit System'.
hdlnumberYesFasting HDL-C. Use the unit selected under 'Unit System'.
triglyceridesnumberYesFasting triglycerides. Use the unit selected under 'Unit System'. Note: Friedewald is unreliable when TG ≥ 400 mg/dL (4.5 mmol/L).
decimalPlacesnumber

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:

mcp.json
{
  "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:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Call this tool

Invoke the tool by its id, passing arguments built from its parameters:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "ldl-calculator-friedewald",
    "arguments": {
  "unitSystem": "mgdl",
  "totalCholesterol": 220,
  "hdl": 45,
  "triglycerides": 150,
  "decimalPlaces": 1
}
  }
}
Browse toolsOpen tool

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools
No
—

Response format

JSON result

JSON
{
  "key": {...},
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).

Questions or issues? Contact [email protected]