Calculate Non-HDL, TG/HDL, TyG & ApoB/ApoA1 ratios
calculate_lipid_ratiosNormalize lipid panels to US mg/dL and compute Non-HDL-C, Total/HDL (Castelli I), LDL/HDL, TG/HDL ratio, Remnant Cholesterol, ApoB/ApoA1 ratio, and optional TyG index.
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": {
"tc": "<tc>",
"hdl": "<hdl>",
"lipidUnit": "<lipidUnit>"
},
"name": "calculate_lipid_ratios"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tc | Yes | Total Cholesterol numeric value (> 0). | |
| tg | No | Optional Triglycerides value in the same lipidUnit (needed for TG/HDL and TyG). | |
| hdl | Yes | HDL Cholesterol numeric value (> 0, <= Total Cholesterol). | |
| ldl | No | Optional LDL Cholesterol value in the same lipidUnit. | |
| apob | No | Optional Apolipoprotein B (ApoB) value. | |
| apoa1 | No | Optional Apolipoprotein A1 (ApoA1) value in the same apoUnit as ApoB. | |
| apoUnit | No | Unit for ApoB and ApoA1: "mg/dL" or "g/L" (defaults to "mg/dL"). | |
| glucose | No | Optional fasting glucose value (paired with tg to compute the TyG index). | |
| lipidUnit | Yes | Unit for TC, HDL, LDL, and Triglycerides: "mg/dL" or "mmol/L". | |
| glucoseUnit | No | Unit for optional glucose: "mg/dL" or "mmol/L" (defaults to "mg/dL"). |