Health
Prioritized correction plan for simultaneous Na/K/Mg disorders. Priority: Mg → K → Na. Hypomagnesemia causes refractory K wasting; hyperkalemia is an emergency. Severe hyperkalemia, ODS risk, and interaction warnings included. Derived from Adrogué 2000, Gennari 1998, Agus 1999, Huang 2007, and Whang 1994. Not medical advice.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/fluid-electrolyte-correction' \
-H 'Content-Type: application/json' \
-d '{"sodium":128,"potassium":2.8,"magnesium":1.2,"weight":70,"sex":"male","ageGroup":"adult","correctionRate":"8","decimalPlaces":1}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/fluid-electrolyte-correction| Name | Type | Required | Description |
|---|---|---|---|
| sodium | number | Yes | Measured serum sodium (mmol/L). |
| potassium | number | Yes | Measured serum potassium (mmol/L). |
| magnesium | number | Yes | Measured serum magnesium (mg/dL). |
| weight | number | Yes | Patient body weight (kg). |
| sex | select | Yes | — |
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-fluid-electrolyte-correction": {
"name": "fluid-electrolyte-correction",
"description": "Prioritized correction plan for simultaneous Na/K/Mg disorders. Priority: Mg → K → Na. Hypomagnesemia causes refractory K wasting; hyperkalemia is an emergency. Severe hyperkalemia, ODS risk, and interaction warnings included. Derived from Adrogué 2000, Gennari 1998, Agus 1999, Huang 2007, and Whang 1994. Not medical advice.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=fluid-electrolyte-correction",
"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": "fluid-electrolyte-correction",
"arguments": {
"sodium": 128,
"potassium": 2.8,
"magnesium": 1.2,
"weight": 70,
"sex": "male",
"ageGroup": "adult",
"correctionRate": "8",
"decimalPlaces": 1
}
}
}| ageGroup | select | Yes | — |
| correctionRate | select | Yes | — |
| decimalPlaces | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Questions or issues? Contact [email protected]