65trust / 100

Calc Hfa Icos Bcr Abl

by magent in Security & trust

x402 APIFailing, checked 4 h ago

Lyon 2020 HFA-ICOS baseline cardiovascular risk before second- or third-generation multi-targeted kinase inhibitors for CML targeting BCR-ABL. Class is very_high, high, medium, or low from published very-high and high factors plus Medium 1/2 points (0–1 low, 2–4 medium, ≥5 high). Caller assigns the 10-year CVD >20% threshold; magent does not compute that score. Not a medical device or treatment order.

POST
https://api.magentlab.com/api/calc/hfa_icos_bcr_abl
Price
$0.007
per call in USDC
Uptime
88.6%
last 30 days
Response time
190 ms
1.3 s slowest 5%
Last check
Failed
4 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Latest check failed 4 h ago: Timed out

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://api.magentlab.com/api/calc/hfa_icos_bcr_abl

Each call costs $0.007 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://api.magentlab.com/api/calc/hfa_icos_bcr_abl
content-type: application/json

{
  "items": [
    {
      "abpi_le_0_9": false,
      "age_years": 50,
      "arrhythmia": false,
      "arterial_thrombosis_with_tki": false,
      "arterial_vascular_disease": false,
      "bcr_abl_tki_mediated_lvsd": false,
      "ckd": false,
      "current_or_significant_smoker": false,
      "cvd_10y_risk_gt_20": false,
      "diabetes": false,
      "family_history_thrombophilia": false,
      "heart_failure_or_lvsd": false,
      "hyperlipidemia": false,
      "hypertension": false,
      "lvef_percent": 60,
      "obesity": false,
      "pulmonary_arterial_hypertension": false,
      "qtc_ms": 400,
      "sex": "female",
      "venous_thromboembolism": false
    },
    {
      "abpi_le_0_9": false,
      "age_years": 50,
      "arrhythmia": false,
      "arterial_thrombosis_with_tki": false,
      "arterial_vascular_disease": false,
      "bcr_abl_tki_mediated_lvsd": false,
      "ckd": false,
      "current_or_significant_smoker": false,
      "cvd_10y_risk_gt_20": false,
      "diabetes": false,
      "family_history_thrombophilia": false,
      "heart_failure_or_lvsd": false,
      "hyperlipidemia": false,
      "hypertension": false,
      "lvef_percent": 60,
      "obesity": false,
      "pulmonary_arterial_hypertension": false,
      "qtc_ms": 400,
      "sex": "female",
      "venous_thromboembolism": false
    }
  ]
}

Parameters

ParameterTypeRequiredDescription
itemsarray of objectYes

Example response

The provider's example. We can't check it without paying. Shortened for display.

