# magent HCC Liver Decompensation Risk Classifier (Citterio 2016)

> magent HCC Liver Decompensation Risk Classifier (Citterio 2016) 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).

Classifies post-hepatectomy liver decompensation risk into Low, Intermediate, or High categories using the Citterio 2016 JAMA Surgery hierarchical model based on portal hypertension status, hepatectomy extent, and MELD score.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/hcc_ld
- 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/magent-hcc-liver-decompensation-risk-classifier-citterio-2016-ef357b99
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2nAKcoYMmXKcLE5upQVF1

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-hcc-liver-decompensation-risk-classifier-citterio-2016-ef357b99
```

Example prompt: My patient has clinically significant portal hypertension and is planned for a major hepatectomy for HCC; their MELD score is 12 — can you classify their post-resection liver decompensation risk using the Citterio 2016 model?

## When to prefer this

Choose this endpoint when you need to apply the specific Citterio 2016 JAMA Surgery hierarchical classification for post-HCC-resection liver decompensation risk and already have caller-assigned portal hypertension status, hepatectomy extent, and MELD score. This is not a general liver function calculator or MELD calculator — use it when the clinical team has already determined portal hypertension status and planned resection extent and simply needs the published risk class applied.

## Known failure modes

- MELD integer out of range (must be 6–40) returns validation error
- Missing required query parameter (portal_hypertension, major_hepatectomy, or meld) returns 400 or similar error
- Non-integer MELD value causes schema validation failure
- Payment not fulfilled causes 402 Payment Required response
- Service unavailable returns 5xx error

## How this service works

Citterio 2016 JAMA Surgery hierarchic classes for liver decompensation after HCC resection from caller-assigned portal_hypertension, major_hepatectomy, and meld (integer 6-40). High if PHT and major (LD 60.0%, liver-related mortality 25.0%). Low if no PHT, minor, and MELD ≤ 9 (LD 4.9%, mortality 4.4%). Else intermediate (LD 28.6%, mortality 9.0%). magent does not compute MELD or HVPG. Not a surgical indication, transplant listing, or medical device.

## Output

Returns the hierarchical Citterio 2016 risk class (High, Intermediate, or Low) along with the corresponding liver decompensation rate percentage and liver-related mortality rate percentage for the given combination of portal hypertension status, major hepatectomy extent, and MELD score.

## 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": [
      "portal_hypertension",
      "major_hepatectomy",
      "meld"
     ],
     "properties": {
      "meld": {
       "type": "integer",
       "description": "Caller-assigned MELD integer 6-40 (Citterio 2016). Low requires meld ≤ 9 when portal hypertension and major hepatectomy are both false. magent does not compute MELD."
      },
      "major_hepatectomy": {
       "type": "boolean",
       "description": "Planned major hepatectomy as assigned by the caller (Citterio 2016). true or false. magent does not choose extent of resection."
      },
      "portal_hypertension": {
       "type": "boolean",
       "description": "Clinically significant portal hypertension as assigned by the caller (Citterio 2016). true or false. magent does not measure HVPG or assign portal hypertension."
      }
     }
    }
   },
   "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/magent-hcc-liver-decompensation-risk-classifier-citterio-2016-ef357b99/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)
