# magent AKIN Stage Calculator

> magent AKIN Stage 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-13).

Computes AKIN 2007 acute kidney injury stage (0–3) from baseline creatinine, current creatinine, and a caller-assigned urine-output category, returning the worse of the two limbs.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/akin
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-akin-stage-calculator-5fe42226
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zwU9Bg-BwApBgdjrjrAbr

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-akin-stage-calculator-5fe42226
```

Example prompt: Using the AKIN 2007 criteria, calculate the acute kidney injury stage for a patient with a baseline creatinine of 0.9 mg/dL, a current creatinine of 2.5 mg/dL, urine output showing oliguria for more than 12 hours, and no renal replacement therapy initiated.

## When to prefer this

Use this endpoint when you need a fast, deterministic AKIN 2007 (Mehta Table 2) AKI stage computed from creatinine in mg/dL and a pre-categorized urine-output descriptor. Prefer it over manual calculation or KDIGO-based tools when you specifically need AKIN 2007 staging in an automated or agentic pipeline. Not suitable when you need KDIGO 2012 criteria, RIFLE classification, creatinine unit conversion from µmol/L, or actual urine measurement.

## Known failure modes

- Missing required query parameters (baseline_creatinine_mg_dl, current_creatinine_mg_dl, urine_output, rrt) returns a 4xx error
- Creatinine values outside the 0.1–20 mg/dL range may be rejected or produce unexpected results
- Providing creatinine in µmol/L instead of mg/dL is not supported and will yield incorrect staging
- Invalid urine_output enum value returns a validation error
- Payment failure or insufficient USDC balance returns 402 Payment Required

## How this service works

AKIN 2007 (Mehta Table 2) stage 0-3 from baseline and current creatinine in mg/dL and a caller-assigned urine-output category. Stage is the worse of the two limbs; RRT is stage 3. magent does not assay creatinine, measure urine, or collect weight. Not a medical device, not a diagnosis, not KDIGO 2012, and not RIFLE.

## Output

Returns the AKIN acute kidney injury stage (0, 1, 2, or 3) computed as the worse of the creatinine-based limb and the urine-output limb; RRT initiation automatically maps to stage 3 regardless of other inputs.

## 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": [
      "baseline_creatinine_mg_dl",
      "current_creatinine_mg_dl",
      "urine_output",
      "rrt"
     ],
     "properties": {
      "rrt": {
       "type": "boolean",
       "description": "Renal replacement therapy initiated as assigned by the caller. true maps to AKIN stage 3 irrespective of creatinine or urine stage (Mehta 2007). true or false."
      },
      "urine_output": {
       "enum": [
        "none",
        "oliguria_gt_6h",
        "oliguria_gt_12h",
        "oliguria_24h_or_anuria_12h"
       ],
       "type": "string",
       "description": "Caller-assigned AKIN urine-output category (Mehta 2007 Table 2): none (no oliguria or anuria criterion); oliguria_gt_6h (<0.5 mL/kg/h for >6 hours); oliguria_gt_12h (<0.5 mL/kg/h for >12 hours); oliguria_24h_or_anuria_12h (<0.3 mL/kg/h for 24 hours or anuria for 12 hours). Case-insensitive. magent does not collect weight or measure urine."
      },
      "current_creatinine_mg_dl": {
       "type": "number",
       "description": "Current serum creatinine in mg/dL (0.1-20). Staging uses the unrounded value. µmol/L is not accepted on this tool. magent does not assay creatinine."
      },
      "baseline_creatinine_mg_dl": {
       "type": "number",
       "description": "Baseline serum creatinine in mg/dL (0.1-20). Staging uses the unrounded value. µmol/L is not accepted on this tool. magent does not assay creatinine."
      }
     }
    }
   },
   "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-akin-stage-calculator-5fe42226/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)
