# Magent Ideal Body Weight (Devine Formula) Calculator

> Magent Ideal Body Weight (Devine Formula) 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).

Calculates Devine ideal body weight (IBW) and Adjusted Body Weight (AdjBW at 0.4 factor) from sex, height, and actual weight using the published Devine formula with citation.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/ibw_devine
- 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-ideal-body-weight-devine-formula-calculator-b8528577
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mGbvgatqo7PaRQHhys8bJ

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-ideal-body-weight-devine-formula-calculator-b8528577
```

Example prompt: What's the Devine ideal body weight and adjusted body weight for a male who is 5 feet 10 inches tall and weighs 210 pounds?

## When to prefer this

Choose this endpoint when you need a deterministic, citable Devine IBW calculation — especially when a 0.4 adjusted body weight is also required for pharmacokinetic or clinical reference. Prefer over general BMI calculators when the downstream need is IBW-specific (e.g., ventilator tidal volume targets, renal dosing weight estimates). It is not a dosing recommendation and should not replace clinical judgment.

## Known failure modes

- Missing required 'sex' parameter returns an error
- Neither height_cm nor height_in provided results in an error
- Providing a height at or below 60 inches (152.4 cm) may produce a zero or negative IBW per the Devine formula logic
- Non-numeric or out-of-range height/weight values cause validation errors
- Both weight_kg and weight_lb may be omitted if AdjBW is not needed, but absence may affect AdjBW output

## How this service works

Devine ideal body weight and 0.4 adjusted body weight from height, sex, and actual weight. Deterministic published formula with citation; not a dosing recommendation.

## Output

Returns the Devine ideal body weight (IBW) in kilograms, the adjusted body weight (AdjBW) calculated at the 0.4 factor in kilograms, and a citation to the original published Devine formula. The endpoint is deterministic and non-diagnostic — it is not a dosing recommendation.

## 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": [
      "sex"
     ],
     "properties": {
      "sex": {
       "enum": [
        "female",
        "male"
       ],
       "type": "string",
       "description": "Sex used by Devine (50 kg male, 45.5 kg female base)."
      },
      "height_cm": {
       "type": "number",
       "description": "Height in centimeters. Provide height_cm or height_in."
      },
      "height_in": {
       "type": "number",
       "description": "Height in inches. Devine uses inches: IBW adds 2.3 kg per inch over 60."
      },
      "weight_kg": {
       "type": "number",
       "description": "Actual total body weight in kilograms. Provide weight_kg or weight_lb."
      },
      "weight_lb": {
       "type": "number",
       "description": "Actual total body weight in pounds."
      }
     }
    }
   },
   "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/ibw_devine",
  "count": 2,
  "items": [
   {
    "sex": "male",
    "ibw_kg": 73,
    "formula": "devine_ibw_adjbw",
    "adjbw_kg": 79.8,
    "citation": {
     "id": "devine-1974",
     "doi": null,
     "title": "Gentamicin therapy",
     "source": "Drug Intell Clin Pharm. 1974;8:650-655",
     "authors": "Devine BJ"
    },
    "height_cm": 177.8,
    "height_in": 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.",
    "adjbw_factor": 0.4,
    "actual_weight_kg": 90,
    "formula_expression": "IBW_kg = 50 (male) or 45.5 (female) + 2.3 * (height_in - 60); AdjBW_kg = IBW_kg + 0.4 * (TBW_kg - IBW_kg) when TBW > IBW, else TBW_kg"
   },
   {
    "sex": "male",
    "ibw_kg": 73,
    "formula": "devine_ibw_adjbw",
    "adjbw_kg": 79.8,
    "citation": {
     "id": "devine-1974",
     "doi": null,
     "title": "Gentamicin therapy",
     "source": "Drug Intell Clin Pharm. 1974;8:650-655",
     "authors": "Devine BJ"
    },
    "height_cm": 177.8,
    "height_in": 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.",
    "adjbw_factor": 0.4,
    "actual_weight_kg": 90,
    "formula_expression": "IBW_kg = 50 (male) or 45.5 (female) + 2.3 * (height_in - 60); AdjBW_kg = IBW_kg + 0.4 * (TBW_kg - IBW_kg) when TBW > IBW, else TBW_kg"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-ideal-body-weight-devine-formula-calculator-b8528577/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)
