# Glasgow Prognostic Score (GPS) Calculator — Forrest 2003

> Glasgow Prognostic Score (GPS) Calculator — Forrest 2003 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-16).

Calculates the original Forrest 2003 Glasgow Prognostic Score (0–2) from serum CRP (mg/L) and albumin (g/L or g/dL)

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/gps
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glasgow-prognostic-score-gps-calculator-forrest-2003-1efc2a76
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8fxSZDZz4xoc3kvwyqmnb

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 glasgow-prognostic-score-gps-calculator-forrest-2003-1efc2a76
```

Example prompt: Calculate the original Forrest 2003 Glasgow Prognostic Score for a patient with a CRP of 18 mg/L and serum albumin of 28 g/L.

## When to prefer this

Use this endpoint when you need the original Forrest 2003 GPS (not mGPS or hs-mGPS) and have CRP in mg/L and albumin already measured from a lab. Prefer this over manual calculation to avoid unit-conversion errors (g/dL to g/L is handled automatically). Do not use this if you need mGPS, modified GPS, or if you still need to assay the labs — this endpoint only performs the scoring arithmetic.

## Known failure modes

- Missing crp_mg_l parameter — required field; request will fail
- CRP value out of range (must be 0–500 mg/L)
- Albumin value out of range (g/L must be 10–60; g/dL must be 1–6)
- Both albumin_g_l and albumin_g_dl provided simultaneously — only one is allowed
- CRP provided in mg/dL instead of mg/L — common unit error leading to incorrect scoring
- Payment not attached or insufficient — endpoint requires x402 payment of $0.005 USDC

## How this service works

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.

## Output

Returns a GPS integer (0, 1, or 2) reflecting systemic inflammation-nutrition status: 0 = CRP ≤10 and albumin ≥35 (normal); 1 = isolated hypoalbuminaemia (albumin <35 with CRP ≤10) or elevated CRP alone (CRP >10 with albumin ≥35); 2 = both elevated CRP (>10 mg/L) and hypoalbuminaemia (albumin <35 g/L).

## 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": [
      "crp_mg_l"
     ],
     "properties": {
      "crp_mg_l": {
       "type": "number",
       "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."
      },
      "albumin_g_l": {
       "type": "number",
       "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."
      },
      "albumin_g_dl": {
       "type": "number",
       "description": "Serum albumin in g/dL (1-6). Converted as g/L = g/dL × 10. Provide this or albumin_g_l, not both."
      }
     }
    }
   },
   "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/glasgow-prognostic-score-gps-calculator-forrest-2003-1efc2a76/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)
