# Magent DLI Whole-Blood Volume Calculator (Shi 2020)

> Magent DLI Whole-Blood Volume Calculator (Shi 2020) 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 volume of donor whole blood to process by apheresis to achieve a target CD3+ cell dose for a donor lymphocyte infusion (DLI), using the Shi 2020 formula

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/dli_volume
- 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-dli-whole-blood-volume-calculator-shi-2020-e4ee3302
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qw7n43E2P4s_Mw-vA-iUv

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-dli-whole-blood-volume-calculator-shi-2020-e4ee3302
```

Example prompt: Using the Shi 2020 DLI formula, calculate how many liters of whole blood to process for a recipient who weighs 70 kg, targeting a CD3 dose of 2e8 cells/kg for 1 infusion, given the donor's ALC is 1800 cells/µL and our facility's collection efficiency is 0.57.

## When to prefer this

Use this endpoint when you need a fast, deterministic, citation-backed calculation of whole-blood apheresis volume for CD3+ DLI planning per the Shi 2020 haploidentical protocol. Prefer it over manual spreadsheets when integrating into clinical decision-support agents or transplant workflow automation. Note it does not compute CD34 HPC collection volumes (a different algorithm) and does not control or interface with any apheresis device.

## Known failure modes

- Missing required parameters (recipient_weight_kg, cd3_target_per_kg, donor_alc_per_ul, collection_efficiency) returns an error
- collection_efficiency of 0 causes division by zero — value must be in (0, 1]
- Values outside clamped ranges (e.g. donor_alc_per_ul outside 100–20000) may be clamped or rejected
- num_infusions outside 1–12 integer range may be rejected
- Payment failure via x402 protocol returns 402 status

## How this service works

Shi 2020 donor whole-blood liters to process for a CD3+ DLI target: (recipient_weight_kg × cd3_target_per_kg × num_infusions) / (0.6 × donor_alc_per_ul × collection_efficiency × 1e6). Estimates CD3 as 60% of donor ALC. Caller assigns collection_efficiency in (0,1]; the paper used first-quartile 0.57. Deterministic published arithmetic with citation. Not an apheresis order; magent does not run a device or the paper's CD34 HPC algorithm.

## Output

Returns the estimated volume of whole blood (in liters) the apheresis machine must process to yield the desired CD3+ cell count, computed as (recipient_weight_kg × cd3_target_per_kg × num_infusions) / (0.6 × donor_alc_per_ul × collection_efficiency × 1e6). CD3+ count is estimated as 60% of the donor ALC per the Shi 2020 paper. Input values are clamped to clinically valid ranges.

## 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": [
      "recipient_weight_kg",
      "cd3_target_per_kg",
      "donor_alc_per_ul",
      "collection_efficiency"
     ],
     "properties": {
      "num_infusions": {
       "type": "integer",
       "description": "Optional integer infusions (1-12, default 1) multiplying the per-kg CD3 target when the planned dose is the total across infusions. Shi 2020 collected one 2e8/kg DLI product."
      },
      "donor_alc_per_ul": {
       "type": "number",
       "description": "Donor absolute lymphocyte count on the collection day, cells/µL (100-20000, magent clamp). Shi 2020 estimates CD3+ as 60% of this ALC rather than a measured CD3 count. magent does not assay ALC."
      },
      "cd3_target_per_kg": {
       "type": "number",
       "description": "Planned CD3+ cells per recipient kilogram (1e6-1e9, magent clamp). Shi 2020's haploidentical protocol used 2e8/kg; a first DLI is often 1e7/kg. Not a CD34 HPC dose."
      },
      "recipient_weight_kg": {
       "type": "number",
       "description": "Recipient weight in kilograms (1-500, magent clamp). Shi 2020 doses CD3 per recipient kg. magent does not weigh the recipient."
      },
      "collection_efficiency": {
       "type": "number",
       "description": "Caller-assigned facility lymphocyte CE2 as a proportion in (0, 1]. Shi 2020 used a conservative first-quartile 0.57; magent does not default to 0.57 or invent a CE."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-dli-whole-blood-volume-calculator-shi-2020-e4ee3302/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)
