# McGinnis 2024 VACS-CCI Mortality Score Calculator

> McGinnis 2024 VACS-CCI Mortality Score 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).

Computes the McGinnis 2024 VACS-CCI Table 2 linear predictor for long-term mortality risk in veterans using lab values, demographics, comorbidities, and Charlson Comorbidity Index groupings

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/vacs_cci
- 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/mcginnis-2024-vacs-cci-mortality-score-calculator-8219cc98
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8650amKQUdcVe4hHe8qBs

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 mcginnis-2024-vacs-cci-mortality-score-calculator-8219cc98
```

Example prompt: Calculate the McGinnis 2024 VACS-CCI Table 2 mortality linear predictor for a 62-year-old male with hemoglobin 11.5 g/dL, FIB-4 2.3, eGFR 48 mL/min/1.73m², albumin 3.6 g/dL, WBC 6.2 ×10⁹/L, BMI 27.4 kg/m², hepatitis C positive, and the following Charlson conditions present: diabetes without complications and congestive heart failure.

## When to prefer this

Use this endpoint when you need the specific McGinnis 2024 VACS-CCI Table 2 linear predictor that incorporates the Charlson Comorbidity Index age-band interaction alongside VA lab biomarkers (hemoglobin, FIB-4, eGFR, albumin, WBC, BMI) and hepatitis C status. Prefer this over simpler VACO Index endpoints (which use unadjusted CCI and 30-day mortality) when the clinical question concerns long-term (1–10 year) mortality in veterans with comorbid conditions, especially liver disease. Not suitable for acute mortality prediction or pediatric populations.

## Known failure modes

- Missing required query parameters return a 400 error
- Out-of-range values (e.g., age <18 or >120, BMI <10 or >60, FIB-4 <0.1 or >20) may return validation errors
- Invalid enum value for sex field returns a 422 or 400 error
- Payment not included or insufficient USDC balance returns a 402 Payment Required response
- Boolean comorbidity fields passed as strings instead of true/false may fail schema validation

## How this service works

McGinnis 2024 VACS-CCI Table 2 Model 7 linear predictor from sex, age, hemoglobin, FIB-4, eGFR, albumin, WBC, BMI, hepatitis C, and caller-assigned Charlson groupings. CCI group is those weights (0/1/2/3+) times age band. The 0-100 score needs unpublished development min/max Xbeta; magent does not invent it. Paper prints score 30 to 1/3/8/18% and 45 to 6/14/35/61% at 1/2/5/10 years. Not a diagnosis or individual prognosis. magent does not code the chart.

## Output

Returns the McGinnis 2024 VACS-CCI Table 2 linear predictor value computed from the caller-supplied inputs. The score corresponds to published mortality probability benchmarks (e.g., score 30 maps to approximately 1/3/8/18% mortality at 1/2/5/10 years; score 45 maps to approximately 6/14/35/61%). The endpoint does not interpolate from unpublished development min/max Xbeta values, does not assign a diagnosis, and does not constitute individual clinical prognosis.

## 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",
      "age",
      "hemoglobin_g_dl",
      "fib4",
      "egfr_ml_min_1_73m2",
      "albumin_g_dl",
      "wbc_10e9_l",
      "bmi_kg_m2",
      "hepatitis_c",
      "myocardial_infarction",
      "congestive_heart_failure",
      "peripheral_vascular_disease",
      "cerebrovascular_disease",
      "dementia",
      "chronic_pulmonary_disease",
      "rheumatic_disease",
      "peptic_ulcer_disease",
      "diabetes_without_complications",
      "diabetes_with_complications",
      "hemiplegia_or_paraplegia",
      "kidney_mild_to_moderate",
      "kidney_severe",
      "any_malignancy",
      "metastatic_solid_tumor",
      "liver_mild",
      "liver_moderate_to_severe"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (integer 18-120). Table 2 uses the cubic polynomial of (age-50) and CCI x age-band interaction (<50, 50-64, 65-79, 80+). magent does not assign age."
      },
      "sex": {
       "enum": [
        "female",
        "male"
       ],
       "type": "string",
       "description": "Caller-assigned sex (female or male). Female vs male adds -0.513 to the Table 2 linear predictor. magent does not assign sex."
      },
      "fib4": {
       "type": "number",
       "description": "Caller-assigned FIB-4 (0.1-20). Table 2 uses X and X2 of FIB-4. magent does not recompute FIB-4."
      },
      "dementia": {
       "type": "boolean",
       "description": "Caller-assigned dementia (McGinnis 2024 Table 2). true adds 0.489 to lp and 1 to the CCI grouping. magent does not diagnose dementia."
      },
      "bmi_kg_m2": {
       "type": "number",
       "description": "Body mass index in kg/m² (10-60). Table 2 centers at (BMI-25). magent does not compute BMI from height and weight."
      },
      "liver_mild": {
       "type": "boolean",
       "description": "Caller-assigned mild liver disease (McGinnis 2024 Table 2
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mcginnis-2024-vacs-cci-mortality-score-calculator-8219cc98/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)
