Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

Health

TPN Osmolality Estimator (Peripheral/Central)

Estimate the osmolality (mOsm/L) of a parenteral nutrition admixture to help choose peripheral vs central access. Sum-of-solute formula: Osm ≈ Dextrose(g/L)×5 + AA(g/L)×10 + Electrolytes. Thresholds: ≤ 900 peripheral; 900–1200 caution; > 1200 central. Lab-measured value is the gold standard. Derived from Mirtallo 2004, Pittiruti 2009, Dugan 2014. 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/tpn-osmolality-estimator' \
  -H 'Content-Type: application/json' \
  -d '{"dextrosePercent":10,"dextroseVolume":1000,"aaPercent":5,"aaVolume":500,"lipidVolume":250,"electrolyteOsm":350,"decimalPlaces":0}'

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/tpn-osmolality-estimator

Parameters

NameTypeRequiredDescription
dextrosePercentnumberYesDextrose concentration % w/v. D25W = 25 g/100 mL.
dextroseVolumenumberYesTotal dextrose volume (mL).
aaPercentnumberYesAmino-acid concentration % w/v.
aaVolumenumberYesTotal amino-acid volume (mL).
lipidVolumenumberYes

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-tpn-osmolality-estimator": {
      "name": "tpn-osmolality-estimator",
      "description": "Estimate the osmolality (mOsm/L) of a parenteral nutrition admixture to help choose peripheral vs central access. Sum-of-solute formula: Osm ≈ Dextrose(g/L)×5 + AA(g/L)×10 + Electrolytes. Thresholds: ≤ 900 peripheral; 900–1200 caution; > 1200 central. Lab-measured value is the gold standard. Derived from Mirtallo 2004, Pittiruti 2009, Dugan 2014. Not medical advice.",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=tpn-osmolality-estimator",
      "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": "tpn-osmolality-estimator",
    "arguments": {
  "dextrosePercent": 10,
  "dextroseVolume": 1000,
  "aaPercent": 5,
  "aaVolume": 500,
  "lipidVolume": 250,
  "electrolyteOsm": 350,
  "decimalPlaces": 0
}
  }
}
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
Total lipid emulsion volume (mL). Lipid contributes ≈ 0 to osmolality and is subtracted from the aqueous denominator.
electrolyteOsmnumberYesOsmolality contribution of all added electrolytes (Na, K, Ca, Mg, P, acetate, etc.), read from the PN label or estimated. Typical maintenance ≈ 300–500 mOsm/L.
decimalPlacesnumberNo—

Response format

JSON result

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

Questions or issues? Contact [email protected]