Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

Health

Alveolar Gas Equation (PAO₂ Calculator)

Calculate PAO₂ = FiO₂ × (P_atm − 47) − PaCO₂ / RQ. Defaults: P_atm 760 mmHg (sea level), RQ 0.8. Gives a directional hint vs expected ~100 mmHg. For full A-a gradient interpretation use a-a-gradient-calculator. Derived from StatPearls, LITFL, Cornell PICU, and West. 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/alveolar-gas-equation' \
  -H 'Content-Type: application/json' \
  -d '{"paco2":40,"fio2":0.21,"patm":0,"rq":0,"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/alveolar-gas-equation

Parameters

NameTypeRequiredDescription
paco2numberYesArterial partial pressure of CO₂ (mmHg) from ABG.
fio2numberYesInspired oxygen fraction (0.21 = room air). Range 0.15–1.0.
patmnumberNoAtmospheric pressure (mmHg). Default 760 at sea level. Lower at altitude (e.g. Denver ~630).
rqnumberNoRespiratory quotient. Default 0.8 (mixed diet); 1.0 pure carbohydrate; ~0.7 high fat/protein.
decimalPlacesnumber

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-alveolar-gas-equation": {
      "name": "alveolar-gas-equation",
      "description": "Calculate PAO₂ = FiO₂ × (P_atm − 47) − PaCO₂ / RQ. Defaults: P_atm 760 mmHg (sea level), RQ 0.8. Gives a directional hint vs expected ~100 mmHg. For full A-a gradient interpretation use a-a-gradient-calculator. Derived from StatPearls, LITFL, Cornell PICU, and West. Not medical advice.",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=alveolar-gas-equation",
      "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": "alveolar-gas-equation",
    "arguments": {
  "paco2": 40,
  "fio2": 0.21,
  "patm": 0,
  "rq": 0,
  "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).

Questions or issues? Contact [email protected]

Browse toolsOpen tool

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools
No
—

Response format

JSON result

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