# PIRO Score for ICU Community-Acquired Pneumonia (Rello 2009)

> PIRO Score for ICU Community-Acquired Pneumonia (Rello 2009) 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 Rello 2009 PIRO score (0–8) for ICU community-acquired pneumonia severity from caller-supplied clinical features, returning a numeric score and risk band.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/piro_cap
- 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/piro-score-for-icu-community-acquired-pneumonia-rello-2009-377f938a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BY9dcnX8WTXQnFuU-tsO9

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 piro-score-for-icu-community-acquired-pneumonia-rello-2009-377f938a
```

Example prompt: Calculate the Rello 2009 PIRO score for a 74-year-old ICU patient with community-acquired pneumonia who has COPD, no immunocompromise, multilobar opacities on chest X-ray, no shock, severe hypoxemia, no acute renal failure, no bacteremia, and no ARDS.

## When to prefer this

Use this endpoint when you need a validated, reproducible implementation of the Rello 2009 PIRO score specifically for ICU community-acquired pneumonia, and you have already determined all eight clinical features. Prefer this over CURB-65, PSI, or APACHE II calculators when the clinical context is ICU-admitted CAP and PIRO stratification is required. Do not use if you need chest radiograph interpretation, culture analysis, or clinical diagnosis — callers must supply all features pre-assessed.

## Known failure modes

- Missing required query parameters (age, copd, immunocompromise, multilobar_opacities, shock, severe_hypoxemia, acute_renal_failure, bacteremia, ards) returns an error
- Age outside valid range (18–120) returns a validation error
- Non-boolean values for binary fields return a schema validation error
- Payment not provided or insufficient USDC results in HTTP 402 response

## How this service works

Rello 2009 PIRO score for ICU community-acquired pneumonia: comorbidities (COPD or immunocompromise count as one feature) + age >70 + multilobar opacities + shock + severe hypoxemia + acute renal failure + bacteremia + ARDS. Each 1; max 8. Bands low 0-2, mild 3, high 4, very high 5-8. Not CURB-65, PSI, or APACHE II. magent does not interpret a chest radiograph. Not a diagnosis.

## Output

Returns a numeric PIRO score between 0 and 8 and a corresponding risk band label: low (0–2), mild (3), high (4), or very high (5–8), computed strictly from the eight caller-supplied binary clinical features and patient age.

## 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",
      "copd",
      "immunocompromise",
      "multilobar_opacities",
      "shock",
      "severe_hypoxemia",
      "acute_renal_failure",
      "bacteremia",
      "ards"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (integer 18-120). Age >70 scores 1 (Rello 2009). Age 70 does not score. magent does not compute age from a date of birth."
      },
      "ards": {
       "type": "boolean",
       "description": "Acute respiratory distress syndrome as assigned by the caller (Rello 2009). true or false. 1 point if true. magent does not diagnose ARDS."
      },
      "copd": {
       "type": "boolean",
       "description": "Chronic obstructive pulmonary disease as assigned by the caller (Rello 2009 comorbidity feature with immunocompromise). true or false. COPD or immunocompromise scores 1 together, not 1 each. magent does not diagnose COPD."
      },
      "shock": {
       "type": "boolean",
       "description": "Shock as assigned by the caller (Rello 2009). true or false. 1 point if true. magent does not measure blood pressure or diagnose shock."
      },
      "bacteremia": {
       "type": "boolean",
       "description": "Bacteremia as assigned by the caller (Rello 2009). true or false. 1 point if true. magent does not interpret cultures."
      },
      "immunocompromise": {
       "type": "boolean",
       "description": "Immunocompromise as assigned by the caller (Rello 2009 comorbidity feature with COPD). true or false. COPD or immunocompromise scores 1 together, not 1 each. magent does not assign immune status."
      },
      "severe_hypoxemia": {
       "type": "boolean",
       "description": "Severe hypoxemia as assigned by the caller (Rello 2009). true or false. 1 point if true. magent does not measure PaO2 or FiO2."
      },
      "acute_renal_failure": {
       "type": "boolean",
       "description": "Ac
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/piro-score-for-icu-community-acquired-pneumonia-rello-2009-377f938a/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)
