# Gupta MICA Calculator (30-Day MI/Cardiac Arrest Risk After Surgery)

> Gupta MICA Calculator (30-Day MI/Cardiac Arrest Risk After Surgery) 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-13).

Computes the Gupta 2011 MICA logistic regression score estimating probability of 30-day myocardial infarction or cardiac arrest after non-cardiac surgery, returning logit and estimated probability percent.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/gupta_mica
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gupta-mica-calculator-30-day-mi-cardiac-arrest-risk-after-surgery-7ffa2d16
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9P5ICr0mdbiKFJg13ntkj

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 gupta-mica-calculator-30-day-mi-cardiac-arrest-risk-after-surgery-7ffa2d16
```

Example prompt: Using the Gupta 2011 MICA model, what's the estimated 30-day probability of MI or cardiac arrest for a 72-year-old, ASA class 3, partially dependent patient with abnormal creatinine (above 1.5 mg/dL) scheduled for thoracic surgery?

## When to prefer this

Use this endpoint when you need to implement the published Gupta 2011 MICA logistic regression model specifically (not RCRI or other cardiac risk indices) for estimating 30-day perioperative MI or cardiac arrest probability. It faithfully applies the Table 2 coefficients from the original paper and is appropriate when the caller has already assigned ASA class, functional status, creatinine category, and surgery type. Prefer this over RCRI calculators when the Gupta 2011 model is explicitly required.

## Known failure modes

- Missing required query parameters (age, asa_class, functional_status, creatinine, surgery) returns a validation error
- Age outside 18-120 integer range may return an error or unexpected result
- Invalid enum values for surgery, creatinine, or functional_status return schema validation errors
- ASA class outside 1-5 integer range causes computation failure
- Payment not provided or insufficient USDC balance returns HTTP 402

## How this service works

Gupta 2011 Table 2 logistic probability of 30-day myocardial infarction or cardiac arrest after surgery from age, ASA class, functional status, creatinine category (normal, abnormal >1.5 mg/dL, or missing), and surgery type (hernia reference). Returns logit and estimated_probability_percent. Not a medical device, not a diagnosis, not surgical clearance, and not RCRI. Gupta 2011 publishes no low/high cutoff.

## Output

Returns a JSON object containing the logit (raw log-odds from the Gupta 2011 Table 2 coefficients) and estimated_probability_percent (converted probability of 30-day MI or cardiac arrest after surgery), with no thresholds or risk categories applied since Gupta 2011 publishes none.

## 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",
      "functional_status",
      "asa_class",
      "creatinine",
      "surgery"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). Gupta 2011 Table 2: +0.02 per year."
      },
      "surgery": {
       "enum": [
        "hernia",
        "anorectal",
        "aortic",
        "bariatric",
        "brain",
        "breast",
        "cardiac",
        "ent",
        "foregut_hpb",
        "gbaas",
        "intestinal",
        "neck",
        "obstetric_gynecologic",
        "orthopedic",
        "other_abdomen",
        "peripheral_vascular",
        "skin",
        "spine",
        "thoracic",
        "vein",
        "urology"
       ],
       "type": "string",
       "description": "Gupta 2011 Table 2 procedure category as assigned by the caller. hernia is the reference (0). gbaas is gallbladder, adrenal, appendix, or spleen (laparoscopic cholecystectomy in the paper example). magent does not classify a CPT code."
      },
      "asa_class": {
       "type": "integer",
       "description": "ASA physical status 1-5 (Gupta 2011 Table 2; class 5 is the reference). class 1 -5.17, class 2 -3.29, class 3 -1.92, class 4 -0.95, class 5 adds 0. Caller-assigned integer."
      },
      "creatinine": {
       "enum": [
        "normal",
        "abnormal",
        "missing"
       ],
       "type": "string",
       "description": "Gupta 2011 creatinine category as assigned by the caller: normal (reference, 0), abnormal (>1.5 mg/dL, +0.61), or missing (-0.10). Do not send a creatinine number."
      },
      "functional_status": {
       "enum": [
        "independent",
        "partially_dependent",
        "totally_dependent"
       ],
       "type": "string",
       "description": "Gupta 2011 functional status as assigned by the caller: independent (reference, 0), partially_dependent (+0.65), or totally_dependent (+1.03)
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gupta-mica-calculator-30-day-mi-cardiac-arrest-risk-after-surgery-7ffa2d16/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)
