reference

Convert lab units

Convert a lab value between US conventional and SI units for 30 common analytes (glucose, cholesterol, testosterone, vitamin D, …) using published factors; hemoglobin A1c uses the NGSP↔IFCC master equation and also returns estimated average glucose.

post/api/agent/convert_units

Request

  • Base URL: https://www.test-well.com
  • URL: https://www.test-well.com/api/agent/convert_units
  • Auth: none declared

Request body

analytestring required

Analyte slug or name, e.g. 'glucose', 'total-cholesterol', 'testosterone', 'vitamin-d', 'a1c'

valuenumber required

The numeric value to convert

direction'toSI' | 'toConventional'

Default toSI (US → SI)

Response

Tool result

tool'convert_units' required

Changes

No recorded changes to this operation across all 1 revision of this API.