Health
Convert molar ↔ mass concentration (mmol/L, µmol/L, mol/L ↔ g/L, mg/L, mg/mL, mg/dL, µg/mL) from a molecular weight; returns every unit at once. Not medical advice.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/molar-to-mass-concentration' \
-H 'Content-Type: application/json' \
-d '{"value":5,"unit":"mmol/L","mw":180.156,"decimalPlaces":2}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST http://127.0.0.1:3003/en/api/tools/molar-to-mass-concentration| Name | Type | Required | Description |
|---|---|---|---|
| value | number | Yes | Concentration value to convert. |
| unit | select | Yes | Unit of the entered value. |
| mw | number | Yes | Molecular weight in g/mol (glucose 180.156, NaCl 58.44, cholesterol 386.654). |
| decimalPlaces | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-molar-to-mass-concentration": {
"name": "molar-to-mass-concentration",
"description": "Convert molar ↔ mass concentration (mmol/L, µmol/L, mol/L ↔ g/L, mg/L, mg/mL, mg/dL, µg/mL) from a molecular weight; returns every unit at once. Not medical advice.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=molar-to-mass-concentration",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "molar-to-mass-concentration",
"arguments": {
"value": 5,
"unit": "mmol/L",
"mw": 180.156,
"decimalPlaces": 2
}
}
}Questions or issues? Contact [email protected]