# Magent ANC Calculator

> Magent ANC Calculator 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).

Calculates absolute neutrophil count (ANC) from WBC count and neutrophil/band percentages using the Bodey 1966 granulocyte bands method

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/anc
- 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-anc-calculator-974fccbb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4A8LUZJPi3ezozzGjiEe1

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-anc-calculator-974fccbb
```

Example prompt: Calculate the ANC for a patient with a WBC of 4.2 thousand per µL, 55% segmented neutrophils, and 8% bands.

## When to prefer this

Use this endpoint when you need a deterministic, citation-backed ANC calculation from CBC differential components. Ideal for clinical decision support, chemotherapy monitoring, neutropenia screening, or any workflow requiring reproducible arithmetic per the Bodey 1966 granulocyte classification. Prefer over general-purpose LLM math for auditable, published-formula computations.

## Known failure modes

- Missing required neutrophil_percent parameter returns validation error
- WBC value outside range 10–500,000 cells/µL (or 0.01–500 k/µL) returns range error
- segs + bands exceeding 100% returns invalid input error
- Neither wbc_ul nor wbc_k_ul provided returns missing parameter error
- Non-numeric input values return schema validation error

## How this service works

Absolute neutrophil count from WBC and neutrophil plus band percents. Bodey 1966 granulocyte bands. Deterministic published arithmetic with citation; not a diagnosis.

## Output

Returns the calculated absolute neutrophil count (ANC) in cells/µL, derived from (neutrophil_percent + band_percent) × WBC count / 100, using the Bodey 1966 granulocyte band classification. Includes the numeric ANC result and relevant interpretive thresholds per citation; not a clinical diagnosis.

## 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": [
      "neutrophil_percent"
     ],
     "properties": {
      "wbc_ul": {
       "type": "number",
       "description": "WBC in cells/µL (same as cells/mm^3). Provide wbc_k_ul or wbc_ul. Range 10-500000."
      },
      "wbc_k_ul": {
       "type": "number",
       "description": "WBC in 10^3/µL (same as 10^9/L). Provide wbc_k_ul or wbc_ul. Range 0.01-500."
      },
      "band_percent": {
       "type": "number",
       "description": "Band neutrophils as a percent of WBC (0-100). Omitted treats bands as 0. segs+bands must be ≤100."
      },
      "neutrophil_percent": {
       "type": "number",
       "description": "Segmented neutrophils / PMNs as a percent of WBC (0-100)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/anc",
  "count": 2,
  "items": [
   {
    "formula": "anc",
    "citation": {
     "id": "bodey-1966",
     "doi": "10.7326/0003-4819-64-2-328",
     "title": "Quantitative relationships between circulating leukocytes and infection in patients with acute leukemia",
     "source": "Ann Intern Med. 1966;64(2):328-340",
     "authors": "Bodey GP, Buckley M, Sathe YS, Freireich EJ"
    },
    "anc_per_ul": 3180,
    "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
    "wbc_per_ul": 6000,
    "band_percent": 3,
    "formula_expression": "ANC_per_uL = wbc_per_uL * (neutrophil_percent + band_percent) / 100",
    "neutrophil_percent": 50,
    "bodey_granulocyte_band": ">1500"
   },
   {
    "formula": "anc",
    "citation": {
     "id": "bodey-1966",
     "doi": "10.7326/0003-4819-64-2-328",
     "title": "Quantitative relationships between circulating leukocytes and infection in patients with acute leukemia",
     "source": "Ann Intern Med. 1966;64(2):328-340",
     "authors": "Bodey GP, Buckley M, Sathe YS, Freireich EJ"
    },
    "anc_per_ul": 3180,
    "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
    "wbc_per_ul": 6000,
    "band_percent": 3,
    "formula_expression": "ANC_per_uL = wbc_per_uL * (neutrophil_percent + band_percent) / 100",
    "neutrophil_percent": 50,
    "bodey_granulocyte_band": ">1500"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-anc-calculator-974fccbb/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)
