{
  "x402Version": 2,
  "id": 39035,
  "slug": "39035",
  "resource": "https://api.magentlab.com/api/calc/metroticket_2",
  "description": "Mazzaferro 2018 Metroticket 2.0 AFP-adjusted-to-HCC-size 70% 5-year HCC-specific survival criteria. meets_70pct_hcc_specific_survival is true iff AFP <200 ng/mL and tumor_count + largest_cm <=7, or 200<=AFP<400 and sum <=5, or 400<=AFP<=1000 and sum <=4. AFP >1000 never meets. Not Milan, UCSF, Metroticket 1.0 contours, or competing-risk survival percents. magent does not interpret imaging or assay AFP. Not a medical device or transplant listing.",
  "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_ng_ml": 50,
                "largest_cm": 3,
                "tumor_count": 1
              },
              {
                "afp_ng_ml": 50,
                "largest_cm": 3,
                "tumor_count": 1
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "afp_ng_ml": 50,
                "citation": {
                  "authors": "Mazzaferro V, Sposito C, Zhou J, Pinna AD, De Carlis L, Fan J, Cescon M, Di Sandro S, Yi-feng H, Lauterio A, Bongini M, Mariani L",
                  "doi": "10.1053/j.gastro.2017.09.025",
                  "id": "mazzaferro-2018",
                  "pmid": "28989060",
                  "source": "Gastroenterology. 2018;154(1):128-139",
                  "title": "Metroticket 2.0 Model for Analysis of Competing Risks of Death After Liver Transplantation for Hepatocellular Carcinoma"
                },
                "criteria": [
                  {
                    "factor": "afp_lt_200_sum_le_7",
                    "met": true
                  },
                  {
                    "factor": "afp_200_400_sum_le_5",
                    "met": false
                  },
                  {
                    "factor": "afp_400_1000_sum_le_4",
                    "met": false
                  }
                ],
                "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": "metroticket_2",
                "formula_expression": "meets_70pct_hcc_specific_survival iff (afp_ng_ml < 200 and size_number_sum <= 7) or (200 <= afp_ng_ml < 400 and size_number_sum <= 5) or (400 <= afp_ng_ml <= 1000 and size_number_sum <= 4); size_number_sum = tumor_count + largest_cm; afp_ng_ml > 1000 is always false (Mazzaferro 2018 AFP-adjusted-to-HCC-size 70% 5-year HCC-specific survival)",
                "largest_cm": 3,
                "meets_70pct_hcc_specific_survival": true,
                "size_number_sum": 4,
                "tumor_count": 1
              },
              {
                "afp_ng_ml": 50,
                "citation": {
                  "authors": "Mazzaferro V, Sposito C, Zhou J, Pinna AD, De Carlis L, Fan J, Cescon M, Di Sandro S, Yi-feng H, Lauterio A, Bongini M, Mariani L",
                  "doi": "10.1053/j.gastro.2017.09.025",
                  "id": "mazzaferro-2018",
                  "pmid": "28989060",
                  "source": "Gastroenterology. 2018;154(1):128-139",
                  "title": "Metroticket 2.0 Model for Analysis of Competing Risks of Death After Liver Transplantation for Hepatocellular Carcinoma"
                },
                "criteria": [
                  {
                    "factor": "afp_lt_200_sum_le_7",
                    "met": true
                  },
                  {
                    "factor": "afp_200_400_sum_le_5",
                    "met": false
                  },
                  {
                    "factor": "afp_400_1000_sum_le_4",
                    "met": false
                  }
                ],
                "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": "metroticket_2",
                "formula_expression": "meets_70pct_hcc_specific_survival iff (afp_ng_ml < 200 and size_number_sum <= 7) or (200 <= afp_ng_ml < 400 and size_number_sum <= 5) or (400 <= afp_ng_ml <= 1000 and size_number_sum <= 4); size_number_sum = tumor_count + largest_cm; afp_ng_ml > 1000 is always false (Mazzaferro 2018 AFP-adjusted-to-HCC-size 70% 5-year HCC-specific survival)",
                "largest_cm": 3,
                "meets_70pct_hcc_specific_survival": true,
                "size_number_sum": 4,
                "tumor_count": 1
              }
            ],
            "path": "/api/calc/metroticket_2"
          },
          "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_ng_ml": {
                          "description": "Serum AFP in ng/mL (1-100000) as assigned by the caller. Mazzaferro 2018 bands: <200 (sum <=7), 200 to <400 (sum <=5), 400 to 1000 (sum <=4); >1000 never meets. magent does not assay AFP.",
                          "type": "number"
                        },
                        "largest_cm": {
                          "description": "Largest tumor diameter in centimetres (0.1-30) as assigned by the caller. Added to tumor_count as size_number_sum. magent does not interpret imaging.",
                          "type": "number"
                        },
                        "tumor_count": {
                          "description": "Number of HCC nodules (integer 1-20) as assigned by the caller. Added to largest_cm as size_number_sum (up-to-7 convention). magent does not interpret imaging.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "tumor_count",
                        "largest_cm",
                        "afp_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": [
    "metroticket-2",
    "hcc",
    "liver",
    "transplant",
    "afp",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T08:31:18.277Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T08:31:18.162Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "afp_ng_ml": 50,
                  "largest_cm": 3,
                  "tumor_count": 1
                },
                {
                  "afp_ng_ml": 50,
                  "largest_cm": 3,
                  "tumor_count": 1
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "afp_ng_ml": 50,
                  "citation": {
                    "authors": "Mazzaferro V, Sposito C, Zhou J, Pinna AD, De Carlis L, Fan J, Cescon M, Di Sandro S, Yi-feng H, Lauterio A, Bongini M, Mariani L",
                    "doi": "10.1053/j.gastro.2017.09.025",
                    "id": "mazzaferro-2018",
                    "pmid": "28989060",
                    "source": "Gastroenterology. 2018;154(1):128-139",
                    "title": "Metroticket 2.0 Model for Analysis of Competing Risks of Death After Liver Transplantation for Hepatocellular Carcinoma"
                  },
                  "criteria": [
                    {
                      "factor": "afp_lt_200_sum_le_7",
                      "met": true
                    },
                    {
                      "factor": "afp_200_400_sum_le_5",
                      "met": false
                    },
                    {
                      "factor": "afp_400_1000_sum_le_4",
                      "met": false
                    }
                  ],
                  "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": "metroticket_2",
                  "formula_expression": "meets_70pct_hcc_specific_survival iff (afp_ng_ml < 200 and size_number_sum <= 7) or (200 <= afp_ng_ml < 400 and size_number_sum <= 5) or (400 <= afp_ng_ml <= 1000 and size_number_sum <= 4); size_number_sum = tumor_count + largest_cm; afp_ng_ml > 1000 is always false (Mazzaferro 2018 AFP-adjusted-to-HCC-size 70% 5-year HCC-specific survival)",
                  "largest_cm": 3,
                  "meets_70pct_hcc_specific_survival": true,
                  "size_number_sum": 4,
                  "tumor_count": 1
                },
                {
                  "afp_ng_ml": 50,
                  "citation": {
                    "authors": "Mazzaferro V, Sposito C, Zhou J, Pinna AD, De Carlis L, Fan J, Cescon M, Di Sandro S, Yi-feng H, Lauterio A, Bongini M, Mariani L",
                    "doi": "10.1053/j.gastro.2017.09.025",
                    "id": "mazzaferro-2018",
                    "pmid": "28989060",
                    "source": "Gastroenterology. 2018;154(1):128-139",
                    "title": "Metroticket 2.0 Model for Analysis of Competing Risks of Death After Liver Transplantation for Hepatocellular Carcinoma"
                  },
                  "criteria": [
                    {
                      "factor": "afp_lt_200_sum_le_7",
                      "met": true
                    },
                    {
                      "factor": "afp_200_400_sum_le_5",
                      "met": false
                    },
                    {
                      "factor": "afp_400_1000_sum_le_4",
                      "met": false
                    }
                  ],
                  "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": "metroticket_2",
                  "formula_expression": "meets_70pct_hcc_specific_survival iff (afp_ng_ml < 200 and size_number_sum <= 7) or (200 <= afp_ng_ml < 400 and size_number_sum <= 5) or (400 <= afp_ng_ml <= 1000 and size_number_sum <= 4); size_number_sum = tumor_count + largest_cm; afp_ng_ml > 1000 is always false (Mazzaferro 2018 AFP-adjusted-to-HCC-size 70% 5-year HCC-specific survival)",
                  "largest_cm": 3,
                  "meets_70pct_hcc_specific_survival": true,
                  "size_number_sum": 4,
                  "tumor_count": 1
                }
              ],
              "path": "/api/calc/metroticket_2"
            },
            "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_ng_ml": {
                            "description": "Serum AFP in ng/mL (1-100000) as assigned by the caller. Mazzaferro 2018 bands: <200 (sum <=7), 200 to <400 (sum <=5), 400 to 1000 (sum <=4); >1000 never meets. magent does not assay AFP.",
                            "type": "number"
                          },
                          "largest_cm": {
                            "description": "Largest tumor diameter in centimetres (0.1-30) as assigned by the caller. Added to tumor_count as size_number_sum. magent does not interpret imaging.",
                            "type": "number"
                          },
                          "tumor_count": {
                            "description": "Number of HCC nodules (integer 1-20) as assigned by the caller. Added to largest_cm as size_number_sum (up-to-7 convention). magent does not interpret imaging.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "tumor_count",
                          "largest_cm",
                          "afp_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"
  }
}