# Leibovich 2018 RCC Prognostic Score Calculator

> Leibovich 2018 RCC Prognostic Score Calculator 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 Leibovich 2018 histology-specific prognostic score and PFS risk group for clear cell, papillary, or chromophobe renal cell carcinoma after surgery.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/leibovich_2018
- 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/leibovich-2018-rcc-prognostic-score-calculator-7071ebb9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KxlxnkhPwBmKL7By5iVpQ

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 leibovich-2018-rcc-prognostic-score-calculator-7071ebb9
```

Example prompt: Calculate the Leibovich 2018 score for a patient with clear cell RCC: T stage t3a, N stage n0, tumor size 7.5 cm, nuclear grade 3, and no histologic necrosis.

## When to prefer this

Use this endpoint when you need the Leibovich 2018 histology-specific prognostic model (not SSIGN, not Leibovich 2003) for clear cell, papillary, or chromophobe RCC after surgical resection, with caller-supplied 2010 TNM staging, nuclear grade, and necrosis status. It is the correct tool when downstream logic requires the validated three-tier PFS risk group from the 2018 Mayo Clinic publication.

## Known failure modes

- Unsupported histology (e.g. collecting-duct or unclassified RCC) returns an error — only clear_cell, papillary, chromophobe accepted
- Invalid T stage (e.g. pre-2010 stages without a/b substages) will be rejected
- Nuclear grade outside 1–4 integer range (e.g. 0, 5, or fractional values) returns validation error
- Tumor size outside clamped range (0.1–30 cm) may be rejected or clamped
- Missing required query parameters returns a 400-level error

## How this service works

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.

## Output

Returns the Leibovich 2018 prognostic score (integer, max 12 for ccRCC) and the corresponding PFS risk group (low, intermediate, or high for clear cell; three groups for papillary and chromophobe), based on the caller-supplied pathologic parameters.

## 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": [
      "histology",
      "t_stage",
      "n_stage",
      "tumor_size_cm",
      "nuclear_grade",
      "necrosis"
     ],
     "properties": {
      "n_stage": {
       "enum": [
        "nx",
        "n0",
        "n1"
       ],
       "type": "string",
       "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."
      },
      "t_stage": {
       "enum": [
        "t1a",
        "t1b",
        "t2a",
        "t2b",
        "t3a",
        "t3b",
        "t3c",
        "t4"
       ],
       "type": "string",
       "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."
      },
      "necrosis": {
       "type": "boolean",
       "description": "Histologic tumor necrosis as assigned by the caller (Leibovich 2018). true scores 2 on ccRCC. magent does not read slides."
      },
      "histology": {
       "enum": [
        "clear_cell",
        "papillary",
        "chromophobe"
       ],
       "type": "string",
       "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."
      },
      "nuclear_grade": {
       "type": "integer",
       "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."
      },
      "tumor_size_cm": {
       "type": "number",
       "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."
      
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/leibovich-2018-rcc-prognostic-score-calculator-7071ebb9/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)
