# magent HEP Score Calculator (Cuker 2010)

> magent HEP Score Calculator (Cuker 2010) 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-13).

Computes the Cuker 2010 HEP (Heparin-induced thrombocytopenia Expert Probability) score from eight weighted clinical features to estimate pre-test probability of HIT.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/hep
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-hep-score-calculator-cuker-2010-52c3dcde
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_PnXuNjL-peymPlKDHKXVM

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 magent-hep-score-calculator-cuker-2010-52c3dcde
```

Example prompt: Calculate the Cuker 2010 HEP score for a patient with a platelet fall greater than 50% (magnitude gt_50), typical onset on days 5–10 (timing typical_5_10), nadir above 20×10^9/L (nadir gt_20), new thrombosis present, no skin necrosis, no systemic reaction, no bleeding, and no other identified causes (no_other_cause true).

## When to prefer this

Use this endpoint when you need to compute the Cuker 2010 HEP score specifically — an eight-feature weighted model distinct from the 4Ts score. Prefer it over manual lookup when integrating clinical decision support into an automated workflow, EHR pipeline, or agent that has already extracted the required clinical features. Not appropriate as a substitute for SRA/ELISA laboratory testing or as a standalone HIT diagnosis.

## Known failure modes

- Missing required query parameters (magnitude, timing, nadir, thrombosis, etc.) returns a 400 error
- Invalid enum values for magnitude, timing, or nadir return a validation error
- Mutually exclusive flags set simultaneously (e.g. cpb_96h true and no_other_cause true) may produce an error or undefined score
- Network timeout or upstream unavailability returns 5xx
- Payment not provided or insufficient USDC balance returns 402

## How this service works

Cuker 2010 HEP score: eight features with signed weights (range -16 to 19). Magnitude of platelet fall, typical- or rapid-onset timing, nadir, thrombosis (at most one), SQ heparin skin necrosis, IV-bolus systemic reaction, bleeding, and other causes (select all; no other cause +3). Cutoff 2 was 100% sensitive / 60% specific vs the expert panel. Not a HIT diagnosis or 4Ts score. magent does not assay SRA or ELISA.

## Output

Returns an integer HEP score (range -16 to 19) along with per-feature signed weight contributions. A score ≥2 meets the cutoff associated with 100% sensitivity and ~60% specificity against expert panel diagnosis. The result is a pre-test probability stratifier, not a HIT diagnosis; it does not include SRA or ELISA results.

## 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": [
      "magnitude",
      "timing",
      "nadir",
      "thrombosis",
      "skin_necrosis",
      "systemic_reaction",
      "bleeding",
      "chronic_thrombocytopenia",
      "new_drug_thrombocytopenia",
      "severe_infection",
      "overt_dic",
      "intra_arterial_device",
      "cpb_96h",
      "no_other_cause"
     ],
     "properties": {
      "nadir": {
       "type": "string",
       "description": "Caller-assigned Cuker 2010 nadir platelet count. le_20 (≤20 ×10^9/L) scores -2; gt_20 (>20 ×10^9/L) scores 2. magent does not take a raw platelet count."
      },
      "timing": {
       "type": "string",
       "description": "Caller-assigned Cuker 2010 timing. Typical-onset: typical_lt_4 (fall begins <4 days) -2; typical_day_4 (day 4) 2; typical_5_10 (days 5-10) 3; typical_11_14 (days 11-14) 2; typical_gt_14 (>14 days) -1. Rapid-onset after re-exposure within 100 days: rapid_lt_48h (<48 h) 2; rapid_gt_48h (>48 h) -1. magent does not infer day of onset."
      },
      "cpb_96h": {
       "type": "boolean",
       "description": "Cardiopulmonary bypass within the previous 96 hours (Cuker 2010). true scores -1. Mutually exclusive with no_other_cause true."
      },
      "bleeding": {
       "type": "boolean",
       "description": "Presence of bleeding, petechiae, or extensive bruising (Cuker 2010). true scores -1; false scores 0."
      },
      "magnitude": {
       "type": "string",
       "description": "Caller-assigned Cuker 2010 magnitude of platelet fall (peak to nadir since heparin exposure). lt_30 (<30%) scores -1; 30_to_50 (30-50%) scores 1; gt_50 (>50%) scores 3. magent does not grade platelet counts."
      },
      "overt_dic": {
       "type": "boolean",
       "description": "Overt DIC as assigned by the caller (Cuker 2010: fibrinogen <100 mg/dL and D-dimer >5.0 μg/mL). true scores -2. magent does not assay fibrinogen or D-dimer. Mutually exclusive with no_other_cause
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-hep-score-calculator-cuker-2010-52c3dcde/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)
