# GALAD Score Calculator (Johnson 2014)

> GALAD Score Calculator (Johnson 2014) 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 Johnson 2014 GALAD linear predictor score for hepatocellular carcinoma risk from age, sex, AFP, AFP-L3, and DCP biomarker values.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/galad
- 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/galad-score-calculator-johnson-2014-3c69f049
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aj4LrJvoIORnGau2zOP9C

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 galad-score-calculator-johnson-2014-3c69f049
```

Example prompt: Calculate the GALAD score for a 58-year-old male with AFP of 45 ng/mL, AFP-L3 of 12 percent, and DCP of 80 ng/mL.

## When to prefer this

Use this endpoint when you need to compute the exact Johnson 2014 GALAD linear predictor score using AFP (ng/mL), AFP-L3 (%), and DCP (ng/mL) inputs. Prefer this over manual calculation to avoid unit-conversion mistakes and to ensure the correct formula variant (Johnson 2014, not Johnson 2015 ALBI variant) is applied. Not appropriate for obtaining a diagnostic probability, ALBI grade, or listing protocol decision.

## Known failure modes

- Missing required query parameters (age, sex, afp_ng_ml, afp_l3_percent, dcp_ng_ml) returns a validation error
- AFP or DCP values outside valid range (0.1–100000 ng/mL) may be rejected or clamped
- Age below 18 is clamped to 18 per implementation
- DCP provided in mAU/mL instead of ng/mL produces incorrect score without warning (no unit conversion performed)
- Payment not included or insufficient USDC results in HTTP 402 response
- AFP-L3 outside 0–100 percent range may cause unexpected results

## How this service works

Johnson 2014 GALAD linear predictor from age, sex, AFP ng/mL, AFP-L3 percent, and DCP ng/mL. galad_score = -10.08 + 0.09*age + 1.67*sex + 2.34*log10(AFP) + 0.04*AFP-L3 + 1.33*log10(DCP); sex is 1 if male else 0. Returns galad_score to 2 decimals. Not an HCC diagnosis, listing protocol, probability, or Johnson 2015 ALBI. DCP is ng/mL, not mAU/mL.

## Output

Returns a single GALAD score rounded to 2 decimal places, computed as: -10.08 + 0.09×age + 1.67×sex + 2.34×log10(AFP ng/mL) + 0.04×AFP-L3% + 1.33×log10(DCP ng/mL). The score is a continuous linear predictor value — not a probability, diagnosis, or listing protocol recommendation.

## 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",
      "afp_ng_ml",
      "afp_l3_percent",
      "dcp_ng_ml"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). Eighteen is an implementation clamp; Johnson 2014 is adult chronic liver disease."
      },
      "sex": {
       "enum": [
        "female",
        "male"
       ],
       "type": "string",
       "description": "Sex used in the linear predictor (male = 1, female = 0)."
      },
      "afp_ng_ml": {
       "type": "number",
       "description": "AFP in ng/mL (0.1-100000). Johnson 2014 uses log10 of ng/mL. Not a conversion from other units."
      },
      "dcp_ng_ml": {
       "type": "number",
       "description": "DCP (des-gamma-carboxy prothrombin) in ng/mL (0.1-100000). Johnson 2014 uses log10 of ng/mL. Not mAU/mL; magent does not convert."
      },
      "afp_l3_percent": {
       "type": "number",
       "description": "AFP-L3 as a raw percent of total AFP (0-100). Enters unlogged. Johnson 2014 does not take log10 of AFP-L3."
      }
     }
    }
   },
   "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/galad-score-calculator-johnson-2014-3c69f049/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)
