# Sperduto 2019 GI-GPA Calculator (Gastrointestinal Graded Prognostic Assessment)

> Sperduto 2019 GI-GPA Calculator (Gastrointestinal Graded Prognostic Assessment) 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-15).

Computes the Sperduto 2019 updated GI-GPA score and associated median survival estimate for gastrointestinal cancer patients with brain metastases

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/gi_gpa
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sperduto-2019-gi-gpa-calculator-gastrointestinal-graded-prognostic-df4c4d85
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hQzJlUhVE778Jp6whA5ex

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 sperduto-2019-gi-gpa-calculator-gastrointestinal-graded-prognostic-df4c4d85
```

Example prompt: Calculate the GI-GPA score for a 58-year-old GI cancer patient with a KPS of 80, 2 brain metastases, and no extracranial metastases — what's the score and expected median survival?

## When to prefer this

Use this endpoint when you need to compute the Sperduto 2019 updated GI-GPA specifically for gastrointestinal histology brain metastasis patients — not for lung (use lung-molGPA), breast, or other histology-specific GPA variants. Prefer this over generic survival lookup when discrete clinical variables (KPS, age, ECM, brain met count) are available and you need a validated, guideline-referenced prognostic score tied to Sperduto 2019 median survival data.

## Known failure modes

- Missing required query parameters (kps, age, extracranial_metastases, brain_metastasis_count) returns a validation error
- KPS value outside valid decade range (10–100) or grade 0 (dead) not accepted
- brain_metastasis_count outside integer range 1–50 returns an error
- age outside 18–120 integer range returns a validation error
- Payment failure (x402 protocol) blocks the call if USDC payment is not successfully submitted

## How this service works

Sperduto 2019 updated GI-GPA: KPS <80 = 0, 80 = 1.0, 90-100 = 2.0; age >=60 = 0, <60 = 0.5; extracranial metastases present = 0, absent = 0.5; number of brain metastases >3 = 0, 2-3 = 0.5, 1 = 1.0. Max 4.0. GPA 0-1.0 / 1.5-2.0 / 2.5-3.0 / 3.5-4.0 median survival 3, 7, 11, 17 months (abstract/KM). Not a treatment order. Not lung-molGPA. magent does not assign KPS.

## Output

Returns the computed GI-GPA total score (0.0–4.0), the prognostic tier (e.g. 0–1.0, 1.5–2.0, 2.5–3.0, 3.5–4.0), and the associated Kaplan-Meier median survival in months (3, 7, 11, or 17 months) per Sperduto 2019 Table 4. Does not assign KPS, count imaging lesions, or stage extracranial disease.

## 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": [
      "kps",
      "age",
      "extracranial_metastases",
      "brain_metastasis_count"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). Sperduto 2019 Table 4: >=60 scores 0; <60 scores 0.5."
      },
      "kps": {
       "type": "integer",
       "description": "Caller-assigned Karnofsky Performance Status decade 10, 20, 30, 40, 50, 60, 70, 80, 90, or 100. Sperduto 2019 Table 4: <80 (10-70) scores 0; 80 scores 1.0; 90-100 scores 2.0. Grade 0 (dead) is not scored. magent does not assign KPS."
      },
      "brain_metastasis_count": {
       "type": "integer",
       "description": "Number of brain metastases (integer 1-50). Sperduto 2019 Table 4: >3 scores 0; 2-3 scores 0.5; 1 scores 1.0. magent does not count metastases on imaging."
      },
      "extracranial_metastases": {
       "type": "boolean",
       "description": "Extracranial metastases (ECM). true (present) scores 0; false (absent) scores 0.5 (Sperduto 2019 Table 4). magent does not stage extracranial disease."
      }
     }
    }
   },
   "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/sperduto-2019-gi-gpa-calculator-gastrointestinal-graded-prognostic-df4c4d85/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)
