{
  "x402Version": 2,
  "id": 39150,
  "slug": "39150",
  "resource": "https://api.magentlab.com/api/calc/kfre",
  "description": "Tangri 2011 4-variable Kidney Failure Risk Equation: 2- and 5-year risk of dialysis or transplant from age, male, eGFR, and urine ACR (mg/g). Risk = 1 - S0^exp(LP) with that paper's 4-variable coefficients. Caller supplies eGFR; magent does not compute CKD-EPI or assay ACR. Not the 8-variable model, not Tangri 2016 country S0, no race. Not a dialysis or transplant order. Not a medical device.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "acr_mg_g": 300,
                "age_years": 55,
                "egfr_ml_min": 30,
                "male": true
              },
              {
                "acr_mg_g": 300,
                "age_years": 55,
                "egfr_ml_min": 30,
                "male": true
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "acr_mg_g": 300,
                "age_years": 55,
                "citation": {
                  "authors": "Tangri N, Stevens LA, Griffith J, Tighiouart H, Djurdjev O, Naimark D, Levin A, Levey AS",
                  "doi": "10.1001/jama.2011.451",
                  "id": "tangri-2011",
                  "pmid": "21642682",
                  "source": "JAMA. 2011;305(15):1553-1559",
                  "title": "A predictive model for progression of chronic kidney disease to kidney failure"
                },
                "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.",
                "egfr_ml_min": 30,
                "five_year_risk_percent": 27,
                "formula": "kfre",
                "formula_expression": "LP = -0.2201*(age_years/10 - 7.036) + 0.2467*(male - 0.5642) - 0.5567*(egfr_ml_min/5 - 7.222) + 0.4510*(ln(acr_mg_g) - 5.137); 2-year risk = 1 - 0.9750^exp(LP); 5-year risk = 1 - 0.9240^exp(LP); Tangri 2011 4-variable only; male is 1 if true else 0; ACR mg/g natural log; caller supplies eGFR; not 8-variable; not Tangri 2016 country S0; no race",
                "linear_predictor": 1.3815,
                "male": true,
                "s0_2_year": 0.975,
                "s0_5_year": 0.924,
                "two_year_risk_percent": 9.6
              },
              {
                "acr_mg_g": 300,
                "age_years": 55,
                "citation": {
                  "authors": "Tangri N, Stevens LA, Griffith J, Tighiouart H, Djurdjev O, Naimark D, Levin A, Levey AS",
                  "doi": "10.1001/jama.2011.451",
                  "id": "tangri-2011",
                  "pmid": "21642682",
                  "source": "JAMA. 2011;305(15):1553-1559",
                  "title": "A predictive model for progression of chronic kidney disease to kidney failure"
                },
                "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.",
                "egfr_ml_min": 30,
                "five_year_risk_percent": 27,
                "formula": "kfre",
                "formula_expression": "LP = -0.2201*(age_years/10 - 7.036) + 0.2467*(male - 0.5642) - 0.5567*(egfr_ml_min/5 - 7.222) + 0.4510*(ln(acr_mg_g) - 5.137); 2-year risk = 1 - 0.9750^exp(LP); 5-year risk = 1 - 0.9240^exp(LP); Tangri 2011 4-variable only; male is 1 if true else 0; ACR mg/g natural log; caller supplies eGFR; not 8-variable; not Tangri 2016 country S0; no race",
                "linear_predictor": 1.3815,
                "male": true,
                "s0_2_year": 0.975,
                "s0_5_year": 0.924,
                "two_year_risk_percent": 9.6
              }
            ],
            "path": "/api/calc/kfre"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "acr_mg_g": {
                          "description": "Urine albumin-to-creatinine ratio in mg/g (0.1-10000, magent clamp; must be positive). Enters as natural log, centered at 5.137. magent does not assay ACR and does not convert from mg/mmol.",
                          "type": "number"
                        },
                        "age_years": {
                          "description": "Age in years (18-90, magent clamp). Tangri 2011 4-variable model uses age as a continuous predictor (per 10 years, centered at 7.036). Adult CKD 3-5 derivation.",
                          "type": "integer"
                        },
                        "egfr_ml_min": {
                          "description": "Caller-supplied eGFR in mL/min/1.73 m2 (1-150, magent clamp; must be positive). Tangri 2011 derivation was CKD stages 3-5. magent does not compute CKD-EPI eGFR and does not assay creatinine.",
                          "type": "number"
                        },
                        "male": {
                          "description": "true if male, false if female. Enters the linear predictor as 1 or 0 (centered at 0.5642). No race coefficient.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "age_years",
                        "male",
                        "egfr_ml_min",
                        "acr_mg_g"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "kfre",
    "kidney-failure",
    "ckd",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T04:51:38.097Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T04:51:37.405Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "acr_mg_g": 300,
                  "age_years": 55,
                  "egfr_ml_min": 30,
                  "male": true
                },
                {
                  "acr_mg_g": 300,
                  "age_years": 55,
                  "egfr_ml_min": 30,
                  "male": true
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "acr_mg_g": 300,
                  "age_years": 55,
                  "citation": {
                    "authors": "Tangri N, Stevens LA, Griffith J, Tighiouart H, Djurdjev O, Naimark D, Levin A, Levey AS",
                    "doi": "10.1001/jama.2011.451",
                    "id": "tangri-2011",
                    "pmid": "21642682",
                    "source": "JAMA. 2011;305(15):1553-1559",
                    "title": "A predictive model for progression of chronic kidney disease to kidney failure"
                  },
                  "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.",
                  "egfr_ml_min": 30,
                  "five_year_risk_percent": 27,
                  "formula": "kfre",
                  "formula_expression": "LP = -0.2201*(age_years/10 - 7.036) + 0.2467*(male - 0.5642) - 0.5567*(egfr_ml_min/5 - 7.222) + 0.4510*(ln(acr_mg_g) - 5.137); 2-year risk = 1 - 0.9750^exp(LP); 5-year risk = 1 - 0.9240^exp(LP); Tangri 2011 4-variable only; male is 1 if true else 0; ACR mg/g natural log; caller supplies eGFR; not 8-variable; not Tangri 2016 country S0; no race",
                  "linear_predictor": 1.3815,
                  "male": true,
                  "s0_2_year": 0.975,
                  "s0_5_year": 0.924,
                  "two_year_risk_percent": 9.6
                },
                {
                  "acr_mg_g": 300,
                  "age_years": 55,
                  "citation": {
                    "authors": "Tangri N, Stevens LA, Griffith J, Tighiouart H, Djurdjev O, Naimark D, Levin A, Levey AS",
                    "doi": "10.1001/jama.2011.451",
                    "id": "tangri-2011",
                    "pmid": "21642682",
                    "source": "JAMA. 2011;305(15):1553-1559",
                    "title": "A predictive model for progression of chronic kidney disease to kidney failure"
                  },
                  "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.",
                  "egfr_ml_min": 30,
                  "five_year_risk_percent": 27,
                  "formula": "kfre",
                  "formula_expression": "LP = -0.2201*(age_years/10 - 7.036) + 0.2467*(male - 0.5642) - 0.5567*(egfr_ml_min/5 - 7.222) + 0.4510*(ln(acr_mg_g) - 5.137); 2-year risk = 1 - 0.9750^exp(LP); 5-year risk = 1 - 0.9240^exp(LP); Tangri 2011 4-variable only; male is 1 if true else 0; ACR mg/g natural log; caller supplies eGFR; not 8-variable; not Tangri 2016 country S0; no race",
                  "linear_predictor": 1.3815,
                  "male": true,
                  "s0_2_year": 0.975,
                  "s0_5_year": 0.924,
                  "two_year_risk_percent": 9.6
                }
              ],
              "path": "/api/calc/kfre"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "acr_mg_g": {
                            "description": "Urine albumin-to-creatinine ratio in mg/g (0.1-10000, magent clamp; must be positive). Enters as natural log, centered at 5.137. magent does not assay ACR and does not convert from mg/mmol.",
                            "type": "number"
                          },
                          "age_years": {
                            "description": "Age in years (18-90, magent clamp). Tangri 2011 4-variable model uses age as a continuous predictor (per 10 years, centered at 7.036). Adult CKD 3-5 derivation.",
                            "type": "integer"
                          },
                          "egfr_ml_min": {
                            "description": "Caller-supplied eGFR in mL/min/1.73 m2 (1-150, magent clamp; must be positive). Tangri 2011 derivation was CKD stages 3-5. magent does not compute CKD-EPI eGFR and does not assay creatinine.",
                            "type": "number"
                          },
                          "male": {
                            "description": "true if male, false if female. Enters the linear predictor as 1 or 0 (centered at 0.5642). No race coefficient.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "age_years",
                          "male",
                          "egfr_ml_min",
                          "acr_mg_g"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}