{
  "x402Version": 2,
  "id": 39507,
  "slug": "39507",
  "resource": "https://api.magentlab.com/api/calc/gps",
  "description": "Forrest 2003 original Glasgow Prognostic Score (GPS) from CRP in mg/L and albumin. Elevated CRP is >10 mg/L; hypoalbuminaemia is albumin <35 g/L. Assign 1 for CRP >10 and 1 for albumin <35, then sum: GPS 0 when CRP ≤10 and albumin ≥35; GPS 1 when CRP ≤10 and albumin <35 (isolated hypoalbuminaemia) or CRP >10 and albumin ≥35; GPS 2 when CRP >10 and albumin <35. Not mGPS, not hs-mGPS, not a cancer diagnosis or treatment order. magent does not assay CRP or albumin.",
  "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": [
              {
                "albumin_g_dl": 4,
                "albumin_g_l": 40,
                "crp_mg_l": 5
              },
              {
                "albumin_g_dl": 4,
                "albumin_g_l": 40,
                "crp_mg_l": 5
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "albumin_g_l": 40,
                "citation": {
                  "authors": "Forrest LM, McMillan DC, McArdle CS, Angerson WJ, Dunlop DJ",
                  "doi": "10.1038/sj.bjc.6601242",
                  "id": "forrest-2003",
                  "pmid": "12966420",
                  "source": "Br J Cancer. 2003;89(6):1028-1030",
                  "title": "Evaluation of cumulative prognostic scores based on the systemic inflammatory response in patients with inoperable non-small-cell lung cancer"
                },
                "crp_mg_l": 5,
                "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": "gps",
                "formula_expression": "GPS 0: CRP ≤ 10 mg/L AND albumin ≥ 35 g/L; GPS 1: CRP ≤ 10 mg/L AND albumin < 35 g/L (isolated hypoalbuminaemia) OR CRP > 10 mg/L AND albumin ≥ 35 g/L; GPS 2: CRP > 10 mg/L AND albumin < 35 g/L (Forrest 2003 original GPS)",
                "gps": 0
              },
              {
                "albumin_g_l": 40,
                "citation": {
                  "authors": "Forrest LM, McMillan DC, McArdle CS, Angerson WJ, Dunlop DJ",
                  "doi": "10.1038/sj.bjc.6601242",
                  "id": "forrest-2003",
                  "pmid": "12966420",
                  "source": "Br J Cancer. 2003;89(6):1028-1030",
                  "title": "Evaluation of cumulative prognostic scores based on the systemic inflammatory response in patients with inoperable non-small-cell lung cancer"
                },
                "crp_mg_l": 5,
                "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": "gps",
                "formula_expression": "GPS 0: CRP ≤ 10 mg/L AND albumin ≥ 35 g/L; GPS 1: CRP ≤ 10 mg/L AND albumin < 35 g/L (isolated hypoalbuminaemia) OR CRP > 10 mg/L AND albumin ≥ 35 g/L; GPS 2: CRP > 10 mg/L AND albumin < 35 g/L (Forrest 2003 original GPS)",
                "gps": 0
              }
            ],
            "path": "/api/calc/gps"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "albumin_g_dl": {
                          "description": "Serum albumin in g/dL (1-6). Converted as g/L = g/dL × 10. Provide this or albumin_g_l, not both.",
                          "type": "number"
                        },
                        "albumin_g_l": {
                          "description": "Serum albumin in g/L (10-60). Provide this or albumin_g_dl, not both. Forrest 2003 hypoalbuminaemia is <35 g/L (35 is not low). Isolated hypoalbuminaemia scores GPS 1. magent does not assay albumin.",
                          "type": "number"
                        },
                        "crp_mg_l": {
                          "description": "C-reactive protein in mg/L (0-500), not mg/dL. Forrest 2003 elevated CRP is >10 mg/L. CRP = 10 is not elevated. magent does not assay CRP.",
                          "type": "number"
                        }
                      },
                      "required": [
                        "crp_mg_l"
                      ],
                      "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": [
    "gps",
    "hematology",
    "crp",
    "albumin",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T15:00:07.794Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T15:00:07.648Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "albumin_g_dl": 4,
                  "albumin_g_l": 40,
                  "crp_mg_l": 5
                },
                {
                  "albumin_g_dl": 4,
                  "albumin_g_l": 40,
                  "crp_mg_l": 5
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "albumin_g_l": 40,
                  "citation": {
                    "authors": "Forrest LM, McMillan DC, McArdle CS, Angerson WJ, Dunlop DJ",
                    "doi": "10.1038/sj.bjc.6601242",
                    "id": "forrest-2003",
                    "pmid": "12966420",
                    "source": "Br J Cancer. 2003;89(6):1028-1030",
                    "title": "Evaluation of cumulative prognostic scores based on the systemic inflammatory response in patients with inoperable non-small-cell lung cancer"
                  },
                  "crp_mg_l": 5,
                  "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": "gps",
                  "formula_expression": "GPS 0: CRP ≤ 10 mg/L AND albumin ≥ 35 g/L; GPS 1: CRP ≤ 10 mg/L AND albumin < 35 g/L (isolated hypoalbuminaemia) OR CRP > 10 mg/L AND albumin ≥ 35 g/L; GPS 2: CRP > 10 mg/L AND albumin < 35 g/L (Forrest 2003 original GPS)",
                  "gps": 0
                },
                {
                  "albumin_g_l": 40,
                  "citation": {
                    "authors": "Forrest LM, McMillan DC, McArdle CS, Angerson WJ, Dunlop DJ",
                    "doi": "10.1038/sj.bjc.6601242",
                    "id": "forrest-2003",
                    "pmid": "12966420",
                    "source": "Br J Cancer. 2003;89(6):1028-1030",
                    "title": "Evaluation of cumulative prognostic scores based on the systemic inflammatory response in patients with inoperable non-small-cell lung cancer"
                  },
                  "crp_mg_l": 5,
                  "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": "gps",
                  "formula_expression": "GPS 0: CRP ≤ 10 mg/L AND albumin ≥ 35 g/L; GPS 1: CRP ≤ 10 mg/L AND albumin < 35 g/L (isolated hypoalbuminaemia) OR CRP > 10 mg/L AND albumin ≥ 35 g/L; GPS 2: CRP > 10 mg/L AND albumin < 35 g/L (Forrest 2003 original GPS)",
                  "gps": 0
                }
              ],
              "path": "/api/calc/gps"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "albumin_g_dl": {
                            "description": "Serum albumin in g/dL (1-6). Converted as g/L = g/dL × 10. Provide this or albumin_g_l, not both.",
                            "type": "number"
                          },
                          "albumin_g_l": {
                            "description": "Serum albumin in g/L (10-60). Provide this or albumin_g_dl, not both. Forrest 2003 hypoalbuminaemia is <35 g/L (35 is not low). Isolated hypoalbuminaemia scores GPS 1. magent does not assay albumin.",
                            "type": "number"
                          },
                          "crp_mg_l": {
                            "description": "C-reactive protein in mg/L (0-500), not mg/dL. Forrest 2003 elevated CRP is >10 mg/L. CRP = 10 is not elevated. magent does not assay CRP.",
                            "type": "number"
                          }
                        },
                        "required": [
                          "crp_mg_l"
                        ],
                        "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"
  }
}