# ACEF II Score Calculator (Ranucci 2018)

> ACEF II Score Calculator (Ranucci 2018) 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-15).

Computes the Ranucci 2018 ACEF II cardiac surgery risk score from age, ejection fraction, creatinine, emergency status, and hematocrit.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/acef_ii
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/acef-ii-score-calculator-ranucci-2018-5f05d698
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0ZdrxcBldklsGVL2kQgGL

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 acef-ii-score-calculator-ranucci-2018-5f05d698
```

Example prompt: Can you calculate the ACEF II cardiac surgery risk score for a 72-year-old patient with an ejection fraction of 45%, serum creatinine of 2.3 mg/dL, hematocrit of 32%, and this is an emergency operation?

## When to prefer this

Use this endpoint when you need the specific Ranucci 2018 ACEF II formulation for cardiac surgery risk scoring — not the original 2009 ACEF, not a predicted mortality percentage, and not a general operative clearance tool. Ideal for clinical decision-support agents building preoperative assessments that require a validated, published score with creatinine, hematocrit, and emergency-surgery adjustments.

## Known failure modes

- Missing required parameters (age, ejection_fraction_percent, emergency_surgery, hematocrit_percent) returns an error
- Out-of-range values (e.g. age outside 18–120, EF outside 10–80, hematocrit outside 15–60) may be clamped or rejected
- Providing both creatinine_mg_dl and creatinine_umol_l simultaneously returns an error
- Invalid types (e.g. non-integer age) cause schema validation failure
- Payment failure (insufficient USDC balance or x402 issue) blocks the request

## How this service works

Ranucci 2018 ACEF II for cardiac surgery: ACEF II = age/EF + 2.0 if serum creatinine > 2.0 mg/dL + 3.0 if emergency surgery + 0.2 × (hematocrit points below 36%). Hematocrit ≥ 36% contributes 0. Returns the published score only (4 decimals). Not original ACEF 2009, not a predicted-mortality percent, and not an operative clearance.

## Output

Returns a single ACEF II numeric score rounded to 4 decimal places, computed as: age/EF + 2.0 (if creatinine > 2.0 mg/dL) + 3.0 (if emergency surgery) + 0.2 × (hematocrit points below 36%, with ≥36% contributing 0). This is the published index value only — not a mortality percentage, not a clearance decision.

## 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": [
      "age",
      "ejection_fraction_percent",
      "emergency_surgery",
      "hematocrit_percent"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). magent clamp; Ranucci 2018 uses age in years."
      },
      "creatinine_mg_dl": {
       "type": "number",
       "description": "Serum creatinine in mg/dL (0.1-20). Provide this or creatinine_umol_l, not both. Extra 2.0 only when strictly greater than 2.0 mg/dL (Ranucci 2018)."
      },
      "creatinine_umol_l": {
       "type": "number",
       "description": "Serum creatinine in µmol/L (9-1768). Converted as mg/dL = µmol/L / 88.42."
      },
      "emergency_surgery": {
       "type": "boolean",
       "description": "true if the operation is emergency cardiac surgery (Ranucci 2018 +3.0). true or false."
      },
      "hematocrit_percent": {
       "type": "number",
       "description": "Preoperative hematocrit in percent (15-60). magent clamp. HCT ≥ 36 contributes 0; each percentage point below 36 adds 0.2."
      },
      "ejection_fraction_percent": {
       "type": "number",
       "description": "Left-ventricular ejection fraction in percent (10-80). magent clamp. Denominator of age/EF."
      }
     }
    }
   },
   "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/acef-ii-score-calculator-ranucci-2018-5f05d698/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)
