{
  "x402Version": 2,
  "id": 39163,
  "slug": "39163",
  "resource": "https://api.magentlab.com/api/calc/galad",
  "description": "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.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "afp_l3_percent": 10,
                "afp_ng_ml": 10,
                "age": 60,
                "dcp_ng_ml": 10,
                "sex": "male"
              },
              {
                "afp_l3_percent": 10,
                "afp_ng_ml": 10,
                "age": 60,
                "dcp_ng_ml": 10,
                "sex": "male"
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "afp_l3_percent": 10,
                "afp_ng_ml": 10,
                "age_years": 60,
                "citation": {
                  "authors": "Johnson PJ, Pirrie SJ, Cox TF, Berhane S, Teng M, Palmer D, Morse J, Hull D, Patman G, Kagebayashi C, et al.",
                  "doi": "10.1158/1055-9965.EPI-13-0870",
                  "id": "johnson-2014",
                  "pmid": "24220911",
                  "source": "Cancer Epidemiol Biomarkers Prev. 2014;23(1):144-153",
                  "title": "The detection of hepatocellular carcinoma using a prospectively developed and validated model based on serological biomarkers"
                },
                "dcp_ng_ml": 10,
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "galad",
                "formula_expression": "galad_score = -10.08 + 0.09*age + 1.67*sex + 2.34*log10(afp_ng_ml) + 0.04*afp_l3_percent + 1.33*log10(dcp_ng_ml)",
                "galad_score": 1.06,
                "sex": "male"
              },
              {
                "afp_l3_percent": 10,
                "afp_ng_ml": 10,
                "age_years": 60,
                "citation": {
                  "authors": "Johnson PJ, Pirrie SJ, Cox TF, Berhane S, Teng M, Palmer D, Morse J, Hull D, Patman G, Kagebayashi C, et al.",
                  "doi": "10.1158/1055-9965.EPI-13-0870",
                  "id": "johnson-2014",
                  "pmid": "24220911",
                  "source": "Cancer Epidemiol Biomarkers Prev. 2014;23(1):144-153",
                  "title": "The detection of hepatocellular carcinoma using a prospectively developed and validated model based on serological biomarkers"
                },
                "dcp_ng_ml": 10,
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "formula": "galad",
                "formula_expression": "galad_score = -10.08 + 0.09*age + 1.67*sex + 2.34*log10(afp_ng_ml) + 0.04*afp_l3_percent + 1.33*log10(dcp_ng_ml)",
                "galad_score": 1.06,
                "sex": "male"
              }
            ],
            "path": "/api/calc/galad"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "afp_l3_percent": {
                          "description": "AFP-L3 as a raw percent of total AFP (0-100). Enters unlogged. Johnson 2014 does not take log10 of AFP-L3.",
                          "type": "number"
                        },
                        "afp_ng_ml": {
                          "description": "AFP in ng/mL (0.1-100000). Johnson 2014 uses log10 of ng/mL. Not a conversion from other units.",
                          "type": "number"
                        },
                        "age": {
                          "description": "Age in years (18-120). Eighteen is an implementation clamp; Johnson 2014 is adult chronic liver disease.",
                          "type": "integer"
                        },
                        "dcp_ng_ml": {
                          "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.",
                          "type": "number"
                        },
                        "sex": {
                          "description": "Sex used in the linear predictor (male = 1, female = 0).",
                          "enum": [
                            "female",
                            "male"
                          ],
                          "type": "string"
                        }
                      },
                      "required": [
                        "age",
                        "sex",
                        "afp_ng_ml",
                        "afp_l3_percent",
                        "dcp_ng_ml"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "galad",
    "liver",
    "hcc",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T04:26:29.845Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T04:26:29.704Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "afp_l3_percent": 10,
                  "afp_ng_ml": 10,
                  "age": 60,
                  "dcp_ng_ml": 10,
                  "sex": "male"
                },
                {
                  "afp_l3_percent": 10,
                  "afp_ng_ml": 10,
                  "age": 60,
                  "dcp_ng_ml": 10,
                  "sex": "male"
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "afp_l3_percent": 10,
                  "afp_ng_ml": 10,
                  "age_years": 60,
                  "citation": {
                    "authors": "Johnson PJ, Pirrie SJ, Cox TF, Berhane S, Teng M, Palmer D, Morse J, Hull D, Patman G, Kagebayashi C, et al.",
                    "doi": "10.1158/1055-9965.EPI-13-0870",
                    "id": "johnson-2014",
                    "pmid": "24220911",
                    "source": "Cancer Epidemiol Biomarkers Prev. 2014;23(1):144-153",
                    "title": "The detection of hepatocellular carcinoma using a prospectively developed and validated model based on serological biomarkers"
                  },
                  "dcp_ng_ml": 10,
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "galad",
                  "formula_expression": "galad_score = -10.08 + 0.09*age + 1.67*sex + 2.34*log10(afp_ng_ml) + 0.04*afp_l3_percent + 1.33*log10(dcp_ng_ml)",
                  "galad_score": 1.06,
                  "sex": "male"
                },
                {
                  "afp_l3_percent": 10,
                  "afp_ng_ml": 10,
                  "age_years": 60,
                  "citation": {
                    "authors": "Johnson PJ, Pirrie SJ, Cox TF, Berhane S, Teng M, Palmer D, Morse J, Hull D, Patman G, Kagebayashi C, et al.",
                    "doi": "10.1158/1055-9965.EPI-13-0870",
                    "id": "johnson-2014",
                    "pmid": "24220911",
                    "source": "Cancer Epidemiol Biomarkers Prev. 2014;23(1):144-153",
                    "title": "The detection of hepatocellular carcinoma using a prospectively developed and validated model based on serological biomarkers"
                  },
                  "dcp_ng_ml": 10,
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "formula": "galad",
                  "formula_expression": "galad_score = -10.08 + 0.09*age + 1.67*sex + 2.34*log10(afp_ng_ml) + 0.04*afp_l3_percent + 1.33*log10(dcp_ng_ml)",
                  "galad_score": 1.06,
                  "sex": "male"
                }
              ],
              "path": "/api/calc/galad"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "afp_l3_percent": {
                            "description": "AFP-L3 as a raw percent of total AFP (0-100). Enters unlogged. Johnson 2014 does not take log10 of AFP-L3.",
                            "type": "number"
                          },
                          "afp_ng_ml": {
                            "description": "AFP in ng/mL (0.1-100000). Johnson 2014 uses log10 of ng/mL. Not a conversion from other units.",
                            "type": "number"
                          },
                          "age": {
                            "description": "Age in years (18-120). Eighteen is an implementation clamp; Johnson 2014 is adult chronic liver disease.",
                            "type": "integer"
                          },
                          "dcp_ng_ml": {
                            "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.",
                            "type": "number"
                          },
                          "sex": {
                            "description": "Sex used in the linear predictor (male = 1, female = 0).",
                            "enum": [
                              "female",
                              "male"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "age",
                          "sex",
                          "afp_ng_ml",
                          "afp_l3_percent",
                          "dcp_ng_ml"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}