Example response, 250 lines
{
  "count": 2,
  "items": [
    {
      "age_years": 50,
      "cardiotoxicity_guide": "<2%",
      "citation": {
        "authors": "Lyon AR, Dent S, Stanway S, et al.",
        "doi": "10.1002/ejhf.1920",
        "id": "lyon-2020",
        "pmid": "32458582",
        "source": "Eur J Heart Fail. 2020;22(11):1945-1960",
        "title": "Baseline cardiovascular risk assessment in cancer patients scheduled to receive cardiotoxic cancer therapies: a position statement and new risk assessment tools from the Cardio-Oncology Study Group of the Heart Failure Association of the European Society of Cardiology in collaboration with the International Cardio-Oncology Society"
      },
      "components": [
        {
          "factor": "arterial_vascular_disease",
          "points": 0,
          "present": false
        },
        {
          "factor": "arterial_thrombosis_with_tki",
          "points": 0,
          "present": false
        },
        {
          "factor": "heart_failure_or_lvsd",
          "points": 0,
          "present": false
        },
        {
          "factor": "bcr_abl_tki_mediated_lvsd",
          "points": 0,
          "present": false
        },
        {
          "factor": "abpi_le_0_9",
          "points": 0,
          "present": false
        },
        {
          "factor": "pulmonary_arterial_hypertension",
          "points": 0,
          "present": false
        },
        {
          "factor": "lvef_lt_50",
          "points": 0,
          "present": false
        },
        {
          "factor": "qtc_ge_480",
          "points": 0,
          "present": false
        },
        {
          "factor": "cvd_10y_risk_gt_20",
          "points": 0,
          "present": false
        },
        {
          "factor": "age_ge_75",
          "points": 0,
          "present": false
        },
        {
          "factor": "current_or_significant_smoker",
          "points": 0,
          "present": false
        },
        {
          "factor": "venous_thromboembolism",
          "points": 0,
          "present": false
        },
        {
          "factor": "arrhythmia",
          "points": 0,
          "present": false
        },
        {
          "factor": "borderline_qtc",
          "points": 0,
          "present": false
        },
        {
          "factor": "hypertension",
          "points": 0,
          "present": false
        },
        {
          "factor": "age_65_74",
          "points": 0,
          "present": false
        },
        {
          "factor": "diabetes",
          "points": 0,
          "present": false
        },
        {
          "factor": "hyperlipidemia",
          "points": 0,
          "present": false
        },
        {
          "factor": "age_60_64",
          "points": 0,
          "present": false
        },
        {
          "factor": "ckd",
          "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.",
      "formula": "hfa_icos_bcr_abl",
      "formula_expression": "HFA-ICOS BCR-ABL TKI (Lyon 2020) = very_high if arterial_vascular_disease or arterial_thrombosis_with_tki; else high if any high factor or medium_points>=5; else medium if medium_points 2-4; else low (0 or one M1); medium_points = M2*2 + M1*1 only; High: heart_failure_or_lvsd, bcr_abl_tki_mediated_lvsd, abpi_le_0_9, pulmonary_arterial_hypertension, LVEF<50, QTc>=480, caller cvd_10y_risk_gt_20, age>=75, current_or_significant_smoker; M2: venous_thromboembolism, arrhythmia, borderline QTc (men 450<=QTc<480, women 460<=QTc<480), hypertension, age 65-74; M1: diabetes, hyperlipidemia, age 60-64, ckd, family_history_thrombophilia, obesity; age bands mutually exclusive; no LVEF 50-54 row; magent does not compute 10-year CVD risk",
      "lvef_percent": 60,
      "medium_points": 0,
      "qtc_ms": 400,
      "risk_level": "low",
      "sex": "female"
    },
    {
      "age_years": 50,
      "cardiotoxicity_guide": "<2%",
      "citation": {
        "authors": "Lyon AR, Dent S, Stanway S, et al.",
        "doi": "10.1002/ejhf.1920",
        "id": "lyon-2020",
        "pmid": "32458582",
        "source": "Eur J Heart Fail. 2020;22(11):1945-1960",
        "title": "Baseline cardiovascular risk assessment in cancer patients scheduled to receive cardiotoxic cancer therapies: a position statement and new risk assessment tools from the Cardio-Oncology Study Group of the Heart Failure Association of the European Society of Cardiology in collaboration with the International Cardio-Oncology Society"
      },
      "components": [
        {
          "factor": "arterial_vascular_disease",
          "points": 0,
          "present": false
        },
        {
          "factor": "arterial_thrombosis_with_tki",
          "points": 0,
          "present": false
        },
        {
          "factor": "heart_failure_or_lvsd",
          "points": 0,
          "present": false
        },
        {
          "factor": "bcr_abl_tki_mediated_lvsd",
          "points": 0,
          "present": false
        },
        {
          "factor": "abpi_le_0_9",
          "points": 0,
          "present": false
        },
        {
          "factor": "pulmonary_arterial_hypertension",
          "points": 0,
          "present": false
        },
        {
          "factor": "lvef_lt_50",
          "points": 0,
          "present": false
        },
        {
          "factor": "qtc_ge_480",
          "points": 0,
          "present": false
        },
        {
          "factor": "cvd_10y_risk_gt_20",
          "points": 0,
          "present": false
        },
        {
          "factor": "age_ge_75",
          "points": 0,
          "present": false
        },
        {
          "factor": "current_or_significant_smoker",
          "points": 0,
          "present": false
        },
        {
          "factor": "venous_thromboembolism",
          "points": 0,
          "present": false
        },
        {
          "factor": "arrhythmia",
          "points": 0,
          "present": false
        },
        {
          "factor": "borderline_qtc",
          "points": 0,
          "present": false
        },
        {
          "factor": "hypertension",
          "points": 0,
          "present": false
        },
        {
          "factor": "age_65_74",
          "points": 0,
          "present": false
        },
        {
          "factor": "diabetes",
          "points": 0,
          "present": false
        },
        {
          "factor": "hyperlipidemia",
          "points": 0,
          "present": false
        },
        {
          "factor": "age_60_64",
          "points": 0,
          "present": false
        },
        {
          "factor": "ckd",
          "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.",
      "formula": "hfa_icos_bcr_abl",
      "formula_expression": "HFA-ICOS BCR-ABL TKI (Lyon 2020) = very_high if arterial_vascular_disease or arterial_thrombosis_with_tki; else high if any high factor or medium_points>=5; else medium if medium_points 2-4; else low (0 or one M1); medium_points = M2*2 + M1*1 only; High: heart_failure_or_lvsd, bcr_abl_tki_mediated_lvsd, abpi_le_0_9, pulmonary_arterial_hypertension, LVEF<50, QTc>=480, caller cvd_10y_risk_gt_20, age>=75, current_or_significant_smoker; M2: venous_thromboembolism, arrhythmia, borderline QTc (men 450<=QTc<480, women 460<=QTc<480), hypertension, age 65-74; M1: diabetes, hyperlipidemia, age 60-64, ckd, family_history_thrombophilia, obesity; age bands mutually exclusive; no LVEF 50-54 row; magent does not compute 10-year CVD risk",
      "lvef_percent": 60,
      "medium_points": 0,
      "qtc_ms": 400,
      "risk_level": "low",
      "sex": "female"
    }
  ],
  "path": "/api/calc/hfa_icos_bcr_abl"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.007.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://api.magentlab.com/api/calc/hfa_icos_bcr_abl' \
  -H 'content-type: application/json' \
  --data-raw '{"items":[{"abpi_le_0_9":false,"age_years":50,"arrhythmia":false,"arterial_thrombosis_with_tki":false,"arterial_vascular_disease":false,"bcr_abl_tki_mediated_lvsd":false,"ckd":false,"current_or_significant_smoker":false,"cvd_10y_risk_gt_20":false,"diabetes":false,"family_history_thrombophilia":false,"heart_failure_or_lvsd":false,"hyperlipidemia":false,"hypertension":false,"lvef_percent":60,"obesity":false,"pulmonary_arterial_hypertension":false,"qtc_ms":400,"sex":"female","venous_thromboembolism":false},{"abpi_le_0_9":false,"age_years":50,"arrhythmia":false,"arterial_thrombosis_with_tki":false,"arterial_vascular_disease":false,"bcr_abl_tki_mediated_lvsd":false,"ckd":false,"current_or_significant_smoker":false,"cvd_10y_risk_gt_20":false,"diabetes":false,"family_history_thrombophilia":false,"heart_failure_or_lvsd":false,"hyperlipidemia":false,"hypertension":false,"lvef_percent":60,"obesity":false,"pulmonary_arterial_hypertension":false,"qtc_ms":400,"sex":"female","venous_thromboembolism":false}]}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://api.magentlab.com/api/calc/hfa_icos_bcr_abl' \
  -H 'content-type: application/json' \
  --data-raw '{"items":[{"abpi_le_0_9":false,"age_years":50,"arrhythmia":false,"arterial_thrombosis_with_tki":false,"arterial_vascular_disease":false,"bcr_abl_tki_mediated_lvsd":false,"ckd":false,"current_or_significant_smoker":false,"cvd_10y_risk_gt_20":false,"diabetes":false,"family_history_thrombophilia":false,"heart_failure_or_lvsd":false,"hyperlipidemia":false,"hypertension":false,"lvef_percent":60,"obesity":false,"pulmonary_arterial_hypertension":false,"qtc_ms":400,"sex":"female","venous_thromboembolism":false},{"abpi_le_0_9":false,"age_years":50,"arrhythmia":false,"arterial_thrombosis_with_tki":false,"arterial_vascular_disease":false,"bcr_abl_tki_mediated_lvsd":false,"ckd":false,"current_or_significant_smoker":false,"cvd_10y_risk_gt_20":false,"diabetes":false,"family_history_thrombophilia":false,"heart_failure_or_lvsd":false,"hyperlipidemia":false,"hypertension":false,"lvef_percent":60,"obesity":false,"pulmonary_arterial_hypertension":false,"qtc_ms":400,"sex":"female","venous_thromboembolism":false}]}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.007 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.007" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.007 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.magentlab.com%2Fapi%2Fcalc%2Fhfa_icos_bcr_abl&method=POST
const res = await pay("https://api.magentlab.com/api/calc/hfa_icos_bcr_abl", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "items": [
      {
        "abpi_le_0_9": false,
        "age_years": 50,
        "arrhythmia": false,
        "arterial_thrombosis_with_tki": false,
        "arterial_vascular_disease": false,
        "bcr_abl_tki_mediated_lvsd": false,
        "ckd": false,
        "current_or_significant_smoker": false,
        "cvd_10y_risk_gt_20": false,
        "diabetes": false,
        "family_history_thrombophilia": false,
        "heart_failure_or_lvsd": false,
        "hyperlipidemia": false,
        "hypertension": false,
        "lvef_percent": 60,
        "obesity": false,
        "pulmonary_arterial_hypertension": false,
        "qtc_ms": 400,
        "sex": "female",
        "venous_thromboembolism": false
      },
      {
        "abpi_le_0_9": false,
        "age_years": 50,
        "arrhythmia": false,
        "arterial_thrombosis_with_tki": false,
        "arterial_vascular_disease": false,
        "bcr_abl_tki_mediated_lvsd": false,
        "ckd": false,
        "current_or_significant_smoker": false,
        "cvd_10y_risk_gt_20": false,
        "diabetes": false,
        "family_history_thrombophilia": false,
        "heart_failure_or_lvsd": false,
        "hyperlipidemia": false,
        "hypertension": false,
        "lvef_percent": 60,
        "obesity": false,
        "pulmonary_arterial_hypertension": false,
        "qtc_ms": 400,
        "sex": "female",
        "venous_thromboembolism": false
      }
    ]
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.007 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.007"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://api.magentlab.com/api/calc/hfa_icos_bcr_abl",
        json={
            "items": [
                {
                    "abpi_le_0_9": False,
                    "age_years": 50,
                    "arrhythmia": False,
                    "arterial_thrombosis_with_tki": False,
                    "arterial_vascular_disease": False,
                    "bcr_abl_tki_mediated_lvsd": False,
                    "ckd": False,
                    "current_or_significant_smoker": False,
                    "cvd_10y_risk_gt_20": False,
                    "diabetes": False,
                    "family_history_thrombophilia": False,
                    "heart_failure_or_lvsd": False,
                    "hyperlipidemia": False,
                    "hypertension": False,
                    "lvef_percent": 60,
                    "obesity": False,
                    "pulmonary_arterial_hypertension": False,
                    "qtc_ms": 400,
                    "sex": "female",
                    "venous_thromboembolism": False,
                },
                {
                    "abpi_le_0_9": False,
                    "age_years": 50,
                    "arrhythmia": False,
                    "arterial_thrombosis_with_tki": False,
                    "arterial_vascular_disease": False,
                    "bcr_abl_tki_mediated_lvsd": False,
                    "ckd": False,
                    "current_or_significant_smoker": False,
                    "cvd_10y_risk_gt_20": False,
                    "diabetes": False,
                    "family_history_thrombophilia": False,
                    "heart_failure_or_lvsd": False,
                    "hyperlipidemia": False,
                    "hypertension": False,
                    "lvef_percent": 60,
                    "obesity": False,
                    "pulmonary_arterial_hypertension": False,
                    "qtc_ms": 400,
                    "sex": "female",
                    "venous_thromboembolism": False,
                },
            ],
        },
    )
    print(res.status_code, res.text)

Security scan

1 finding

  • Charges more than its listed price in payment
    Listed at $0.005, charges $0.007

Recent checks

WhenResultHTTPTimePrice
4 h agoTimed out---
10 h agoTimed out---
15 h agoTimed out---
19 h agoTimed out---
24 h agoPassed402492 ms$0.007
Show 10 older checks
29 h agoPassed402309 ms$0.007
34 h agoPassed402190 ms$0.007
38 h agoPassed402185 ms$0.007
43 h agoPassed402186 ms$0.007
47 h agoPassed402196 ms$0.007
2 days agoPassed4021.3 s$0.007
2 days agoPassed402160 ms$0.007
3 days agoPassed402168 ms$0.007
3 days agoPassed402356 ms$0.007
3 days agoPassed402321 ms$0.007

History

11 Oct 2026Price changed from $0.005 to $0.007