# Glasgow-Imrie Pancreatitis Severity Score (Blamey 1984)

> Glasgow-Imrie Pancreatitis Severity Score (Blamey 1984) 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 Glasgow-Imrie (Blamey 1984) eight-factor acute pancreatitis severity score and predicts severe pancreatitis if score ≥3

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/glasgow_imrie
- 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/glasgow-imrie-pancreatitis-severity-score-blamey-1984-24af3e86
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6sL4yE-4p_zqX7iFY_Oo5

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-imrie-pancreatitis-severity-score-blamey-1984-24af3e86
```

Example prompt: Score this pancreatitis case using the Glasgow-Imrie (Blamey 1984) eight-factor criteria: the patient is over 55, WBC is elevated above 15, glucose is above 10 mmol/L, urea is above 16, PaO2 is normal, calcium is low (below 2.0), albumin is below 32 g/L, and LDH is above 600 — tell me the total score and whether it predicts severe pancreatitis.

## When to prefer this

Use this endpoint when you need to compute the original Blamey 1984 Glasgow-Imrie pancreatitis severity score specifically — not Ranson criteria (which includes transaminases and has 48-hour labs) and not APACHE-II. This is ideal for rapid ED or ICU severity stratification where all eight lab thresholds have already been evaluated and converted to the paper's specified units (mmol/L, g/L, U/L).

## Known failure modes

- Missing any of the eight required boolean flags returns a validation error
- Passing numeric lab values instead of boolean flags causes schema rejection
- Unit mismatch (e.g. glucose in mg/dL instead of mmol/L) yields silent scoring error since the API accepts caller-assigned booleans without conversion
- Non-GET HTTP methods are rejected

## How this service works

Blamey 1984 Glasgow-Imrie eight-factor pancreatitis score: age >55, WBC >15 ×10^9/L, glucose >10 mmol/L, urea >16 mmol/L, PaO2 <60 mm Hg, calcium <2.0 mmol/L, albumin <32 g/L, LDH >600 U/L; 1 point each, max 8. Severe predicted if score ≥3. Caller-assigned flags; magent does not convert units. Not a diagnosis. Not Ranson. Transaminases omitted as in the paper.

## Output

Returns the numeric Glasgow-Imrie score (0–8, one point per criterion met) and a severity classification indicating whether the score predicts severe acute pancreatitis (score ≥3). Does not perform unit conversions; caller must pre-convert all values to the specified units and supply boolean flags.

## 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": [
      "age_gt_55",
      "wbc_gt_15",
      "glucose_gt_10",
      "urea_gt_16",
      "pao2_lt_60",
      "calcium_lt_2",
      "albumin_lt_32",
      "ldh_gt_600"
     ],
     "properties": {
      "age_gt_55": {
       "type": "boolean",
       "description": "Age >55 years (Blamey 1984). true or false."
      },
      "wbc_gt_15": {
       "type": "boolean",
       "description": "WBC >15 ×10^9/L. true or false."
      },
      "ldh_gt_600": {
       "type": "boolean",
       "description": "LDH >600 U/L. true or false."
      },
      "pao2_lt_60": {
       "type": "boolean",
       "description": "Arterial PaO2 <60 mm Hg. true or false."
      },
      "urea_gt_16": {
       "type": "boolean",
       "description": "Urea >16 mmol/L. true or false."
      },
      "calcium_lt_2": {
       "type": "boolean",
       "description": "Calcium <2.0 mmol/L. true or false."
      },
      "albumin_lt_32": {
       "type": "boolean",
       "description": "Albumin <32 g/L. true or false."
      },
      "glucose_gt_10": {
       "type": "boolean",
       "description": "Glucose >10 mmol/L. true or false."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/glasgow_imrie",
  "count": 2,
  "items": [
   {
    "score": 0,
    "formula": "glasgow_imrie",
    "citation": {
     "id": "blamey-1984",
     "doi": "10.1136/gut.25.12.1340",
     "pmid": "6510766",
     "title": "Prognostic factors in acute pancreatitis",
     "source": "Gut. 1984;25(12):1340-1346",
     "authors": "Blamey SL, Imrie CW, O'Neill J, Gilmour WH, Carter DC"
    },
    "max_score": 8,
    "components": [
     {
      "factor": "age_gt_55",
      "points": 0,
      "present": false
     },
     {
      "factor": "wbc_gt_15",
      "points": 0,
      "present": false
     },
     {
      "factor": "glucose_gt_10",
      "points": 0,
      "present": false
     },
     {
      "factor": "urea_gt_16",
      "points": 0,
      "present": false
     },
     {
      "factor": "pao2_lt_60",
      "points": 0,
      "present": false
     },
     {
      "factor": "calcium_lt_2",
      "points": 0,
      "present": false
     },
     {
      "factor": "albumin_lt_32",
      "points": 0,
      "present": false
     },
     {
      "factor": "ldh_gt_600",
      "points": 0,
      "present": false
     }
    ],
    "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.",
    "severe_predicted": false,
    "formula_expression": "Glasgow-Imrie = age_gt_55 + wbc_gt_15 + glucose_gt_10 + urea_gt_16 + pao2_lt_60 + calcium_lt_2 + albumin_lt_32 + ldh_gt_600; each 1 if present; max 8; severe_predicted if score >= 3"
   },
   {
    "score": 0,
    "formula": "glasgow_imrie",
    "citation": {
     "id": "blamey-1984",
     "doi": "10.1136/gut.25.12.1340",
     "pmid": "6510766",
     "title": "Prognostic factors in acute pancreatitis",
     "source": "Gut. 1984;25(12):1340-1346",
     "authors": "Blamey SL, Imrie CW, O'Neill J, Gilmour WH, Carter DC"
    },
    "max_score": 8,
    "components": [
     {
      "factor": "age_gt_55",
      "points": 0,
      "present": false
     },
     {
      "factor": "wbc_gt_15",
      "points": 0,
      "present": false
     },
     {
      "factor": "glucose_gt_10",
      "points": 0,
      "present": false
     },
     {
      "factor": "urea_gt_16",
      "points": 0,
      "present": false
     },
     {
      "factor": "pao2_lt_60",
      "points": 0,
      "present": false
     },
     {
      "factor": "calcium_lt_2",
     
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glasgow-imrie-pancreatitis-severity-score-blamey-1984-24af3e86/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)
