# magent T-MACS ACS Probability Calculator

> magent T-MACS ACS Probability 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-16).

Computes the 2016 Body T-MACS logistic probability of acute coronary syndrome from caller-assigned clinical variables and high-sensitivity troponin T, returning a probability and risk band.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/t_macs
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-t-macs-acs-probability-calculator-ac9ae711
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RiuDSKQi7TAMr32oeuZDj

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-t-macs-acs-probability-calculator-ac9ae711
```

Example prompt: Calculate the T-MACS ACS probability for a patient with no ECG ischaemia, no worsening angina, no right-arm radiation, no vomiting, sweating observed, no hypotension, and a Roche Elecsys hs-cTnT of 18 ng/L — what risk band does that give?

## When to prefer this

Use this endpoint when you need to apply the Body 2016 T-MACS (troponin-only MACS) logistic rule specifically — it is distinct from the original MACS, HEART, EDACS, and Vancouver rules. Choose it when the caller has already assigned ECG ischaemia status and clinical signs, and when a Roche Elecsys hs-cTnT value in ng/L is available. Not appropriate as a substitute for HEART score, EDACS, or Vancouver chest pain rule calculations.

## Known failure modes

- Missing any required query parameter (ecg_ischaemia, worsening_angina, pain_radiation_right_arm_or_shoulder, vomiting, sweating_observed, hypotension, hs_ctnt_ng_l) returns a validation error
- hs_ctnt_ng_l outside supported numeric range is clamped at 0–100000; non-numeric values cause an error
- Boolean parameters passed as strings rather than true/false JSON booleans may cause parse errors
- Service may return 402 if payment header is not provided or USDC balance is insufficient

## How this service works

Body 2016 T-MACS logistic ACS probability from caller-assigned ECG ischaemia, worsening angina, right-arm radiation, vomiting, observed sweating, hypotension (SBP <100), and Roche Elecsys hs-cTnT ng/L. Uses that paper's rounded coefficients. Bands p<0.02 very_low, 0.02<=p<0.05 low, 0.05<=p<0.95 moderate, p>=0.95 high. magent does not interpret ECG or assay troponin. Not original MACS, HEART, EDACS, or Vancouver. Not a diagnosis or medical device.

## Output

Returns a numeric ACS probability (0 to 1) computed from Body 2016 T-MACS logistic regression coefficients, plus a categorical risk band: very_low (p<0.02), low (0.02≤p<0.05), moderate (0.05≤p<0.95), or high (p≥0.95).

## 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": [
      "ecg_ischaemia",
      "worsening_angina",
      "pain_radiation_right_arm_or_shoulder",
      "vomiting",
      "sweating_observed",
      "hypotension",
      "hs_ctnt_ng_l"
     ],
     "properties": {
      "vomiting": {
       "type": "boolean",
       "description": "Vomiting in association with the presenting symptoms as assigned by the caller (V; Body 2016). true or false."
      },
      "hypotension": {
       "type": "boolean",
       "description": "Hypotension as assigned by the caller (H): systolic BP <100 mm Hg on arrival (Body 2016, dichotomised as in that paper). true or false."
      },
      "hs_ctnt_ng_l": {
       "type": "number",
       "description": "Roche Diagnostics Elecsys high-sensitivity cardiac troponin T on arrival in ng/L (T; 0-100000, implementation clamp). Continuous linear predictor in Body 2016. magent does not convert units or assay troponin."
      },
      "ecg_ischaemia": {
       "type": "boolean",
       "description": "Caller-assigned ECG ischaemia as used in Body 2016 (E; 1 if true, 0 if false). magent does not interpret an ECG."
      },
      "worsening_angina": {
       "type": "boolean",
       "description": "Worsening or crescendo angina as assigned by the caller (A): anginal pain with increasing frequency, occurring with less exertion, or becoming more prolonged (Body 2016). true or false."
      },
      "sweating_observed": {
       "type": "boolean",
       "description": "Sweating observed by the treating clinician as assigned by the caller (S; Body 2016). true or false. magent does not examine the patient."
      },
      "pain_radiation_right_arm_or_shoulder": {
       "type": "boolean",
       "description": "Pain radiating to the right arm or shoulder as assigned by the caller (R; Body 2016). true or false. magent does not take a pain history."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "ty
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-t-macs-acs-probability-calculator-ac9ae711/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)
