Calc Hfa Icos Anthracycline
by magent in Security & trust
Lyon 2020 HFA-ICOS baseline cardiovascular risk before anthracycline chemotherapy. Returns risk_level low, medium, high, or very_high from published Very high, High, Medium 2, and Medium 1 factors, plus medium_points and the paper's expert-opinion cardiotoxicity_guide. Age and LVEF use the highest matching printed band only. Caller assigns labs and BMI >30. magent does not examine the patient or read imaging. Not a medical device or treatment order.
https://api.magentlab.com/api/calc/hfa_icos_anthracycline- Price
- $0.007
- per call in USDC
- Uptime
- 88.9%
- last 30 days
- Response time
- 209 ms
- 502 ms slowest 5%
- Last check
- Failed
- 17 min ago, next in 38 min
Reliability
Latest check failed 17 min 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_anthracycline
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_anthracycline
content-type: application/json
{
"items": [
{
"age_years": 50,
"ckd": false,
"current_or_significant_smoker": false,
"diabetes": false,
"elevated_bnp": false,
"elevated_troponin": false,
"heart_failure_or_cardiomyopathy": false,
"hypertension": false,
"lvef_percent": 60,
"mi_or_coronary_revascularization": false,
"obesity": false,
"previous_anthracycline": false,
"previous_non_anthracycline_chemo": false,
"prior_left_chest_or_mediastinal_rt": false,
"severe_valvular_heart_disease": false,
"stable_angina": false
},
{
"age_years": 50,
"ckd": false,
"current_or_significant_smoker": false,
"diabetes": false,
"elevated_bnp": false,
"elevated_troponin": false,
"heart_failure_or_cardiomyopathy": false,
"hypertension": false,
"lvef_percent": 60,
"mi_or_coronary_revascularization": false,
"obesity": false,
"previous_anthracycline": false,
"previous_non_anthracycline_chemo": false,
"prior_left_chest_or_mediastinal_rt": false,
"severe_valvular_heart_disease": false,
"stable_angina": false
}
]
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
items | array of object | Yes |
Example response
The provider's example. We can't check it without paying.
Example response, 242 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": "heart_failure_or_cardiomyopathy",
"points": 0,
"present": false,
"tier": "very_high"
},
{
"factor": "severe_valvular_heart_disease",
"points": 0,
"present": false,
"tier": "high"
},
{
"factor": "mi_or_coronary_revascularization",
"points": 0,
"present": false,
"tier": "high"
},
{
"factor": "stable_angina",
"points": 0,
"present": false,
"tier": "high"
},
{
"factor": "previous_anthracycline",
"points": 0,
"present": false,
"tier": "high"
},
{
"factor": "prior_left_chest_or_mediastinal_rt",
"points": 0,
"present": false,
"tier": "high"
},
{
"factor": "elevated_troponin",
"points": 0,
"present": false,
"tier": "medium_1"
},
{
"factor": "elevated_bnp",
"points": 0,
"present": false,
"tier": "medium_1"
},
{
"factor": "hypertension",
"points": 0,
"present": false,
"tier": "medium_1"
},
{
"factor": "diabetes",
"points": 0,
"present": false,
"tier": "medium_1"
},
{
"factor": "ckd",
"points": 0,
"present": false,
"tier": "medium_1"
},
{
"factor": "previous_non_anthracycline_chemo",
"points": 0,
"present": false,
"tier": "medium_1"
},
{
"factor": "current_or_significant_smoker",
"points": 0,
"present": false,
"tier": "medium_1"
},
{
"factor": "obesity",
"points": 0,
"present": false,
"tier": "medium_1"
},
{
"factor": "age_years",
"points": 0,
"present": false,
"tier": "none",
"value": 50
},
{
"factor": "lvef_percent",
"points": 0,
"present": false,
"tier": "none",
"value": 60
}
],
"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_anthracycline",
"formula_expression": "very_high if heart_failure_or_cardiomyopathy; else high if any High factor (severe_valvular_heart_disease, mi_or_coronary_revascularization, stable_angina, lvef_percent<50, age_years>=80, previous_anthracycline, prior_left_chest_or_mediastinal_rt) OR medium_points>=5; else medium if medium_points in 2..4; else low (no factors or one Medium 1). medium_points sums Medium 1 (=1: elevated_troponin, elevated_bnp, hypertension, diabetes, ckd, previous_non_anthracycline_chemo, current_or_significant_smoker, obesity) and Medium 2 (=2: lvef_percent 50-54, age_years 65-79) only. Age and LVEF use the highest matching printed band. Lyon 2020 HFA-ICOS anthracycline table. cardiotoxicity_guide is that paper's expert-opinion guide: low <2%, medium 2-9%, high 10-19%, very high >=20%",
"lvef_percent": 60,
"medium_points": 0,
"risk_level": "low"
},
{
"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": "heart_failure_or_cardiomyopathy",
"points": 0,
"present": false,
"tier": "very_high"
},
{
"factor": "severe_valvular_heart_disease",
"points": 0,
"present": false,
"tier": "high"
},
{
"factor": "mi_or_coronary_revascularization",
"points": 0,
"present": false,
"tier": "high"
},
{
"factor": "stable_angina",
"points": 0,
"present": false,
"tier": "high"
},
{
"factor": "previous_anthracycline",
"points": 0,
"present": false,
"tier": "high"
},
{
"factor": "prior_left_chest_or_mediastinal_rt",
"points": 0,
"present": false,
"tier": "high"
},
{
"factor": "elevated_troponin",
"points": 0,
"present": false,
"tier": "medium_1"
},
{
"factor": "elevated_bnp",
"points": 0,
"present": false,
"tier": "medium_1"
},
{
"factor": "hypertension",
"points": 0,
"present": false,
"tier": "medium_1"
},
{
"factor": "diabetes",
"points": 0,
"present": false,
"tier": "medium_1"
},
{
"factor": "ckd",
"points": 0,
"present": false,
"tier": "medium_1"
},
{
"factor": "previous_non_anthracycline_chemo",
"points": 0,
"present": false,
"tier": "medium_1"
},
{
"factor": "current_or_significant_smoker",
"points": 0,
"present": false,
"tier": "medium_1"
},
{
"factor": "obesity",
"points": 0,
"present": false,
"tier": "medium_1"
},
{
"factor": "age_years",
"points": 0,
"present": false,
"tier": "none",
"value": 50
},
{
"factor": "lvef_percent",
"points": 0,
"present": false,
"tier": "none",
"value": 60
}
],
"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_anthracycline",
"formula_expression": "very_high if heart_failure_or_cardiomyopathy; else high if any High factor (severe_valvular_heart_disease, mi_or_coronary_revascularization, stable_angina, lvef_percent<50, age_years>=80, previous_anthracycline, prior_left_chest_or_mediastinal_rt) OR medium_points>=5; else medium if medium_points in 2..4; else low (no factors or one Medium 1). medium_points sums Medium 1 (=1: elevated_troponin, elevated_bnp, hypertension, diabetes, ckd, previous_non_anthracycline_chemo, current_or_significant_smoker, obesity) and Medium 2 (=2: lvef_percent 50-54, age_years 65-79) only. Age and LVEF use the highest matching printed band. Lyon 2020 HFA-ICOS anthracycline table. cardiotoxicity_guide is that paper's expert-opinion guide: low <2%, medium 2-9%, high 10-19%, very high >=20%",
"lvef_percent": 60,
"medium_points": 0,
"risk_level": "low"
}
],
"path": "/api/calc/hfa_icos_anthracycline"
}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_anthracycline' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"age_years":50,"ckd":false,"current_or_significant_smoker":false,"diabetes":false,"elevated_bnp":false,"elevated_troponin":false,"heart_failure_or_cardiomyopathy":false,"hypertension":false,"lvef_percent":60,"mi_or_coronary_revascularization":false,"obesity":false,"previous_anthracycline":false,"previous_non_anthracycline_chemo":false,"prior_left_chest_or_mediastinal_rt":false,"severe_valvular_heart_disease":false,"stable_angina":false},{"age_years":50,"ckd":false,"current_or_significant_smoker":false,"diabetes":false,"elevated_bnp":false,"elevated_troponin":false,"heart_failure_or_cardiomyopathy":false,"hypertension":false,"lvef_percent":60,"mi_or_coronary_revascularization":false,"obesity":false,"previous_anthracycline":false,"previous_non_anthracycline_chemo":false,"prior_left_chest_or_mediastinal_rt":false,"severe_valvular_heart_disease":false,"stable_angina":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_anthracycline' \
-H 'content-type: application/json' \
--data-raw '{"items":[{"age_years":50,"ckd":false,"current_or_significant_smoker":false,"diabetes":false,"elevated_bnp":false,"elevated_troponin":false,"heart_failure_or_cardiomyopathy":false,"hypertension":false,"lvef_percent":60,"mi_or_coronary_revascularization":false,"obesity":false,"previous_anthracycline":false,"previous_non_anthracycline_chemo":false,"prior_left_chest_or_mediastinal_rt":false,"severe_valvular_heart_disease":false,"stable_angina":false},{"age_years":50,"ckd":false,"current_or_significant_smoker":false,"diabetes":false,"elevated_bnp":false,"elevated_troponin":false,"heart_failure_or_cardiomyopathy":false,"hypertension":false,"lvef_percent":60,"mi_or_coronary_revascularization":false,"obesity":false,"previous_anthracycline":false,"previous_non_anthracycline_chemo":false,"prior_left_chest_or_mediastinal_rt":false,"severe_valvular_heart_disease":false,"stable_angina":false}]}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: 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_anthracycline&method=POST
const res = await pay("https://api.magentlab.com/api/calc/hfa_icos_anthracycline", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"items": [
{
"age_years": 50,
"ckd": false,
"current_or_significant_smoker": false,
"diabetes": false,
"elevated_bnp": false,
"elevated_troponin": false,
"heart_failure_or_cardiomyopathy": false,
"hypertension": false,
"lvef_percent": 60,
"mi_or_coronary_revascularization": false,
"obesity": false,
"previous_anthracycline": false,
"previous_non_anthracycline_chemo": false,
"prior_left_chest_or_mediastinal_rt": false,
"severe_valvular_heart_disease": false,
"stable_angina": false
},
{
"age_years": 50,
"ckd": false,
"current_or_significant_smoker": false,
"diabetes": false,
"elevated_bnp": false,
"elevated_troponin": false,
"heart_failure_or_cardiomyopathy": false,
"hypertension": false,
"lvef_percent": 60,
"mi_or_coronary_revascularization": false,
"obesity": false,
"previous_anthracycline": false,
"previous_non_anthracycline_chemo": false,
"prior_left_chest_or_mediastinal_rt": false,
"severe_valvular_heart_disease": false,
"stable_angina": 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_anthracycline",
json={
"items": [
{
"age_years": 50,
"ckd": False,
"current_or_significant_smoker": False,
"diabetes": False,
"elevated_bnp": False,
"elevated_troponin": False,
"heart_failure_or_cardiomyopathy": False,
"hypertension": False,
"lvef_percent": 60,
"mi_or_coronary_revascularization": False,
"obesity": False,
"previous_anthracycline": False,
"previous_non_anthracycline_chemo": False,
"prior_left_chest_or_mediastinal_rt": False,
"severe_valvular_heart_disease": False,
"stable_angina": False,
},
{
"age_years": 50,
"ckd": False,
"current_or_significant_smoker": False,
"diabetes": False,
"elevated_bnp": False,
"elevated_troponin": False,
"heart_failure_or_cardiomyopathy": False,
"hypertension": False,
"lvef_percent": 60,
"mi_or_coronary_revascularization": False,
"obesity": False,
"previous_anthracycline": False,
"previous_non_anthracycline_chemo": False,
"prior_left_chest_or_mediastinal_rt": False,
"severe_valvular_heart_disease": False,
"stable_angina": 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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 17 min ago | Timed out | - | - | - |
| 6 h ago | Timed out | - | - | - |
| 11 h ago | Timed out | - | - | - |
| 16 h ago | Timed out | - | - | - |
| 20 h ago | Passed | 402 | 163 ms | $0.007 |
Show 10 older checks
| 25 h ago | Passed | 402 | 209 ms | $0.007 |
| 30 h ago | Passed | 402 | 175 ms | $0.007 |
| 35 h ago | Passed | 402 | 336 ms | $0.007 |
| 39 h ago | Passed | 402 | 310 ms | $0.007 |
| 44 h ago | Passed | 402 | 153 ms | $0.007 |
| 2 days ago | Passed | 402 | 506 ms | $0.007 |
| 2 days ago | Passed | 402 | 180 ms | $0.007 |
| 2 days ago | Passed | 402 | 445 ms | $0.007 |
| 3 days ago | Passed | 402 | 155 ms | $0.007 |
| 3 days ago | Passed | 402 | 179 ms | $0.007 |
History
| 11 Oct 2026 | Price changed from $0.005 to $0.007 |