# Magent Neonatal Glucose Infusion Rate (GIR) Calculator

> Magent Neonatal Glucose Infusion Rate (GIR) 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 neonatal glucose infusion rate (GIR) in mg/kg/min using the AAP 2011 formula from dextrose concentration, infusion rate, and optionally weight.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/gir
- 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-neonatal-glucose-infusion-rate-gir-calculator-19bf7e2a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8ZzBha8ZLfRE68MnhUErO

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-neonatal-glucose-infusion-rate-gir-calculator-19bf7e2a
```

Example prompt: Calculate the glucose infusion rate for a 2.1 kg neonate receiving D10W at 6 ml/h — give me the GIR in mg/kg/min.

## When to prefer this

Use this endpoint when you need a fast, formula-based GIR calculation for neonatal patients following the AAP 2011 postnatal glucose homeostasis framework. Prefer it when inputs are in either ml/h + weight or ml/kg/h form and the concentration is between 2.5–25% dextrose. It is a pure computation tool, not a clinical decision support system — do not use it to order dextrose, make TPN decisions, or receive dosing recommendations.

## Known failure modes

- Missing required dextrose_percent returns an error
- Providing both rate_ml_h and rate_ml_kg_h simultaneously is not permitted — only one rate style allowed
- dextrose_percent outside 2.5–25% range rejected by clamp
- weight_kg outside 0.4–10 kg range rejected by clamp
- rate_ml_h outside 0.5–200 range rejected by clamp
- rate_ml_kg_h outside 0.5–20 range rejected by clamp
- Providing rate_ml_h without weight_kg returns an error (both required together)
- Payment failure (x402) if USDC funds are insufficient

## How this service works

Neonatal glucose infusion rate (GIR, mg/kg/min) from the unit conversion used with AAP 2011 postnatal glucose homeostasis: GIR = (dextrose_percent x rate_ml_h) / (6 x weight_kg), or (dextrose_percent x rate_ml_kg_h) / 6. Provide rate_ml_h plus weight_kg, or rate_ml_kg_h, not both rate styles. Dextrose 2.5-25% and weight 0.4-10 kg are magent clamps, not AAP input bands. Reports GIR only. Does not order dextrose or TPN. Not a medical device.

## Output

Returns the calculated GIR value in mg/kg/min, derived from the formula: GIR = (dextrose_percent × rate_ml_h) / (6 × weight_kg) or (dextrose_percent × rate_ml_kg_h) / 6. Does not include clinical recommendations, dextrose orders, or TPN guidance.

## 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": [
      "dextrose_percent"
     ],
     "properties": {
      "rate_ml_h": {
       "type": "number",
       "description": "Infusion rate in ml/h (0.5-200, magent clamp; AAP 2011 does not publish an input band). Provide this with weight_kg, or provide rate_ml_kg_h, not both rate styles."
      },
      "weight_kg": {
       "type": "number",
       "description": "Weight in kg (0.4-10, magent clamp; AAP 2011 does not publish an input band). Required with rate_ml_h. Not required when rate_ml_kg_h is the only rate. magent does not weigh the infant."
      },
      "rate_ml_kg_h": {
       "type": "number",
       "description": "Infusion rate in ml/kg/h (0.5-20, magent clamp). GIR = (dextrose_percent × rate_ml_kg_h) / 6. Provide this or rate_ml_h plus weight_kg, not both rate styles."
      },
      "dextrose_percent": {
       "type": "number",
       "description": "Dextrose concentration as percent (2.5-25, magent clamp; AAP 2011 does not publish an input band). 10 is D10W. magent does not order dextrose."
      }
     }
    }
   },
   "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-neonatal-glucose-infusion-rate-gir-calculator-19bf7e2a/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)
