# Miller 2013 ATLAS Score Calculator for Clostridioides difficile

> Miller 2013 ATLAS Score Calculator for Clostridioides difficile 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 ATLAS score (0–10) and predicted CDI cure percentage using Miller 2013 criteria based on age, systemic antibiotics, WBC, albumin, and creatinine.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/atlas
- 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/miller-2013-atlas-score-calculator-for-clostridioides-difficile-4a15fe0a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S2YGPPytN0d0tHDJoIjAR

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 miller-2013-atlas-score-calculator-for-clostridioides-difficile-4a15fe0a
```

Example prompt: Calculate the Miller 2013 ATLAS score for a 72-year-old CDI patient who is on systemic antibiotics, has a WBC of 18,000/µL, albumin of 30 g/L, and creatinine of 140 µmol/L.

## When to prefer this

Use this endpoint when you need a rapid, standardized ATLAS score for a patient with confirmed or suspected Clostridioides difficile infection to estimate likelihood of cure with CDI therapy; it is not a CDI diagnostic tool, stool culture, or antibiotic prescribing service.

## Known failure modes

- Missing required fields (age or systemic_antibiotics) returns a validation error
- Providing both wbc_ul and wbc_k_ul simultaneously causes an error
- Providing both albumin_g_l and albumin_g_dl simultaneously causes an error
- Providing both creatinine_umol_l and creatinine_mg_dl simultaneously causes an error
- Out-of-range values (e.g. age <18 or >120) return a validation error
- Payment failure or missing x402 payment header causes a 402 response

## How this service works

Miller 2013 ATLAS for Clostridioides difficile: age (<60 0, 60–79 1, ≥80 2), systemic antibiotics during CDI therapy (0 or 2), WBC (<16 0, 16–25 1, >25 ×10^9/L 2), albumin (>35 0, 26–35 1, ≤25 g/L 2), creatinine (≤120 0, 121–179 1, ≥180 µmol/L 2); max 10. Predicted cure percent = 100 − 5.08 × score (1 decimal). Not a CDI diagnosis, stool culture, or metronidazole/vancomycin/fidaxomicin order.

## Output

Returns the integer ATLAS total score (0–10) and the predicted cure percentage (to 1 decimal place, computed as 100 − 5.08 × score), derived from the five Miller 2013 ATLAS criteria.

## 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",
      "systemic_antibiotics"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). Miller 2013 Table 1: <60 scores 0; 60–79 inclusive scores 1; ≥80 scores 2."
      },
      "wbc_ul": {
       "type": "number",
       "description": "Total leukocyte count in cells/µL. Provide wbc_k_ul or wbc_ul, not both. Range 10-500000. Miller 2013: <16000 scores 0; 16000–25000 inclusive scores 1; >25000 scores 2."
      },
      "wbc_k_ul": {
       "type": "number",
       "description": "Total leukocyte count in 10^3/µL (same as ×10^9/L). Provide wbc_k_ul or wbc_ul, not both. Range 0.01-500. Miller 2013: <16 scores 0; 16–25 inclusive scores 1; >25 scores 2."
      },
      "albumin_g_l": {
       "type": "number",
       "description": "Serum albumin in g/L (10-60). Provide this or albumin_g_dl, not both. Miller 2013: >35 scores 0; 26–35 inclusive scores 1; ≤25 scores 2. magent does not assay albumin."
      },
      "albumin_g_dl": {
       "type": "number",
       "description": "Serum albumin in g/dL (1-6). Converted as g/L = g/dL × 10. Provide this or albumin_g_l, not both."
      },
      "creatinine_mg_dl": {
       "type": "number",
       "description": "Serum creatinine in mg/dL (0.1-20). Converted as µmol/L = mg/dL × 88.42. Provide this or creatinine_umol_l, not both."
      },
      "creatinine_umol_l": {
       "type": "number",
       "description": "Serum creatinine in µmol/L (9-1768). Provide this or creatinine_mg_dl, not both. Miller 2013: ≤120 scores 0; 121–179 inclusive scores 1; ≥180 scores 2. magent does not assay creatinine."
      },
      "systemic_antibiotics": {
       "type": "boolean",
       "description": "Systemic antibiotics on one or more days of CDI therapy (Miller 2013). true scores 2; false scores 0. There is no 1-point cell. magent does not review the medication list."
      }
     }
    }
   },

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/miller-2013-atlas-score-calculator-for-clostridioides-difficile-4a15fe0a/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)
