calculate_lab_unit_conversion
Convert a lab value between conventional and SI units: glucose, cholesterol, triglycerides (mg/dL ↔ mmol/L), creatinine and uric acid (mg/dL ↔ µmol/L), urea and BUN, 25-OH vitamin D (ng/mL ↔ nmol/L), ferritin, insulin (µIU/mL ↔ pmol/L, factor 6.945 as in HOMA-IR; the newer harmonised value is 6.00) and HbA1c (% ↔ mmol/mol).
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": {
"analyte": "<analyte>",
"value": "<value>",
"unit": "<unit>"
},
"name": "calculate_lab_unit_conversion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | Unit of value. glucose/cholesterol/triglycerides/urea/bun: mg/dL or mmol/L; creatinine/uric-acid: mg/dL or umol/L; vitamin-d: ng/mL or nmol/L; ferritin: ng/mL or ug/L; insulin: uIU/mL or pmol/L; hba1c: % or mmol/mol | |
| value | Yes | Value to convert | |
| analyte | Yes | Analyte. cholesterol covers total, LDL, HDL and non-HDL; bun is blood urea nitrogen; urea is urea itself (Italian "azotemia") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | Input unit | |
| value | Yes | Input value | |
| analyte | Yes | Analyte converted | |
| convertedUnit | Yes | Unit of convertedValue | |
| convertedValue | Yes | Value in the other unit |