# ABC Score Calculator (Assessment of Blood Consumption)

> ABC Score Calculator (Assessment of Blood Consumption) 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-15).

Computes the Nunez 2009 ABC Score for predicting massive transfusion need based on injury mechanism, arrival SBP, arrival HR, and FAST result

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/abc_score
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/abc-score-calculator-assessment-of-blood-consumption-cb18e560
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZavEhyQ9dNrHD0LnQLgT3

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 abc-score-calculator-assessment-of-blood-consumption-cb18e560
```

Example prompt: Calculate the ABC score for a trauma patient who arrived with a penetrating mechanism, systolic BP of 80 mm Hg, heart rate of 135 bpm, and a positive FAST exam — and tell me if they hit the ≥2 threshold for massive transfusion risk.

## When to prefer this

Use this endpoint when you need a deterministic, citeable implementation of the Nunez 2009 ABC Score specifically — not TASH, not ABC/2 ICH volume, not a general transfusion order. Ideal for trauma decision support agents, retrospective registry scoring, or any workflow where you need to apply published arithmetic with a documented sensitivity/specificity profile for massive transfusion prediction.

## Known failure modes

- Missing required query parameters (penetrating, systolic_mm_hg, heart_rate_bpm, positive_fast) returns 400 error
- systolic_mm_hg outside 0–300 or heart_rate_bpm outside 30–220 range may be rejected as invalid
- Payment failure or missing x402 credentials returns 402
- Caller must assign penetrating mechanism and FAST interpretation — the API does not infer these from images or narrative

## How this service works

Nunez 2009 ABC (assessment of blood consumption): penetrating mechanism, arrival SBP ≤90 mm Hg, arrival HR ≥120 bpm, and positive FAST; 1 point each, max 4. score_ge_2 is the published ≥2 cutoff (75% sensitive / 86% specific for massive transfusion in that paper). Deterministic published arithmetic with citation; not a transfusion or MTP order; not TASH; not ABC/2 ICH volume.

## Output

Returns the integer ABC score from 0 to 4 (one point each for: penetrating mechanism, SBP ≤90 mm Hg, HR ≥120 bpm, positive FAST) and a boolean score_ge_2 flag indicating whether the patient meets the published ≥2 cutoff (75% sensitive, 86% specific for massive transfusion per Nunez 2009).

## 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": [
      "penetrating",
      "systolic_mm_hg",
      "heart_rate_bpm",
      "positive_fast"
     ],
     "properties": {
      "penetrating": {
       "type": "boolean",
       "description": "Penetrating injury mechanism as assigned by the caller (Nunez 2009). true or false. magent does not assign mechanism."
      },
      "positive_fast": {
       "type": "boolean",
       "description": "Positive FAST as assigned by the caller (Nunez 2009). true or false. magent does not interpret FAST images."
      },
      "heart_rate_bpm": {
       "type": "integer",
       "description": "Arrival heart rate in beats per minute (integer 30-220). ≥120 scores 1."
      },
      "systolic_mm_hg": {
       "type": "integer",
       "description": "Arrival systolic blood pressure in mm Hg (integer 0-300). ≤90 scores 1."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/abc_score",
  "count": 2,
  "items": [
   {
    "score": 0,
    "formula": "abc_score",
    "citation": {
     "id": "nunez-2009",
     "doi": "10.1097/TA.0b013e3181961c35",
     "pmid": "19204506",
     "title": "Early prediction of massive transfusion in trauma: simple as ABC (assessment of blood consumption)?",
     "source": "J Trauma. 2009;66(2):346-352",
     "authors": "Nunez TC, Voskresensky IV, Dossett LA, Shinall R, Dutton WD, Cotton BA"
    },
    "max_score": 4,
    "components": [
     {
      "factor": "penetrating",
      "points": 0,
      "present": false
     },
     {
      "value": 120,
      "factor": "sbp_le_90",
      "points": 0,
      "present": false
     },
     {
      "value": 80,
      "factor": "hr_ge_120",
      "points": 0,
      "present": false
     },
     {
      "factor": "positive_fast",
      "points": 0,
      "present": false
     }
    ],
    "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.",
    "score_ge_2": false,
    "formula_expression": "ABC = penetrating + sbp_le_90 + hr_ge_120 + positive_fast; each 1; max 4; score_ge_2 iff score >= 2"
   },
   {
    "score": 0,
    "formula": "abc_score",
    "citation": {
     "id": "nunez-2009",
     "doi": "10.1097/TA.0b013e3181961c35",
     "pmid": "19204506",
     "title": "Early prediction of massive transfusion in trauma: simple as ABC (assessment of blood consumption)?",
     "source": "J Trauma. 2009;66(2):346-352",
     "authors": "Nunez TC, Voskresensky IV, Dossett LA, Shinall R, Dutton WD, Cotton BA"
    },
    "max_score": 4,
    "components": [
     {
      "factor": "penetrating",
      "points": 0,
      "present": false
     },
     {
      "value": 120,
      "factor": "sbp_le_90",
      "points": 0,
      "present": false
     },
     {
      "value": 80,
      "factor": "hr_ge_120",
      "points": 0,
      "present": false
     },
     {
      "factor": "positive_fast",
      "points": 0,
      "present": false
     }
    ],
    "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.",
    "score_ge_2": false,
    "formula_expression": "ABC = penetrating + sbp_le_90 + hr_ge_120 + positive_fast; each 1; max 4; 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/abc-score-calculator-assessment-of-blood-consumption-cb18e560/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)
