# DRIP Score Calculator (Webb 2016)

> DRIP Score Calculator (Webb 2016) 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).

Computes the Webb 2016 Drug Resistance in Pneumonia (DRIP) score from ten caller-assigned boolean flags, returning a numeric score and high-risk classification.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/drip
- 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/drip-score-calculator-webb-2016-b33d9533
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FW6WNJMhi5MhSpcMkHRyN

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 drip-score-calculator-webb-2016-b33d9533
```

Example prompt: Score this pneumonia patient using the Webb 2016 DRIP criteria: they received antibiotics in the past 60 days (true), are living in a skilled nursing facility (true), are on tube feeding (true), have no prior drug-resistant pneumonia (false), were hospitalized 45 days ago (true), have no chronic pulmonary disease (false), have poor functional status (true), are on a proton pump inhibitor (true), have no wound care (false), and no MRSA colonization (false).

## When to prefer this

Use this endpoint when you need a deterministic, published Webb 2016 DRIP score for pneumonia drug-resistance risk stratification and all ten boolean flags have already been assigned by the caller. Prefer this over manual calculation to guarantee reproducibility and citation-aligned scoring. Do not use this to classify facility type, compute Karnofsky scores, issue antibiotic orders, or score HCAP — those are out of scope.

## Known failure modes

- Missing required boolean query parameters returns a 400 validation error
- Non-boolean values for flag fields cause schema validation failure
- Score computed correctly but caller mis-assigns flags (e.g. assisted living coded as long_term_care) — garbage-in-garbage-out, no server-side facility classification
- Payment failure or missing x402 header returns 402 Payment Required

## How this service works

Webb 2016 DRIP (drug resistance in pneumonia): ten caller-assigned flags, four major at 2 points and six minor at 1, max 14. high_risk if score >= 4. Deterministic published score with citation; not a medical device, not an antibiotic order, and not HCAP. magent does not classify the facility or compute Karnofsky.

## Output

Returns the computed DRIP score (0–14 integer), a boolean high_risk flag (true if score >= 4), and a breakdown of which flags contributed points, following the Webb 2016 published criteria with four major factors worth 2 points each and six minor factors worth 1 point each.

## 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": [
      "antibiotics_60d",
      "long_term_care",
      "tube_feeding",
      "prior_drp_1yr",
      "hospitalization_60d",
      "chronic_pulmonary_disease",
      "poor_functional_status",
      "gastric_acid_suppression",
      "wound_care",
      "mrsa_colonization_1yr"
     ],
     "properties": {
      "wound_care": {
       "type": "boolean",
       "description": "Wound care (Webb 2016 minor, 1 point). true or false as assigned by the caller."
      },
      "tube_feeding": {
       "type": "boolean",
       "description": "Tube feeding (Webb 2016 major, 2 points). true or false as assigned by the caller."
      },
      "prior_drp_1yr": {
       "type": "boolean",
       "description": "Prior drug-resistant pneumonia within 1 year (Webb 2016 major, 2 points). true or false as assigned by the caller."
      },
      "long_term_care": {
       "type": "boolean",
       "description": "Residence in long-term acute care, a skilled nursing facility, or inpatient rehabilitation (Webb 2016 major, 2 points). Not assisted living or a group home. The caller assigns the flag; magent does not classify the facility. true or false."
      },
      "antibiotics_60d": {
       "type": "boolean",
       "description": "Antibiotic use within 60 days (Webb 2016 major, 2 points). true or false as assigned by the caller."
      },
      "hospitalization_60d": {
       "type": "boolean",
       "description": "Hospitalization within 60 days (Webb 2016 minor, 1 point). true or false as assigned by the caller."
      },
      "mrsa_colonization_1yr": {
       "type": "boolean",
       "description": "MRSA colonization within 1 year (Webb 2016 minor, 1 point). true or false as assigned by the caller."
      },
      "poor_functional_status": {
       "type": "boolean",
       "description": "Poor functional status as in Webb 2016 (Karnofsky <70 or non-ambulatory). Caller-assigned boolean; magent does not compu
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/drip-score-calculator-webb-2016-b33d9533/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)
