# magent CURB-65 Pneumonia Severity Score

> magent CURB-65 Pneumonia Severity Score 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).

Calculates the CURB-65 pneumonia severity score from age and four discrete clinical flags, returning a deterministic risk-stratified score with citation.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/curb65
- 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/magent-curb-65-pneumonia-severity-score-b75e83ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mdldy4BaIzgojuiQYUVep

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 magent-curb-65-pneumonia-severity-score-b75e83ba
```

Example prompt: Calculate the CURB-65 pneumonia severity score for a 74-year-old patient who has new confusion, urea above 7 mmol/L, a respiratory rate of 32, and blood pressure of 88/58 mmHg.

## When to prefer this

Use this endpoint when you need a fast, deterministic, evidence-based CURB-65 pneumonia severity score from pre-evaluated clinical flags. Ideal when the calling system has already determined whether urea exceeds 7 mmol/L and other cutoffs, since this endpoint accepts discrete boolean flags rather than raw lab values. Prefer this over manual calculation to ensure consistent citation-backed scoring in clinical decision support pipelines.

## Known failure modes

- Missing required query parameters (age, confusion, urea_high, respiratory_rate_ge_30, low_blood_pressure) returns a validation error
- Age outside valid range 18–120 may return an error or unexpected result
- Boolean flags passed as strings instead of booleans may cause parsing errors
- Network or payment authorization failure returns a 402 or connectivity error

## How this service works

CURB-65 pneumonia severity from age and discrete clinical flags. Deterministic published score with citation; not a treatment recommendation.

## Output

Returns a numeric CURB-65 score (0–5) computed from the five input criteria (confusion, urea >7 mmol/L, respiratory rate ≥30, low blood pressure, age ≥65), along with a severity classification and a citation to the published scoring system. The result is deterministic and does not constitute a treatment recommendation.

## 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",
      "confusion",
      "urea_high",
      "respiratory_rate_ge_30",
      "low_blood_pressure"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). Age ≥65 scores 1."
      },
      "confusion": {
       "type": "boolean",
       "description": "New confusion (C). true or false."
      },
      "urea_high": {
       "type": "boolean",
       "description": "Urea >7 mmol/L (U). Pass the published cutoff as a flag; magent does not convert BUN."
      },
      "low_blood_pressure": {
       "type": "boolean",
       "description": "SBP <90 mmHg or DBP ≤60 mmHg (B). true or false."
      },
      "respiratory_rate_ge_30": {
       "type": "boolean",
       "description": "Respiratory rate ≥30/min (R). 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/curb65",
  "count": 2,
  "items": [
   {
    "score": 3,
    "formula": "curb65",
    "citation": {
     "id": "lim-2003",
     "doi": "10.1136/thorax.58.5.377",
     "title": "Defining community acquired pneumonia severity on presentation to hospital: an international derivation and validation study",
     "source": "Thorax. 2003;58(5):377-382",
     "authors": "Lim WS, van der Eerden MM, Laing R, et al."
    },
    "age_years": 70,
    "max_score": 5,
    "components": [
     {
      "factor": "confusion",
      "points": 1,
      "present": true
     },
     {
      "factor": "urea_high",
      "points": 1,
      "present": true
     },
     {
      "factor": "respiratory_rate_ge_30",
      "points": 0,
      "present": false
     },
     {
      "factor": "low_blood_pressure",
      "points": 0,
      "present": false
     },
     {
      "value": 70,
      "factor": "age_ge_65",
      "points": 1,
      "present": true
     }
    ],
    "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_expression": "CURB-65 = confusion + urea_high + respiratory_rate_ge_30 + low_blood_pressure + age_ge_65; max 5"
   },
   {
    "score": 3,
    "formula": "curb65",
    "citation": {
     "id": "lim-2003",
     "doi": "10.1136/thorax.58.5.377",
     "title": "Defining community acquired pneumonia severity on presentation to hospital: an international derivation and validation study",
     "source": "Thorax. 2003;58(5):377-382",
     "authors": "Lim WS, van der Eerden MM, Laing R, et al."
    },
    "age_years": 70,
    "max_score": 5,
    "components": [
     {
      "factor": "confusion",
      "points": 1,
      "present": true
     },
     {
      "factor": "urea_high",
      "points": 1,
      "present": true
     },
     {
      "factor": "respiratory_rate_ge_30",
      "points": 0,
      "present": false
     },
     {
      "factor": "low_blood_pressure",
      "points": 0,
      "present": false
     },
     {
      "value": 70,
      "factor": "age_ge_65",
      "points": 1,
      "present": true
     }
    ],
    "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_expression": "CURB-65 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-curb-65-pneumonia-severity-score-b75e83ba/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)
