# magent RESECT-90 Lung Resection 90-Day Mortality Calculator

> magent RESECT-90 Lung Resection 90-Day Mortality 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-15).

Calculates the Taylor 2021 RESECT-90 logistic score for estimated 90-day mortality risk after lung resection using 12 clinical variables

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/resect_90
- 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/magent-resect-90-lung-resection-90-day-mortality-calculator-88800aab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VZWHyO14kDwnBHTBnG9vI

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 magent-resect-90-lung-resection-90-day-mortality-calculator-88800aab
```

Example prompt: Using the RESECT-90 model, estimate 90-day mortality risk for a 68-year-old male with ECOG 1, DLCO 72% predicted, BMI 26.4, creatinine 95 umol/L, no anaemia, no arrhythmia, right-sided malignant resection via VATS involving 3 segments.

## When to prefer this

Choose this endpoint when you need a validated, published logistic model (Taylor 2021) for 90-day mortality after lung resection and all 12 clinical variables have already been assigned by a clinician. Prefer this over generic LLM-based risk estimates when you need a reproducible, coefficient-based numeric probability. Not appropriate as a sole operative go/no-go decision tool or as a substitute for clinical judgment.

## Known failure modes

- Missing any of the 12 required query parameters returns a validation error
- Age outside 18-120 range rejected
- BMI outside 10-80 range rejected
- Invalid enum values for sex, laterality, surgical_approach, or diagnosis return error
- Non-boolean values for anemia or arrhythmia fields cause schema validation failure
- ECOG value outside 0-4 range rejected
- Creatinine value out of plausible range may be rejected
- Payment not included or insufficient USDC balance causes x402 payment-required error

## How this service works

Taylor 2021 RESECT-90 logistic 90-day mortality after lung resection from age, sex, ECOG, percent predicted DLCO, BMI, creatinine (umol/L), anaemia, arrhythmia, laterality, thoracotomy vs VATS, diagnosis, and resected segments. Returns logit and estimated_mortality_percent. Not a medical device, not an operative go/no-go, and not a published cutoff. magent does not assign ECOG or read spirometry.

## Output

Returns a JSON object with two fields: 'logit' (the raw linear predictor from the Taylor 2021 Table 3 coefficients) and 'estimated_mortality_percent' (the back-transformed probability of 90-day mortality expressed as a percentage). Does not return a go/no-go recommendation or a published decision cutoff.

## 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",
      "sex",
      "ecog",
      "dlco_percent",
      "bmi",
      "creatinine_umol_l",
      "anemia",
      "arrhythmia",
      "laterality",
      "surgical_approach",
      "diagnosis",
      "resected_segments"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). Taylor 2021 Table 3 coefficient 0.041 per year. magent does not read a chart."
      },
      "bmi": {
       "type": "number",
       "description": "Body-mass index in kg/m2 (10-80). Taylor 2021 Table 3 subtracts 0.056 per kg/m2. magent does not weigh the patient."
      },
      "sex": {
       "enum": [
        "male",
        "female"
       ],
       "type": "string",
       "description": "Sex as assigned by the caller. female is the reference (0). male adds 0.493 (Taylor 2021 Table 3). This is a published sex coefficient, not race."
      },
      "ecog": {
       "type": "integer",
       "description": "ECOG / WHO performance status 0-4 as assigned by the caller (Taylor 2021 Table 3 coefficient 0.183 per point). magent does not assign ECOG."
      },
      "anemia": {
       "type": "boolean",
       "description": "Taylor 2021 WHO anaemia as assigned by the caller: haemoglobin <120 g/L for women or <130 g/L for men (+0.242). true or false. magent does not read a haemoglobin."
      },
      "diagnosis": {
       "enum": [
        "benign",
        "malignant"
       ],
       "type": "string",
       "description": "Diagnosis as assigned by the caller. benign is the reference (0). malignant (confirmed or suspected) adds 0.769 (Taylor 2021 Table 3)."
      },
      "arrhythmia": {
       "type": "boolean",
       "description": "Preoperative arrhythmia as assigned by the caller (Taylor 2021 Table 3 +0.608). true or false. magent does not read an ECG."
      },
      "laterality": {
       "enum": [
        "left",
        "right"
       ],
    
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-resect-90-lung-resection-90-day-mortality-calculator-88800aab/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)
