# Thakar 2005 Acute Renal Failure Risk Score (Post-Cardiac Surgery)

> Thakar 2005 Acute Renal Failure Risk Score (Post-Cardiac Surgery) 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 the Thakar 2005 clinical score predicting risk of acute renal failure requiring dialysis after open-heart surgery, returning an integer score (0–17) and a risk category.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/thakar
- 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/thakar-2005-acute-renal-failure-risk-score-post-cardiac-surgery-a52e076b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BynkOI2auVFrKMBuXtNTL

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 thakar-2005-acute-renal-failure-risk-score-post-cardiac-surgery-a52e076b
```

Example prompt: Calculate the Thakar 2005 renal failure dialysis risk score for a female patient undergoing combined CABG and valve surgery — she has congestive heart failure, LVEF under 35%, COPD, is insulin-dependent diabetic, had previous cardiac surgery, and her preoperative creatinine is 1.8 mg/dL; it's not an emergency.

## When to prefer this

Use this endpoint when you need to apply the specific Thakar 2005 clinical prediction rule for post-cardiac-surgery acute renal failure requiring dialysis. Prefer it over generic kidney function tools when the clinical context is open-heart surgery (CABG, valve, or combined procedures) and the goal is preoperative risk stratification using the validated Thakar scoring system. Do not use for AKIN or RIFLE AKI staging, for non-cardiac surgery, or for post-operative monitoring — this is a preoperative point-in-time risk calculator only.

## Known failure modes

- Missing required query parameters (sex, surgery_type, boolean flags) returns a validation error
- Providing both creatinine_mg_dl and creatinine_umol_l simultaneously may cause a conflict or rejection
- Creatinine value outside expected range (mg/dL 0.1–20 or µmol/L 9–1768) may return an error
- Invalid enum values for sex or surgery_type return a schema validation error
- Payment not included or invalid x402 payment header causes a 402 Payment Required response

## How this service works

Thakar 2005 clinical score for acute renal failure requiring dialysis after open-heart surgery. Points from sex, CHF, LVEF <35%, preoperative IABP, COPD, insulin-requiring diabetes, previous cardiac surgery, emergency surgery, procedure type (CABG / valve / CABG+valve / other), and preoperative creatinine (<1.2 / 1.2 to <2.1 / >=2.1 mg/dL). Returns integer score (max 17) and category 0–2 / 3–5 / 6–8 / 9–13. Not a dialysis order; not AKIN or RIFLE staging.

## Output

Returns an integer Thakar score (0–17) summed from the weighted clinical factors, plus a risk category bracket (0–2, 3–5, 6–8, or 9–13) indicating the patient's likelihood of requiring dialysis for acute renal failure after open-heart surgery.

## 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",
      "surgery_type",
      "congestive_heart_failure",
      "lvef_lt_35",
      "preoperative_iabp",
      "copd",
      "insulin_diabetes",
      "previous_cardiac_surgery",
      "emergency_surgery"
     ],
     "properties": {
      "sex": {
       "enum": [
        "female",
        "male"
       ],
       "type": "string",
       "description": "female or male (Thakar 2005). Female scores 1. Male scores 0. Assigned by the caller."
      },
      "copd": {
       "type": "boolean",
       "description": "COPD requiring medical therapy as assigned by the caller (Thakar 2005). true scores 1. true or false."
      },
      "lvef_lt_35": {
       "type": "boolean",
       "description": "Left-ventricular ejection fraction <35% as assigned by the caller (Thakar 2005). true scores 1. Flag only; do not send an LVEF number. magent does not measure ejection fraction."
      },
      "surgery_type": {
       "enum": [
        "cabg",
        "valve",
        "cabg_valve",
        "other"
       ],
       "type": "string",
       "description": "cabg (CABG only, reference, 0), valve (valve only, +1), cabg_valve (CABG + valve, +2), or other (other cardiac surgeries such as ventricular aneurysm repair or pericardiectomy, +2). Thakar 2005. Assigned by the caller."
      },
      "creatinine_mg_dl": {
       "type": "number",
       "description": "Preoperative serum creatinine in mg/dL (0.1-20). Provide this or creatinine_umol_l, not both. Thakar 2005 scoring table: <1.2 scores 0; 1.2 to <2.1 scores 2; >=2.1 scores 5. 2.0 mg/dL scores 2. magent does not assay creatinine."
      },
      "insulin_diabetes": {
       "type": "boolean",
       "description": "Insulin-requiring diabetes as assigned by the caller (Thakar 2005). true scores 1. true or false."
      },
      "creatinine_umol_l": {
       "type": "number",
       "description": "Preoperative serum creatinine in µmol/L (9-1768). C
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/thakar-2005-acute-renal-failure-risk-score-post-cardiac-surgery-a52e076b/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)
