# SCORE2-Diabetes 10-Year CVD Risk Calculator

> SCORE2-Diabetes 10-Year CVD Risk 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 ESC 2023 SCORE2-Diabetes 10-year fatal and non-fatal cardiovascular disease risk percentage for adults aged 40–79 with type 2 diabetes, using sex, smoking, blood pressure, cholesterol, HbA1c, eGFR, age at diagnosis, and European geographic region.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/score2_diabetes
- 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/score2-diabetes-10-year-cvd-risk-calculator-9f983832
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wnBxmmGQjbU_X3ZfNle-4

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 score2-diabetes-10-year-cvd-risk-calculator-9f983832
```

Example prompt: Calculate the SCORE2-Diabetes 10-year CVD risk for a 63-year-old male, current smoker, systolic BP 145 mmHg, total cholesterol 5.2 mmol/L, HDL 1.1 mmol/L, diagnosed with diabetes at age 55, HbA1c 58 mmol/mol, eGFR 72 mL/min/1.73 m², living in a high European cardiovascular risk region.

## When to prefer this

Use this endpoint specifically when you need the ESC 2023 SCORE2-Diabetes risk score for a patient aged 40–79 with type 2 diabetes and you already have lab values (HbA1c in IFCC mmol/mol, eGFR, lipids) from an external source. Do not use for patients without diabetes (use SCORE2 or SCORE2-OP), for patients outside 40–79, or when you need the algorithm to perform lab measurements — this endpoint only computes the risk formula from caller-supplied values.

## Known failure modes

- Age outside 40–79 range returns an error or invalid result
- eGFR or HbA1c value outside allowed range causes validation failure
- Invalid or missing european_risk_region enum value causes request failure
- Missing any required query parameter results in a 400-level error
- Non-IFCC HbA1c units (% DCCT instead of mmol/mol) provided by caller leads to incorrect risk estimate

## How this service works

ESC 2023 SCORE2-Diabetes 10-year fatal plus non-fatal CVD percent for type 2 diabetes, age 40-79, from sex, smoking, systolic BP, total and HDL cholesterol, age at diagnosis, IFCC HbA1c, eGFR, and European geographic risk region. Not SCORE2, not SCORE2-OP, not a diagnosis or statin order. magent does not assay lipids, HbA1c, or eGFR.

## Output

Returns the SCORE2-Diabetes 2023 estimated 10-year percentage probability of a fatal or non-fatal cardiovascular disease event, calibrated by European geographic risk region and computed from the provided clinical parameters.

## 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": [
      "age",
      "sex",
      "smoker",
      "sbp_mm_hg",
      "total_cholesterol_mmol_l",
      "hdl_mmol_l",
      "age_at_diabetes_diagnosis",
      "hba1c_mmol_mol",
      "egfr_ml_min_1_73m2",
      "european_risk_region"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (integer 40-79). SCORE2-Diabetes 2023 is for ages 40-79. Not SCORE2 (40-69 without diabetes labs). Not SCORE2-OP."
      },
      "sex": {
       "enum": [
        "female",
        "male"
       ],
       "type": "string",
       "description": "Sex used by the sex-specific SCORE2-Diabetes 2023 coefficients (female or male)."
      },
      "smoker": {
       "type": "boolean",
       "description": "Current cigarette smoking as assigned by the caller (true or false). magent does not take a smoking history."
      },
      "sbp_mm_hg": {
       "type": "number",
       "description": "Systolic blood pressure in mm Hg (50-250). Enters as (SBP-120)/20. magent does not measure blood pressure."
      },
      "hdl_mmol_l": {
       "type": "number",
       "description": "HDL cholesterol in mmol/L (0.4-4). Enters as (HDL-1.3)/0.5. magent does not assay lipids."
      },
      "hba1c_mmol_mol": {
       "type": "number",
       "description": "HbA1c in IFCC mmol/mol (20-195), not % DCCT. Enters as (HbA1c-31)/9.34. magent does not assay HbA1c."
      },
      "egfr_ml_min_1_73m2": {
       "type": "number",
       "description": "Caller-assigned eGFR in mL/min/1.73 m² (5-200). Enters as (ln(eGFR)-4.5)/0.15 plus the squared term. magent does not compute CKD-EPI."
      },
      "european_risk_region": {
       "enum": [
        "low",
        "moderate",
        "high",
        "very_high"
       ],
       "type": "string",
       "description": "Geographic SCORE2/SCORE2-OP calibration region (low, moderate, high, or very_high) as printed for SCORE2-Diabetes. Not race.
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/score2-diabetes-10-year-cvd-risk-calculator-9f983832/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)
