{
  "x402Version": 2,
  "id": 39052,
  "slug": "39052",
  "resource": "https://api.magentlab.com/api/calc/macs",
  "description": "Body 2014 MACS ACS probability from caller-assigned ECG ischaemia, worsening angina, right-arm radiation, vomiting, observed sweating, hypotension (SBP <100), Roche hs-cTnT ng/L, and ELISA H-FABP ng/mL. Table 2 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 biomarkers. Not T-MACS, HEART, or EDACS. Not a diagnosis.",
  "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,
                "h_fabp_ng_ml": 1,
                "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,
                "h_fabp_ng_ml": 1,
                "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, Carley S, McDowell G, et al.",
                  "doi": "10.1136/heartjnl-2014-305564",
                  "id": "body-2014",
                  "pmid": "24780911",
                  "source": "Heart. 2014;100(18):1462-1468",
                  "title": "The Manchester Acute Coronary Syndromes (MACS) decision rule for suspected cardiac chest pain: derivation and external validation"
                },
                "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": "macs",
                "formula_expression": "p = 1/(1+e^(-λ)); λ = 0.068*a + 0.17*b + 1.75*c + 1.85*d + 1.72*e + 1.46*f + 0.92*g + 0.87*h - 4.83; a Roche Elecsys hs-cTnT ng/L; b ELISA H-FABP ng/mL; c ECG ischaemia 0/1; d sweating observed 0/1; e vomiting 0/1; f hypotension SBP<100 0/1; g worsening angina 0/1; h right-arm/shoulder radiation 0/1; very_low p<0.02, low 0.02<=p<0.05, moderate 0.05<=p<0.95, high p>=0.95 (Body 2014 Table 2 rounded values)",
                "h_fabp_ng_ml": 1,
                "hs_ctnt_ng_l": 3,
                "hypotension": false,
                "linear_predictor": -4.456,
                "macs_band": "very_low",
                "pain_radiation_right_arm_or_shoulder": false,
                "probability": 0.0115,
                "sweating_observed": false,
                "vomiting": false,
                "worsening_angina": false
              },
              {
                "citation": {
                  "authors": "Body R, Carley S, McDowell G, et al.",
                  "doi": "10.1136/heartjnl-2014-305564",
                  "id": "body-2014",
                  "pmid": "24780911",
                  "source": "Heart. 2014;100(18):1462-1468",
                  "title": "The Manchester Acute Coronary Syndromes (MACS) decision rule for suspected cardiac chest pain: derivation and external validation"
                },
                "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": "macs",
                "formula_expression": "p = 1/(1+e^(-λ)); λ = 0.068*a + 0.17*b + 1.75*c + 1.85*d + 1.72*e + 1.46*f + 0.92*g + 0.87*h - 4.83; a Roche Elecsys hs-cTnT ng/L; b ELISA H-FABP ng/mL; c ECG ischaemia 0/1; d sweating observed 0/1; e vomiting 0/1; f hypotension SBP<100 0/1; g worsening angina 0/1; h right-arm/shoulder radiation 0/1; very_low p<0.02, low 0.02<=p<0.05, moderate 0.05<=p<0.95, high p>=0.95 (Body 2014 Table 2 rounded values)",
                "h_fabp_ng_ml": 1,
                "hs_ctnt_ng_l": 3,
                "hypotension": false,
                "linear_predictor": -4.456,
                "macs_band": "very_low",
                "pain_radiation_right_arm_or_shoulder": false,
                "probability": 0.0115,
                "sweating_observed": false,
                "vomiting": false,
                "worsening_angina": false
              }
            ],
            "path": "/api/calc/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 2014 (c; 1 if true, 0 if false). magent does not interpret an ECG.",
                          "type": "boolean"
                        },
                        "h_fabp_ng_ml": {
                          "description": "Heart-type fatty acid-binding protein by ELISA in ng/mL as in Body 2014 (b; 0-200, implementation clamp). Continuous linear predictor. magent does not convert units, assay H-FABP, or apply the later immunoturbidimetric transform.",
                          "type": "number"
                        },
                        "hs_ctnt_ng_l": {
                          "description": "Roche Diagnostics Elecsys high-sensitivity cardiac troponin T on arrival in ng/L (a; 0-100000, implementation clamp). Continuous linear predictor in Body 2014 Table 2. magent does not convert units or assay troponin.",
                          "type": "number"
                        },
                        "hypotension": {
                          "description": "Hypotension as assigned by the caller (f): systolic BP <100 mm Hg on arrival (Body 2014, 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 (h; Body 2014). 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 (d; Body 2014). 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 (e; Body 2014). true or false.",
                          "type": "boolean"
                        },
                        "worsening_angina": {
                          "description": "Worsening or crescendo angina as assigned by the caller (g): anginal pain with increasing frequency, occurring with less exertion, or becoming more prolonged (Body 2014). true or false.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ecg_ischaemia",
                        "worsening_angina",
                        "pain_radiation_right_arm_or_shoulder",
                        "vomiting",
                        "sweating_observed",
                        "hypotension",
                        "hs_ctnt_ng_l",
                        "h_fabp_ng_ml"
                      ],
                      "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": [
    "macs",
    "acs",
    "chest-pain",
    "h-fabp",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T08:06:29.049Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T08:06:28.891Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "ecg_ischaemia": false,
                  "h_fabp_ng_ml": 1,
                  "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,
                  "h_fabp_ng_ml": 1,
                  "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, Carley S, McDowell G, et al.",
                    "doi": "10.1136/heartjnl-2014-305564",
                    "id": "body-2014",
                    "pmid": "24780911",
                    "source": "Heart. 2014;100(18):1462-1468",
                    "title": "The Manchester Acute Coronary Syndromes (MACS) decision rule for suspected cardiac chest pain: derivation and external validation"
                  },
                  "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": "macs",
                  "formula_expression": "p = 1/(1+e^(-λ)); λ = 0.068*a + 0.17*b + 1.75*c + 1.85*d + 1.72*e + 1.46*f + 0.92*g + 0.87*h - 4.83; a Roche Elecsys hs-cTnT ng/L; b ELISA H-FABP ng/mL; c ECG ischaemia 0/1; d sweating observed 0/1; e vomiting 0/1; f hypotension SBP<100 0/1; g worsening angina 0/1; h right-arm/shoulder radiation 0/1; very_low p<0.02, low 0.02<=p<0.05, moderate 0.05<=p<0.95, high p>=0.95 (Body 2014 Table 2 rounded values)",
                  "h_fabp_ng_ml": 1,
                  "hs_ctnt_ng_l": 3,
                  "hypotension": false,
                  "linear_predictor": -4.456,
                  "macs_band": "very_low",
                  "pain_radiation_right_arm_or_shoulder": false,
                  "probability": 0.0115,
                  "sweating_observed": false,
                  "vomiting": false,
                  "worsening_angina": false
                },
                {
                  "citation": {
                    "authors": "Body R, Carley S, McDowell G, et al.",
                    "doi": "10.1136/heartjnl-2014-305564",
                    "id": "body-2014",
                    "pmid": "24780911",
                    "source": "Heart. 2014;100(18):1462-1468",
                    "title": "The Manchester Acute Coronary Syndromes (MACS) decision rule for suspected cardiac chest pain: derivation and external validation"
                  },
                  "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": "macs",
                  "formula_expression": "p = 1/(1+e^(-λ)); λ = 0.068*a + 0.17*b + 1.75*c + 1.85*d + 1.72*e + 1.46*f + 0.92*g + 0.87*h - 4.83; a Roche Elecsys hs-cTnT ng/L; b ELISA H-FABP ng/mL; c ECG ischaemia 0/1; d sweating observed 0/1; e vomiting 0/1; f hypotension SBP<100 0/1; g worsening angina 0/1; h right-arm/shoulder radiation 0/1; very_low p<0.02, low 0.02<=p<0.05, moderate 0.05<=p<0.95, high p>=0.95 (Body 2014 Table 2 rounded values)",
                  "h_fabp_ng_ml": 1,
                  "hs_ctnt_ng_l": 3,
                  "hypotension": false,
                  "linear_predictor": -4.456,
                  "macs_band": "very_low",
                  "pain_radiation_right_arm_or_shoulder": false,
                  "probability": 0.0115,
                  "sweating_observed": false,
                  "vomiting": false,
                  "worsening_angina": false
                }
              ],
              "path": "/api/calc/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 2014 (c; 1 if true, 0 if false). magent does not interpret an ECG.",
                            "type": "boolean"
                          },
                          "h_fabp_ng_ml": {
                            "description": "Heart-type fatty acid-binding protein by ELISA in ng/mL as in Body 2014 (b; 0-200, implementation clamp). Continuous linear predictor. magent does not convert units, assay H-FABP, or apply the later immunoturbidimetric transform.",
                            "type": "number"
                          },
                          "hs_ctnt_ng_l": {
                            "description": "Roche Diagnostics Elecsys high-sensitivity cardiac troponin T on arrival in ng/L (a; 0-100000, implementation clamp). Continuous linear predictor in Body 2014 Table 2. magent does not convert units or assay troponin.",
                            "type": "number"
                          },
                          "hypotension": {
                            "description": "Hypotension as assigned by the caller (f): systolic BP <100 mm Hg on arrival (Body 2014, 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 (h; Body 2014). 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 (d; Body 2014). 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 (e; Body 2014). true or false.",
                            "type": "boolean"
                          },
                          "worsening_angina": {
                            "description": "Worsening or crescendo angina as assigned by the caller (g): anginal pain with increasing frequency, occurring with less exertion, or becoming more prolonged (Body 2014). true or false.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "ecg_ischaemia",
                          "worsening_angina",
                          "pain_radiation_right_arm_or_shoulder",
                          "vomiting",
                          "sweating_observed",
                          "hypotension",
                          "hs_ctnt_ng_l",
                          "h_fabp_ng_ml"
                        ],
                        "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"
  }
}