{
  "x402Version": 2,
  "id": 39464,
  "slug": "39464",
  "resource": "https://api.magentlab.com/api/calc/gi_gpa",
  "description": "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.",
  "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": [
              {
                "age": 50,
                "brain_metastasis_count": 1,
                "extracranial_metastases": false,
                "kps": 100
              },
              {
                "age": 50,
                "brain_metastasis_count": 1,
                "extracranial_metastases": false,
                "kps": 100
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age": 50,
                "brain_metastasis_count": 1,
                "citation": {
                  "authors": "Sperduto PW, Fang P, Li J, et al.",
                  "doi": "10.1016/j.ctro.2019.06.007",
                  "id": "sperduto-2019-gi-gpa",
                  "pmid": "31341974",
                  "source": "Clin Transl Radiat Oncol. 2019;18:39-45",
                  "title": "Estimating survival in patients with gastrointestinal cancers and brain metastases: An update of the graded prognostic assessment for gastrointestinal cancers (GI-GPA)"
                },
                "components": [
                  {
                    "factor": "kps",
                    "points": 2,
                    "present": true,
                    "value": 100
                  },
                  {
                    "factor": "age",
                    "points": 0.5,
                    "present": true,
                    "value": 50
                  },
                  {
                    "factor": "extracranial_metastases",
                    "points": 0.5,
                    "present": true,
                    "value": false
                  },
                  {
                    "factor": "brain_metastasis_count",
                    "points": 1,
                    "present": true,
                    "value": 1
                  }
                ],
                "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.",
                "extracranial_metastases": false,
                "formula": "gi_gpa",
                "formula_expression": "GI-GPA = kps_pts + age_pts + extracranial_pts + brain_met_pts; KPS <80 (10-70) 0, 80 1.0, 90-100 2.0; age >=60 0, <60 0.5; extracranial mets present 0, absent 0.5; brain mets >3 0, 2-3 0.5, 1 1.0; groups 0-1.0 / 1.5-2.0 / 2.5-3.0 / 3.5-4.0; max 4.0 (Sperduto 2019 Table 4; median survival from abstract/KM 3, 7, 11, 17 months)",
                "gpa_group": "3.5-4.0",
                "kps": 100,
                "max_score": 4,
                "median_survival_months": 17,
                "score": 4
              },
              {
                "age": 50,
                "brain_metastasis_count": 1,
                "citation": {
                  "authors": "Sperduto PW, Fang P, Li J, et al.",
                  "doi": "10.1016/j.ctro.2019.06.007",
                  "id": "sperduto-2019-gi-gpa",
                  "pmid": "31341974",
                  "source": "Clin Transl Radiat Oncol. 2019;18:39-45",
                  "title": "Estimating survival in patients with gastrointestinal cancers and brain metastases: An update of the graded prognostic assessment for gastrointestinal cancers (GI-GPA)"
                },
                "components": [
                  {
                    "factor": "kps",
                    "points": 2,
                    "present": true,
                    "value": 100
                  },
                  {
                    "factor": "age",
                    "points": 0.5,
                    "present": true,
                    "value": 50
                  },
                  {
                    "factor": "extracranial_metastases",
                    "points": 0.5,
                    "present": true,
                    "value": false
                  },
                  {
                    "factor": "brain_metastasis_count",
                    "points": 1,
                    "present": true,
                    "value": 1
                  }
                ],
                "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.",
                "extracranial_metastases": false,
                "formula": "gi_gpa",
                "formula_expression": "GI-GPA = kps_pts + age_pts + extracranial_pts + brain_met_pts; KPS <80 (10-70) 0, 80 1.0, 90-100 2.0; age >=60 0, <60 0.5; extracranial mets present 0, absent 0.5; brain mets >3 0, 2-3 0.5, 1 1.0; groups 0-1.0 / 1.5-2.0 / 2.5-3.0 / 3.5-4.0; max 4.0 (Sperduto 2019 Table 4; median survival from abstract/KM 3, 7, 11, 17 months)",
                "gpa_group": "3.5-4.0",
                "kps": 100,
                "max_score": 4,
                "median_survival_months": 17,
                "score": 4
              }
            ],
            "path": "/api/calc/gi_gpa"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "age": {
                          "description": "Age in years (18-120). Sperduto 2019 Table 4: >=60 scores 0; <60 scores 0.5.",
                          "type": "integer"
                        },
                        "brain_metastasis_count": {
                          "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.",
                          "type": "integer"
                        },
                        "extracranial_metastases": {
                          "description": "Extracranial metastases (ECM). true (present) scores 0; false (absent) scores 0.5 (Sperduto 2019 Table 4). magent does not stage extracranial disease.",
                          "type": "boolean"
                        },
                        "kps": {
                          "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.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "kps",
                        "age",
                        "extracranial_metastases",
                        "brain_metastasis_count"
                      ],
                      "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": [
    "gi-gpa",
    "neurology",
    "brain-metastases",
    "prognosis",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T14:49:13.451Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T14:49:13.308Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 50,
                  "brain_metastasis_count": 1,
                  "extracranial_metastases": false,
                  "kps": 100
                },
                {
                  "age": 50,
                  "brain_metastasis_count": 1,
                  "extracranial_metastases": false,
                  "kps": 100
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age": 50,
                  "brain_metastasis_count": 1,
                  "citation": {
                    "authors": "Sperduto PW, Fang P, Li J, et al.",
                    "doi": "10.1016/j.ctro.2019.06.007",
                    "id": "sperduto-2019-gi-gpa",
                    "pmid": "31341974",
                    "source": "Clin Transl Radiat Oncol. 2019;18:39-45",
                    "title": "Estimating survival in patients with gastrointestinal cancers and brain metastases: An update of the graded prognostic assessment for gastrointestinal cancers (GI-GPA)"
                  },
                  "components": [
                    {
                      "factor": "kps",
                      "points": 2,
                      "present": true,
                      "value": 100
                    },
                    {
                      "factor": "age",
                      "points": 0.5,
                      "present": true,
                      "value": 50
                    },
                    {
                      "factor": "extracranial_metastases",
                      "points": 0.5,
                      "present": true,
                      "value": false
                    },
                    {
                      "factor": "brain_metastasis_count",
                      "points": 1,
                      "present": true,
                      "value": 1
                    }
                  ],
                  "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.",
                  "extracranial_metastases": false,
                  "formula": "gi_gpa",
                  "formula_expression": "GI-GPA = kps_pts + age_pts + extracranial_pts + brain_met_pts; KPS <80 (10-70) 0, 80 1.0, 90-100 2.0; age >=60 0, <60 0.5; extracranial mets present 0, absent 0.5; brain mets >3 0, 2-3 0.5, 1 1.0; groups 0-1.0 / 1.5-2.0 / 2.5-3.0 / 3.5-4.0; max 4.0 (Sperduto 2019 Table 4; median survival from abstract/KM 3, 7, 11, 17 months)",
                  "gpa_group": "3.5-4.0",
                  "kps": 100,
                  "max_score": 4,
                  "median_survival_months": 17,
                  "score": 4
                },
                {
                  "age": 50,
                  "brain_metastasis_count": 1,
                  "citation": {
                    "authors": "Sperduto PW, Fang P, Li J, et al.",
                    "doi": "10.1016/j.ctro.2019.06.007",
                    "id": "sperduto-2019-gi-gpa",
                    "pmid": "31341974",
                    "source": "Clin Transl Radiat Oncol. 2019;18:39-45",
                    "title": "Estimating survival in patients with gastrointestinal cancers and brain metastases: An update of the graded prognostic assessment for gastrointestinal cancers (GI-GPA)"
                  },
                  "components": [
                    {
                      "factor": "kps",
                      "points": 2,
                      "present": true,
                      "value": 100
                    },
                    {
                      "factor": "age",
                      "points": 0.5,
                      "present": true,
                      "value": 50
                    },
                    {
                      "factor": "extracranial_metastases",
                      "points": 0.5,
                      "present": true,
                      "value": false
                    },
                    {
                      "factor": "brain_metastasis_count",
                      "points": 1,
                      "present": true,
                      "value": 1
                    }
                  ],
                  "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.",
                  "extracranial_metastases": false,
                  "formula": "gi_gpa",
                  "formula_expression": "GI-GPA = kps_pts + age_pts + extracranial_pts + brain_met_pts; KPS <80 (10-70) 0, 80 1.0, 90-100 2.0; age >=60 0, <60 0.5; extracranial mets present 0, absent 0.5; brain mets >3 0, 2-3 0.5, 1 1.0; groups 0-1.0 / 1.5-2.0 / 2.5-3.0 / 3.5-4.0; max 4.0 (Sperduto 2019 Table 4; median survival from abstract/KM 3, 7, 11, 17 months)",
                  "gpa_group": "3.5-4.0",
                  "kps": 100,
                  "max_score": 4,
                  "median_survival_months": 17,
                  "score": 4
                }
              ],
              "path": "/api/calc/gi_gpa"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "age": {
                            "description": "Age in years (18-120). Sperduto 2019 Table 4: >=60 scores 0; <60 scores 0.5.",
                            "type": "integer"
                          },
                          "brain_metastasis_count": {
                            "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.",
                            "type": "integer"
                          },
                          "extracranial_metastases": {
                            "description": "Extracranial metastases (ECM). true (present) scores 0; false (absent) scores 0.5 (Sperduto 2019 Table 4). magent does not stage extracranial disease.",
                            "type": "boolean"
                          },
                          "kps": {
                            "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.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "kps",
                          "age",
                          "extracranial_metastases",
                          "brain_metastasis_count"
                        ],
                        "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"
  }
}