Health
Calculate safe oral and IV potassium replacement parameters for hypokalemia. Oral 20–40 mEq/dose (120 mEq/day); IV peripheral ≤ 10 mEq/h (40 mEq/L); IV central ≤ 20 mEq/h (80 mEq/L); daily IV cap 240 mEq. IV KCl must be on an infusion pump — never IV push. Correct hypomagnesemia first. Derived from Gennari NEJM 1998, Cohn 2000, Kraft 2005, MDCalc, and Asmar 2023. Not medical advice.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/potassium-correction-rate' \
-H 'Content-Type: application/json' \
-d '{"route":"peripheral-iv","targetRise":1,"currentK":2.5,"weight":70,"decimalPlaces":1}'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/potassium-correction-rate| Name | Type | Required | Description |
|---|---|---|---|
| route | select | Yes | — |
| targetRise | number | Yes | Desired serum K⁺ increase (mmol/L). E.g. from 2.5 to 3.5 = rise of 1.0. |
| currentK | number | Yes | Measured serum potassium (mmol/L). Normal range 3.5–5.0. |
| weight | number | Yes | Patient body weight (kg), used for deficit estimation. |
| decimalPlaces | number | No |
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-potassium-correction-rate": {
"name": "potassium-correction-rate",
"description": "Calculate safe oral and IV potassium replacement parameters for hypokalemia. Oral 20–40 mEq/dose (120 mEq/day); IV peripheral ≤ 10 mEq/h (40 mEq/L); IV central ≤ 20 mEq/h (80 mEq/L); daily IV cap 240 mEq. IV KCl must be on an infusion pump — never IV push. Correct hypomagnesemia first. Derived from Gennari NEJM 1998, Cohn 2000, Kraft 2005, MDCalc, and Asmar 2023. Not medical advice.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=potassium-correction-rate",
"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": "potassium-correction-rate",
"arguments": {
"route": "peripheral-iv",
"targetRise": 1,
"currentK": 2.5,
"weight": 70,
"decimalPlaces": 1
}
}
}| — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Questions or issues? Contact [email protected]