{
  "x402Version": 2,
  "id": 38762,
  "slug": "38762",
  "resource": "https://api.magentlab.com/api/calc/t_macs",
  "description": "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.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "ecg_ischaemia": false,
                "hs_ctnt_ng_l": 3,
                "hypotension": false,
                "pain_radiation_right_arm_or_shoulder": false,
                "sweating_observed": false,
                "vomiting": false,
                "worsening_angina": false
              },
              {
                "ecg_ischaemia": false,
                "hs_ctnt_ng_l": 3,
                "hypotension": false,
                "pain_radiation_right_arm_or_shoulder": false,
                "sweating_observed": false,
                "vomiting": false,
                "worsening_angina": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Body R, Carlton E, Sperrin M, et al.",
                  "doi": "10.1136/emermed-2016-205983",
                  "id": "body-2016",
                  "pmid": "27565197",
                  "source": "Emerg Med J. 2017;34(6):349-356",
                  "title": "Troponin-only Manchester Acute Coronary Syndromes (T-MACS) decision aid: single biomarker re-derivation and external validation in three cohorts"
                },
                "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.",
                "ecg_ischaemia": false,
                "formula": "t_macs",
                "formula_expression": "p = 1/(1+e^(-λ)); λ = 1.713*E + 0.847*A + 0.607*R + 1.417*V + 2.058*S + 1.208*H + 0.089*T - 4.766; E ECG ischaemia 0/1; A worsening/crescendo angina 0/1; R right-arm/shoulder radiation 0/1; V vomiting 0/1; S sweating observed 0/1; H hypotension SBP<100 0/1; T Roche Elecsys hs-cTnT ng/L; very_low p<0.02, low 0.02<=p<0.05, moderate 0.05<=p<0.95, high p>=0.95 (Body 2016 rounded coefficients; paper writes 0.02<p<0.05 and 0.05<p<0.95)",
                "hs_ctnt_ng_l": 3,
                "hypotension": false,
                "linear_predictor": -4.499,
                "pain_radiation_right_arm_or_shoulder": false,
                "probability": 0.011,
                "sweating_observed": false,
                "t_macs_band": "very_low",
                "vomiting": false,
                "worsening_angina": false
              },
              {
                "citation": {
                  "authors": "Body R, Carlton E, Sperrin M, et al.",
                  "doi": "10.1136/emermed-2016-205983",
                  "id": "body-2016",
                  "pmid": "27565197",
                  "source": "Emerg Med J. 2017;34(6):349-356",
                  "title": "Troponin-only Manchester Acute Coronary Syndromes (T-MACS) decision aid: single biomarker re-derivation and external validation in three cohorts"
                },
                "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.",
                "ecg_ischaemia": false,
                "formula": "t_macs",
                "formula_expression": "p = 1/(1+e^(-λ)); λ = 1.713*E + 0.847*A + 0.607*R + 1.417*V + 2.058*S + 1.208*H + 0.089*T - 4.766; E ECG ischaemia 0/1; A worsening/crescendo angina 0/1; R right-arm/shoulder radiation 0/1; V vomiting 0/1; S sweating observed 0/1; H hypotension SBP<100 0/1; T Roche Elecsys hs-cTnT ng/L; very_low p<0.02, low 0.02<=p<0.05, moderate 0.05<=p<0.95, high p>=0.95 (Body 2016 rounded coefficients; paper writes 0.02<p<0.05 and 0.05<p<0.95)",
                "hs_ctnt_ng_l": 3,
                "hypotension": false,
                "linear_predictor": -4.499,
                "pain_radiation_right_arm_or_shoulder": false,
                "probability": 0.011,
                "sweating_observed": false,
                "t_macs_band": "very_low",
                "vomiting": false,
                "worsening_angina": false
              }
            ],
            "path": "/api/calc/t_macs"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "ecg_ischaemia": {
                          "description": "Caller-assigned ECG ischaemia as used in Body 2016 (E; 1 if true, 0 if false). magent does not interpret an ECG.",
                          "type": "boolean"
                        },
                        "hs_ctnt_ng_l": {
                          "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.",
                          "type": "number"
                        },
                        "hypotension": {
                          "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.",
                          "type": "boolean"
                        },
                        "pain_radiation_right_arm_or_shoulder": {
                          "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.",
                          "type": "boolean"
                        },
                        "sweating_observed": {
                          "description": "Sweating observed by the treating clinician as assigned by the caller (S; Body 2016). true or false. magent does not examine the patient.",
                          "type": "boolean"
                        },
                        "vomiting": {
                          "description": "Vomiting in association with the presenting symptoms as assigned by the caller (V; Body 2016). true or false.",
                          "type": "boolean"
                        },
                        "worsening_angina": {
                          "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.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ecg_ischaemia",
                        "worsening_angina",
                        "pain_radiation_right_arm_or_shoulder",
                        "vomiting",
                        "sweating_observed",
                        "hypotension",
                        "hs_ctnt_ng_l"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "t-macs",
    "acs",
    "chest-pain",
    "troponin",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T08:41:30.931Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T08:41:30.679Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "ecg_ischaemia": false,
                  "hs_ctnt_ng_l": 3,
                  "hypotension": false,
                  "pain_radiation_right_arm_or_shoulder": false,
                  "sweating_observed": false,
                  "vomiting": false,
                  "worsening_angina": false
                },
                {
                  "ecg_ischaemia": false,
                  "hs_ctnt_ng_l": 3,
                  "hypotension": false,
                  "pain_radiation_right_arm_or_shoulder": false,
                  "sweating_observed": false,
                  "vomiting": false,
                  "worsening_angina": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Body R, Carlton E, Sperrin M, et al.",
                    "doi": "10.1136/emermed-2016-205983",
                    "id": "body-2016",
                    "pmid": "27565197",
                    "source": "Emerg Med J. 2017;34(6):349-356",
                    "title": "Troponin-only Manchester Acute Coronary Syndromes (T-MACS) decision aid: single biomarker re-derivation and external validation in three cohorts"
                  },
                  "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.",
                  "ecg_ischaemia": false,
                  "formula": "t_macs",
                  "formula_expression": "p = 1/(1+e^(-λ)); λ = 1.713*E + 0.847*A + 0.607*R + 1.417*V + 2.058*S + 1.208*H + 0.089*T - 4.766; E ECG ischaemia 0/1; A worsening/crescendo angina 0/1; R right-arm/shoulder radiation 0/1; V vomiting 0/1; S sweating observed 0/1; H hypotension SBP<100 0/1; T Roche Elecsys hs-cTnT ng/L; very_low p<0.02, low 0.02<=p<0.05, moderate 0.05<=p<0.95, high p>=0.95 (Body 2016 rounded coefficients; paper writes 0.02<p<0.05 and 0.05<p<0.95)",
                  "hs_ctnt_ng_l": 3,
                  "hypotension": false,
                  "linear_predictor": -4.499,
                  "pain_radiation_right_arm_or_shoulder": false,
                  "probability": 0.011,
                  "sweating_observed": false,
                  "t_macs_band": "very_low",
                  "vomiting": false,
                  "worsening_angina": false
                },
                {
                  "citation": {
                    "authors": "Body R, Carlton E, Sperrin M, et al.",
                    "doi": "10.1136/emermed-2016-205983",
                    "id": "body-2016",
                    "pmid": "27565197",
                    "source": "Emerg Med J. 2017;34(6):349-356",
                    "title": "Troponin-only Manchester Acute Coronary Syndromes (T-MACS) decision aid: single biomarker re-derivation and external validation in three cohorts"
                  },
                  "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.",
                  "ecg_ischaemia": false,
                  "formula": "t_macs",
                  "formula_expression": "p = 1/(1+e^(-λ)); λ = 1.713*E + 0.847*A + 0.607*R + 1.417*V + 2.058*S + 1.208*H + 0.089*T - 4.766; E ECG ischaemia 0/1; A worsening/crescendo angina 0/1; R right-arm/shoulder radiation 0/1; V vomiting 0/1; S sweating observed 0/1; H hypotension SBP<100 0/1; T Roche Elecsys hs-cTnT ng/L; very_low p<0.02, low 0.02<=p<0.05, moderate 0.05<=p<0.95, high p>=0.95 (Body 2016 rounded coefficients; paper writes 0.02<p<0.05 and 0.05<p<0.95)",
                  "hs_ctnt_ng_l": 3,
                  "hypotension": false,
                  "linear_predictor": -4.499,
                  "pain_radiation_right_arm_or_shoulder": false,
                  "probability": 0.011,
                  "sweating_observed": false,
                  "t_macs_band": "very_low",
                  "vomiting": false,
                  "worsening_angina": false
                }
              ],
              "path": "/api/calc/t_macs"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "ecg_ischaemia": {
                            "description": "Caller-assigned ECG ischaemia as used in Body 2016 (E; 1 if true, 0 if false). magent does not interpret an ECG.",
                            "type": "boolean"
                          },
                          "hs_ctnt_ng_l": {
                            "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.",
                            "type": "number"
                          },
                          "hypotension": {
                            "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.",
                            "type": "boolean"
                          },
                          "pain_radiation_right_arm_or_shoulder": {
                            "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.",
                            "type": "boolean"
                          },
                          "sweating_observed": {
                            "description": "Sweating observed by the treating clinician as assigned by the caller (S; Body 2016). true or false. magent does not examine the patient.",
                            "type": "boolean"
                          },
                          "vomiting": {
                            "description": "Vomiting in association with the presenting symptoms as assigned by the caller (V; Body 2016). true or false.",
                            "type": "boolean"
                          },
                          "worsening_angina": {
                            "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.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "ecg_ischaemia",
                          "worsening_angina",
                          "pain_radiation_right_arm_or_shoulder",
                          "vomiting",
                          "sweating_observed",
                          "hypotension",
                          "hs_ctnt_ng_l"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}