{
  "x402Version": 2,
  "id": 39059,
  "slug": "39059",
  "resource": "https://api.magentlab.com/api/calc/leibovich_2018",
  "description": "Leibovich 2018 histology-specific RCC models after surgery. Required histology clear_cell, papillary, or chromophobe. ccRCC PFS points (2010 TNM): t1a/t1b/t2a 0, t2b 2, t3a-t3c 3, t4 4; nx/n0 0, n1 2; size ≥10 cm 1; grade 1-2 0, 3 1, 4 3; necrosis 2; max 12; risk low 0-2, intermediate 3-5, high ≥6. Papillary and chromophobe return the 2018 three PFS groups (score 0-2). Not SSIGN. Not Leibovich 2003. magent does not stage or read pathology. Not a diagnosis. Not a medical device.",
  "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": [
              {
                "histology": "clear_cell",
                "n_stage": "n0",
                "necrosis": false,
                "nuclear_grade": 2,
                "t_stage": "t1a",
                "tumor_size_cm": 3
              },
              {
                "histology": "clear_cell",
                "n_stage": "n0",
                "necrosis": false,
                "nuclear_grade": 2,
                "t_stage": "t1a",
                "tumor_size_cm": 3
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Leibovich BC, Lohse CM, Cheville JC, Zaid HB, Boorjian SA, Frank I, Thompson RH, Parker WP",
                  "doi": "10.1016/j.eururo.2018.01.005",
                  "id": "leibovich-2018",
                  "pmid": "29398265",
                  "source": "Eur Urol. 2018;73(5):772-780",
                  "title": "Predicting Oncologic Outcomes in Renal Cell Carcinoma After Surgery"
                },
                "components": [
                  {
                    "factor": "t_stage",
                    "points": 0,
                    "present": true,
                    "value": "t1a"
                  },
                  {
                    "factor": "n_stage",
                    "points": 0,
                    "present": true,
                    "value": "n0"
                  },
                  {
                    "factor": "tumor_size_cm",
                    "points": 0,
                    "present": false,
                    "value": 3
                  },
                  {
                    "factor": "nuclear_grade",
                    "points": 0,
                    "present": true,
                    "value": 2
                  },
                  {
                    "factor": "necrosis",
                    "points": 0,
                    "present": 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": "leibovich_2018",
                "formula_expression": "ccRCC PFS (Leibovich 2018, 2010 TNM): t_stage (t1a/t1b/t2a 0, t2b 2, t3a/t3b/t3c 3, t4 4) + n_stage (nx/n0 0, n1 2) + tumor_size_cm >=10 1 + nuclear_grade (1-2 0, 3 1, 4 3) + necrosis 2; max 12; risk low 0-2, intermediate 3-5, high >=6. papillary PFS groups: low grade 1-2 and t1-t2; intermediate grade 3 and t1-t2; high grade 4 or t3a-t4 (fat or thrombus). chromophobe PFS groups: low t1-t2 and nx/n0; intermediate t3a-t4 and nx/n0 (fat); high n1. Not Frank 2002 SSIGN. Not Leibovich 2003. No chromophobe CSS model.",
                "histology": "clear_cell",
                "max_score": 12,
                "n_stage": "n0",
                "necrosis": false,
                "nuclear_grade": 2,
                "risk": "low",
                "score": 0,
                "t_stage": "t1a",
                "tumor_size_cm": 3
              },
              {
                "citation": {
                  "authors": "Leibovich BC, Lohse CM, Cheville JC, Zaid HB, Boorjian SA, Frank I, Thompson RH, Parker WP",
                  "doi": "10.1016/j.eururo.2018.01.005",
                  "id": "leibovich-2018",
                  "pmid": "29398265",
                  "source": "Eur Urol. 2018;73(5):772-780",
                  "title": "Predicting Oncologic Outcomes in Renal Cell Carcinoma After Surgery"
                },
                "components": [
                  {
                    "factor": "t_stage",
                    "points": 0,
                    "present": true,
                    "value": "t1a"
                  },
                  {
                    "factor": "n_stage",
                    "points": 0,
                    "present": true,
                    "value": "n0"
                  },
                  {
                    "factor": "tumor_size_cm",
                    "points": 0,
                    "present": false,
                    "value": 3
                  },
                  {
                    "factor": "nuclear_grade",
                    "points": 0,
                    "present": true,
                    "value": 2
                  },
                  {
                    "factor": "necrosis",
                    "points": 0,
                    "present": 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": "leibovich_2018",
                "formula_expression": "ccRCC PFS (Leibovich 2018, 2010 TNM): t_stage (t1a/t1b/t2a 0, t2b 2, t3a/t3b/t3c 3, t4 4) + n_stage (nx/n0 0, n1 2) + tumor_size_cm >=10 1 + nuclear_grade (1-2 0, 3 1, 4 3) + necrosis 2; max 12; risk low 0-2, intermediate 3-5, high >=6. papillary PFS groups: low grade 1-2 and t1-t2; intermediate grade 3 and t1-t2; high grade 4 or t3a-t4 (fat or thrombus). chromophobe PFS groups: low t1-t2 and nx/n0; intermediate t3a-t4 and nx/n0 (fat); high n1. Not Frank 2002 SSIGN. Not Leibovich 2003. No chromophobe CSS model.",
                "histology": "clear_cell",
                "max_score": 12,
                "n_stage": "n0",
                "necrosis": false,
                "nuclear_grade": 2,
                "risk": "low",
                "score": 0,
                "t_stage": "t1a",
                "tumor_size_cm": 3
              }
            ],
            "path": "/api/calc/leibovich_2018"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "histology": {
                          "description": "Surgical histology as assigned by the caller (Leibovich 2018). clear_cell, papillary, or chromophobe. Not collecting-duct or unclassified. magent does not read slides.",
                          "enum": [
                            "clear_cell",
                            "papillary",
                            "chromophobe"
                          ],
                          "type": "string"
                        },
                        "n_stage": {
                          "description": "2010 pathologic N as assigned by the caller (Leibovich 2018). nx or n0 scores 0 on ccRCC; n1 scores 2. Not n2 (2002 N). magent does not stage nodes.",
                          "enum": [
                            "nx",
                            "n0",
                            "n1"
                          ],
                          "type": "string"
                        },
                        "necrosis": {
                          "description": "Histologic tumor necrosis as assigned by the caller (Leibovich 2018). true scores 2 on ccRCC. magent does not read slides.",
                          "type": "boolean"
                        },
                        "nuclear_grade": {
                          "description": "Nuclear grade 1-4 as assigned by the caller (Leibovich 2018). On ccRCC, 1-2 score 0; 3 scores 1; 4 scores 3. Integer 1-4 only; reject 0, 5, 1.5, and roman I. magent does not read slides.",
                          "type": "integer"
                        },
                        "t_stage": {
                          "description": "2010 pathologic T as assigned by the caller (Leibovich 2018). t1a, t1b, t2a, t2b, t3a, t3b, t3c, or t4. Not 1997/2002 T without a/b substages. magent does not stage the tumor.",
                          "enum": [
                            "t1a",
                            "t1b",
                            "t2a",
                            "t2b",
                            "t3a",
                            "t3b",
                            "t3c",
                            "t4"
                          ],
                          "type": "string"
                        },
                        "tumor_size_cm": {
                          "description": "Maximum tumor size in cm as assigned by the caller (Leibovich 2018). Unrounded; 10.0 cm or greater scores 1 on ccRCC. Magent clamp 0.1-30, not a published range. magent does not measure the tumor.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "histology",
                        "t_stage",
                        "n_stage",
                        "tumor_size_cm",
                        "nuclear_grade",
                        "necrosis"
                      ],
                      "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": [
    "leibovich-2018",
    "rcc",
    "kidney",
    "prognosis",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T07:36:31.499Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T07:36:31.351Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "histology": "clear_cell",
                  "n_stage": "n0",
                  "necrosis": false,
                  "nuclear_grade": 2,
                  "t_stage": "t1a",
                  "tumor_size_cm": 3
                },
                {
                  "histology": "clear_cell",
                  "n_stage": "n0",
                  "necrosis": false,
                  "nuclear_grade": 2,
                  "t_stage": "t1a",
                  "tumor_size_cm": 3
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Leibovich BC, Lohse CM, Cheville JC, Zaid HB, Boorjian SA, Frank I, Thompson RH, Parker WP",
                    "doi": "10.1016/j.eururo.2018.01.005",
                    "id": "leibovich-2018",
                    "pmid": "29398265",
                    "source": "Eur Urol. 2018;73(5):772-780",
                    "title": "Predicting Oncologic Outcomes in Renal Cell Carcinoma After Surgery"
                  },
                  "components": [
                    {
                      "factor": "t_stage",
                      "points": 0,
                      "present": true,
                      "value": "t1a"
                    },
                    {
                      "factor": "n_stage",
                      "points": 0,
                      "present": true,
                      "value": "n0"
                    },
                    {
                      "factor": "tumor_size_cm",
                      "points": 0,
                      "present": false,
                      "value": 3
                    },
                    {
                      "factor": "nuclear_grade",
                      "points": 0,
                      "present": true,
                      "value": 2
                    },
                    {
                      "factor": "necrosis",
                      "points": 0,
                      "present": 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": "leibovich_2018",
                  "formula_expression": "ccRCC PFS (Leibovich 2018, 2010 TNM): t_stage (t1a/t1b/t2a 0, t2b 2, t3a/t3b/t3c 3, t4 4) + n_stage (nx/n0 0, n1 2) + tumor_size_cm >=10 1 + nuclear_grade (1-2 0, 3 1, 4 3) + necrosis 2; max 12; risk low 0-2, intermediate 3-5, high >=6. papillary PFS groups: low grade 1-2 and t1-t2; intermediate grade 3 and t1-t2; high grade 4 or t3a-t4 (fat or thrombus). chromophobe PFS groups: low t1-t2 and nx/n0; intermediate t3a-t4 and nx/n0 (fat); high n1. Not Frank 2002 SSIGN. Not Leibovich 2003. No chromophobe CSS model.",
                  "histology": "clear_cell",
                  "max_score": 12,
                  "n_stage": "n0",
                  "necrosis": false,
                  "nuclear_grade": 2,
                  "risk": "low",
                  "score": 0,
                  "t_stage": "t1a",
                  "tumor_size_cm": 3
                },
                {
                  "citation": {
                    "authors": "Leibovich BC, Lohse CM, Cheville JC, Zaid HB, Boorjian SA, Frank I, Thompson RH, Parker WP",
                    "doi": "10.1016/j.eururo.2018.01.005",
                    "id": "leibovich-2018",
                    "pmid": "29398265",
                    "source": "Eur Urol. 2018;73(5):772-780",
                    "title": "Predicting Oncologic Outcomes in Renal Cell Carcinoma After Surgery"
                  },
                  "components": [
                    {
                      "factor": "t_stage",
                      "points": 0,
                      "present": true,
                      "value": "t1a"
                    },
                    {
                      "factor": "n_stage",
                      "points": 0,
                      "present": true,
                      "value": "n0"
                    },
                    {
                      "factor": "tumor_size_cm",
                      "points": 0,
                      "present": false,
                      "value": 3
                    },
                    {
                      "factor": "nuclear_grade",
                      "points": 0,
                      "present": true,
                      "value": 2
                    },
                    {
                      "factor": "necrosis",
                      "points": 0,
                      "present": 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": "leibovich_2018",
                  "formula_expression": "ccRCC PFS (Leibovich 2018, 2010 TNM): t_stage (t1a/t1b/t2a 0, t2b 2, t3a/t3b/t3c 3, t4 4) + n_stage (nx/n0 0, n1 2) + tumor_size_cm >=10 1 + nuclear_grade (1-2 0, 3 1, 4 3) + necrosis 2; max 12; risk low 0-2, intermediate 3-5, high >=6. papillary PFS groups: low grade 1-2 and t1-t2; intermediate grade 3 and t1-t2; high grade 4 or t3a-t4 (fat or thrombus). chromophobe PFS groups: low t1-t2 and nx/n0; intermediate t3a-t4 and nx/n0 (fat); high n1. Not Frank 2002 SSIGN. Not Leibovich 2003. No chromophobe CSS model.",
                  "histology": "clear_cell",
                  "max_score": 12,
                  "n_stage": "n0",
                  "necrosis": false,
                  "nuclear_grade": 2,
                  "risk": "low",
                  "score": 0,
                  "t_stage": "t1a",
                  "tumor_size_cm": 3
                }
              ],
              "path": "/api/calc/leibovich_2018"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "histology": {
                            "description": "Surgical histology as assigned by the caller (Leibovich 2018). clear_cell, papillary, or chromophobe. Not collecting-duct or unclassified. magent does not read slides.",
                            "enum": [
                              "clear_cell",
                              "papillary",
                              "chromophobe"
                            ],
                            "type": "string"
                          },
                          "n_stage": {
                            "description": "2010 pathologic N as assigned by the caller (Leibovich 2018). nx or n0 scores 0 on ccRCC; n1 scores 2. Not n2 (2002 N). magent does not stage nodes.",
                            "enum": [
                              "nx",
                              "n0",
                              "n1"
                            ],
                            "type": "string"
                          },
                          "necrosis": {
                            "description": "Histologic tumor necrosis as assigned by the caller (Leibovich 2018). true scores 2 on ccRCC. magent does not read slides.",
                            "type": "boolean"
                          },
                          "nuclear_grade": {
                            "description": "Nuclear grade 1-4 as assigned by the caller (Leibovich 2018). On ccRCC, 1-2 score 0; 3 scores 1; 4 scores 3. Integer 1-4 only; reject 0, 5, 1.5, and roman I. magent does not read slides.",
                            "type": "integer"
                          },
                          "t_stage": {
                            "description": "2010 pathologic T as assigned by the caller (Leibovich 2018). t1a, t1b, t2a, t2b, t3a, t3b, t3c, or t4. Not 1997/2002 T without a/b substages. magent does not stage the tumor.",
                            "enum": [
                              "t1a",
                              "t1b",
                              "t2a",
                              "t2b",
                              "t3a",
                              "t3b",
                              "t3c",
                              "t4"
                            ],
                            "type": "string"
                          },
                          "tumor_size_cm": {
                            "description": "Maximum tumor size in cm as assigned by the caller (Leibovich 2018). Unrounded; 10.0 cm or greater scores 1 on ccRCC. Magent clamp 0.1-30, not a published range. magent does not measure the tumor.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "histology",
                          "t_stage",
                          "n_stage",
                          "tumor_size_cm",
                          "nuclear_grade",
                          "necrosis"
                        ],
                        "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"
  }
}