# magent SCAP Severity Classifier (España 2006)

> magent SCAP Severity Classifier (España 2006) 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-14).

Computes the España 2006 SCAP (Severe Community-Acquired Pneumonia) score from eight caller-assigned clinical flags and returns a severity classification and total score.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/scap
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-scap-severity-classifier-espa-a-2006-51608e69
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nDxOHovN37zoX4uIBZaIf

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-scap-severity-classifier-espa-a-2006-51608e69
```

Example prompt: Score this CAP patient using the España 2006 SCAP criteria: arterial pH is not below 7.30, SBP is not below 90, respiratory rate is above 30, mental status is altered, BUN is above 30 mg/dL, no hypoxemia, age is 72 (not ≥80), and imaging shows multilobar involvement — is this severe?

## When to prefer this

Choose this endpoint when you need to apply the España 2006 SCAP criteria specifically — particularly when you want a score distinct from CURB-65 or PSI/PORT, when your clinical context involves two-tier major/minor criteria weighting, or when downstream documentation requires España 2006 compliance. Not suitable as a substitute for CURB-65 or PSI, and not a replacement for physician clinical judgment or an ICU admission order.

## Known failure modes

- Missing required query parameters — all eight boolean flags are required; omitting any returns an error
- Invalid parameter types — non-boolean values for any flag cause a validation error
- Network or service unavailability returns an HTTP 5xx error
- Payment failure or missing x402 payment header may block the request

## How this service works

España 2006 SCAP. Eight caller-assigned flags: two major (arterial pH <7.30, SBP <90 mm Hg) and six minor (RR >30, altered mental status, BUN >30 mg/dL, hypoxemia as PaO2 <54 mm Hg or PaO2/FiO2 <250, age ≥80, multilobar or bilateral). Severe if 1 major or ≥2 minor. One point per true predictor (max 8). Not a diagnosis, not an ICU-admission order, not CURB-65, not PSI/PORT, not SMART-COP.

## Output

Returns a SCAP total score (integer 0–8, one point per true flag), a severity classification indicating whether the patient meets España 2006 severe CAP criteria (1 major criterion or ≥2 minor criteria), and the breakdown of major vs minor criteria that were flagged true.

## 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": [
      "ph_lt_7_30",
      "sbp_lt_90",
      "respiratory_rate_gt_30",
      "altered_mental_status",
      "bun_gt_30_mg_dl",
      "hypoxemia",
      "age_ge_80",
      "multilobar_or_bilateral"
     ],
     "properties": {
      "age_ge_80": {
       "type": "boolean",
       "description": "Age ≥80 years (España 2006 minor). true or false as assigned by the caller. magent does not compute age."
      },
      "hypoxemia": {
       "type": "boolean",
       "description": "Hypoxemia as PaO2 <54 mm Hg or PaO2/FiO2 <250 (España 2006 minor), as assigned by the caller. true or false. magent does not measure PaO2 or FiO2."
      },
      "sbp_lt_90": {
       "type": "boolean",
       "description": "Systolic blood pressure <90 mm Hg (España 2006 major). true or false as assigned by the caller. magent does not measure blood pressure."
      },
      "ph_lt_7_30": {
       "type": "boolean",
       "description": "Arterial pH <7.30 (España 2006 major). true or false as assigned by the caller. magent does not measure pH."
      },
      "bun_gt_30_mg_dl": {
       "type": "boolean",
       "description": "Blood urea nitrogen >30 mg/dL (España 2006 minor). true or false as assigned by the caller. magent does not convert urea or measure BUN."
      },
      "altered_mental_status": {
       "type": "boolean",
       "description": "Altered mental status (España 2006 minor). true or false as assigned by the caller. magent does not assess mental status."
      },
      "respiratory_rate_gt_30": {
       "type": "boolean",
       "description": "Respiratory rate >30 breaths/min (España 2006 minor; strict greater-than, not ≥30). true or false as assigned by the caller. magent does not measure respiratory rate."
      },
      "multilobar_or_bilateral": {
       "type": "boolean",
       "description": "Multilobar or bilateral lung involvement (España 2006 minor). true or false as assigned by the caller.
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-scap-severity-classifier-espa-a-2006-51608e69/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)
