calculate_ldl_cholesterol
Estimate LDL cholesterol from total cholesterol, HDL and triglycerides via the Friedewald (default), Martin-Hopkins or Sampson/NIH method, in mg/dL or mmol/L. Friedewald is suppressed (result null, reliable false) when triglycerides exceed 400 mg/dL — use martin-hopkins or sampson for high triglycerides. Returns the LDL estimate, the formula used, the triglyceride divisor and non-HDL cholesterol.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"total": "<total>",
"hdl": "<hdl>",
"triglycerides": "<triglycerides>"
},
"name": "calculate_ldl_cholesterol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hdl | Yes | HDL cholesterol | |
| unit | No | Unit of all three inputs: mg (mg/dL) or mmol (mmol/L). Default mg | |
| total | Yes | Total cholesterol | |
| formula | No | Estimation method: friedewald (default; suppressed when TG > 400 mg/dL), martin-hopkins (strata-specific divisor, better at low LDL / high TG), or sampson (closed-form, valid to TG 800 mg/dL) | |
| triglycerides | Yes | Triglycerides |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | Unit of result and nonHdl | |
| factor | Yes | Triglyceride divisor used to estimate VLDL-C (null for Sampson) | |
| nonHdl | Yes | Non-HDL cholesterol (total − HDL) | |
| result | Yes | Estimated LDL cholesterol in the requested unit, or null when suppressed (Friedewald with TG > 400 mg/dL) | |
| formula | Yes | The formula actually applied | |
| reliable | Yes | Whether the chosen formula is valid for these inputs | |
| suppressedReason | Yes | Why result is null: 'triglycerides' (TG outside the validated range) or 'non-positive' (estimate <= 0); null when a result is returned |