calculate_hba1c_eag
Convert between HbA1c (DCCT %), HbA1c (IFCC mmol/mol), and estimated average glucose (eAG) in mg/dL and mmol/L. Give the value and say which one it is (inputType); returns all four. Uses the ADAG regression (eAG = 28.7×A1c − 46.7) and the NGSP/IFCC master equation.
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": {
"value": "<value>",
"inputType": "<inputType>"
},
"name": "calculate_hba1c_eag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The value to convert | |
| inputType | Yes | What `value` represents: hba1c-percent (DCCT %), hba1c-mmol (IFCC mmol/mol), eag-mg (mg/dL) or eag-mmol (mmol/L) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eagMgDl | Yes | Estimated average glucose in mg/dL | |
| eagMmol | Yes | Estimated average glucose in mmol/L | |
| hba1cMmol | Yes | HbA1c in IFCC mmol/mol | |
| hba1cPercent | Yes | HbA1c in DCCT/NGSP percent |