# Magent Ganzoni Iron Deficit Calculator

> Magent Ganzoni Iron Deficit 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-15).

Computes total iron deficit in mg using the Ganzoni 1970 formula: weight_kg × (target_Hb − actual_Hb) × 2.4 + depot iron stores

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/ganzoni
- 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-ganzoni-iron-deficit-calculator-bfdad618
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nGaKGUVcGlxRN7P3tz_28

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-ganzoni-iron-deficit-calculator-bfdad618
```

Example prompt: Calculate the Ganzoni 1970 iron deficit for a 70 kg patient with a current hemoglobin of 8.5 g/dL, a target hemoglobin of 12 g/dL, and depot iron stores of 500 mg.

## When to prefer this

Use this endpoint when you need a deterministic, citeable calculation of total body iron deficit per the Ganzoni 1970 formula — especially in clinical decision-support workflows where reproducibility and provenance matter. Prefer this over ad-hoc LLM arithmetic because it applies the exact published equation with no approximation. Do not use it to select a target hemoglobin, choose an IV iron product, or diagnose iron deficiency — those are clinical decisions outside its scope.

## Known failure modes

- Missing required parameters (hemoglobin_g_dl, target_hemoglobin_g_dl, iron_stores_mg) returns a 400 error
- target_hemoglobin_g_dl not strictly greater than hemoglobin_g_dl returns a validation error
- hemoglobin_g_dl out of range (must be 3–22 g/dL) returns an error
- target_hemoglobin_g_dl out of range (must be 7–18 g/dL) returns an error
- iron_stores_mg out of range (must be 0–2000) returns an error
- Neither weight_kg nor weight_lb provided returns a missing parameter error
- Payment not included or insufficient triggers 402 Payment Required

## How this service works

Ganzoni 1970 iron deficit: weight_kg * (target_hemoglobin_g_dl - hemoglobin_g_dl) * 2.4 + iron_stores_mg. Deterministic published arithmetic with citation. Not an IV iron product dose or order; magent does not pick target Hb or depot iron, and this is not a diagnosis of iron deficiency.

## Output

Returns the calculated total iron deficit in milligrams using the Ganzoni 1970 arithmetic (weight_kg × (target_Hb − actual_Hb) × 2.4 + iron_stores_mg), along with the citation and a disclaimer that this is not a clinical order or 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": [
      "hemoglobin_g_dl",
      "target_hemoglobin_g_dl",
      "iron_stores_mg"
     ],
     "properties": {
      "weight_kg": {
       "type": "number",
       "description": "Weight in kilograms. Provide weight_kg or weight_lb."
      },
      "weight_lb": {
       "type": "number",
       "description": "Weight in pounds. Converted as kg = lb * 0.45359237."
      },
      "iron_stores_mg": {
       "type": "number",
       "description": "Depot iron stores in mg (0-2000). Required; magent does not default a depot."
      },
      "hemoglobin_g_dl": {
       "type": "number",
       "description": "Measured hemoglobin in g/dL (3-22). This tool does not accept g/L."
      },
      "target_hemoglobin_g_dl": {
       "type": "number",
       "description": "Target hemoglobin in g/dL (7-18). Must be strictly greater than hemoglobin_g_dl. magent does not pick a target."
      }
     }
    }
   },
   "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/ganzoni",
  "count": 2,
  "items": [
   {
    "formula": "ganzoni",
    "citation": {
     "id": "ganzoni-1970",
     "pmid": "5417430",
     "title": "Intravenous iron-dextran: therapeutic and experimental possibilities",
     "source": "Schweiz Med Wochenschr. 1970;100(7):301-303",
     "authors": "Ganzoni AM"
    },
    "weight_kg": 70,
    "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.",
    "iron_stores_mg": 500,
    "hemoglobin_g_dl": 8,
    "iron_deficit_mg": 1676,
    "formula_expression": "iron_deficit_mg = weight_kg * (target_hemoglobin_g_dl - hemoglobin_g_dl) * 2.4 + iron_stores_mg",
    "target_hemoglobin_g_dl": 15
   },
   {
    "formula": "ganzoni",
    "citation": {
     "id": "ganzoni-1970",
     "pmid": "5417430",
     "title": "Intravenous iron-dextran: therapeutic and experimental possibilities",
     "source": "Schweiz Med Wochenschr. 1970;100(7):301-303",
     "authors": "Ganzoni AM"
    },
    "weight_kg": 70,
    "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.",
    "iron_stores_mg": 500,
    "hemoglobin_g_dl": 8,
    "iron_deficit_mg": 1676,
    "formula_expression": "iron_deficit_mg = weight_kg * (target_hemoglobin_g_dl - hemoglobin_g_dl) * 2.4 + iron_stores_mg",
    "target_hemoglobin_g_dl": 15
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-ganzoni-iron-deficit-calculator-bfdad618/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)
