Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

Health

Combined Electrolyte Correction Plan (Na/K/Mg)

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.

json· JSON resultOpen tool

Quick start

Call this tool from your code in three languages.

cURL
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}'

API reference

Send a POST request with your inputs as JSON. File parameters require a separate upload first.

Endpoint

HTTP
POST https://api.elysiatools.com/en/api/tools/fluid-electrolyte-correction

Parameters

NameTypeRequiredDescription
sodiumnumberYesMeasured serum sodium (mmol/L).
potassiumnumberYesMeasured serum potassium (mmol/L).
magnesiumnumberYesMeasured serum magnesium (mg/dL).
weightnumberYesPatient body weight (kg).
sexselectYes—

MCP integration

Add this tool to your Model Context Protocol server so AI agents can list and call it.

Server configuration

Add this block to your MCP client configuration:

mcp.json
{
  "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"
    }
  }
}

List available tools

After connecting to the SSE endpoint, list the exposed tools:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Call this tool

Invoke the tool by its id, passing arguments built from its parameters:

tools/call
{
  "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
}
  }
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).
Browse toolsOpen tool

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools
ageGroupselectYes—
correctionRateselectYes—
decimalPlacesnumberNo—

Response format

JSON result

JSON
{
  "key": {...},
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}

Questions or issues? Contact [email protected]