# Efstathiou 2002 DKA-MPM Score Calculator

> Efstathiou 2002 DKA-MPM Score Calculator is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Computes the Efstathiou 2002 DKA Mortality Prediction Model (DKA-MPM) score from six caller-assigned boolean flags and returns estimated in-hospital mortality risk category.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/dka_mpm
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/efstathiou-2002-dka-mpm-score-calculator-1c329fc7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H369rDvw2ztJJ-MHUkriA

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability efstathiou-2002-dka-mpm-score-calculator-1c329fc7
```

Example prompt: Score this DKA patient using the Efstathiou 2002 DKA-MPM: they have severe coexisting disease and a pH below 7.0 at presentation, received more than 50 IU regular insulin in the first 12 hours, glucose is still above 16.7 mmol/L after 12 hours, but they have no depressed mental state or fever after 24 hours.

## When to prefer this

Use this endpoint when you need to apply the validated Efstathiou 2002 DKA-MPM scoring algorithm to caller-assigned clinical flags and obtain a standardized in-hospital mortality risk score. Prefer this over general LLM reasoning about DKA prognosis when reproducibility and citation to a published model are required. This is a pure computation endpoint — you supply the clinical determinations, it applies the published point weights. Not appropriate for querying raw lab values, ordering treatment, or any other DKA scoring system (e.g., Kitabchi or BICS).

## Known failure modes

- Missing required boolean flag — returns validation error if any of the six required query parameters are absent
- Invalid parameter type — non-boolean value for any flag results in a schema error
- Network or payment failure — x402 payment not completed results in a 402 response and no score returned
- All flags true simultaneously may indicate data entry error but is not caught by the endpoint itself

## How this service works

Efstathiou 2002 DKA-MPM. Six caller-assigned flags: severe coexisting disease at presentation (+6), pH <7.0 at presentation (+4), regular insulin >50 IU in the first 12 h (+4), glucose >16.7 mmol/L after 12 h (+4), depressed mental state after 24 h (+4), fever after 24 h (+3). Max 25. Published in-hospital death 0.86% for scores 0–14 and 93.3% for 19–25; scores 15–18 return the total only. magent does not assay pH or glucose. Not a DKA treatment or insulin-dose order. Not a medical device.

## Output

Returns the total DKA-MPM score (integer, 0–25). For scores 0–14, the published in-hospital mortality is approximately 0.86%; for scores 19–25, it is approximately 93.3%. Scores in the 15–18 range return the numeric total only without a discrete mortality band. The response does not include pH measurements, glucose assays, or treatment recommendations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "severe_comorbidity",
      "ph_lt_7",
      "insulin_gt_50_12h",
      "glucose_gt_16_7_12h",
      "depressed_mental_24h",
      "fever_24h"
     ],
     "properties": {
      "ph_lt_7": {
       "type": "boolean",
       "description": "Arterial pH < 7.0 at presentation as assigned by the caller (Efstathiou 2002). true scores 4. true or false. magent does not assay pH."
      },
      "fever_24h": {
       "type": "boolean",
       "description": "Fever after 24 h as assigned by the caller (Efstathiou 2002). true scores 3. true or false. magent does not take temperature."
      },
      "insulin_gt_50_12h": {
       "type": "boolean",
       "description": "Regular insulin > 50 IU in the first 12 h as assigned by the caller (Efstathiou 2002). true scores 4. true or false. Not an insulin dose. magent does not order insulin."
      },
      "severe_comorbidity": {
       "type": "boolean",
       "description": "Severe coexisting disease at presentation as assigned by the caller (Efstathiou 2002). true scores 6. true or false. magent does not diagnose comorbidity."
      },
      "glucose_gt_16_7_12h": {
       "type": "boolean",
       "description": "Serum glucose > 16.7 mmol/L after 12 h as assigned by the caller (Efstathiou 2002). true scores 4. true or false. magent does not assay glucose."
      },
      "depressed_mental_24h": {
       "type": "boolean",
       "description": "Depressed mental state after 24 h as assigned by the caller (Efstathiou 2002). true scores 4. true or false. magent does not examine the patient."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/efstathiou-2002-dka-mpm-score-calculator-1c329fc7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
