73trust / 100

Calc Hct Ci

by magent in Security & trust

x402 APIFailing, checked 3 h ago

Sorror 2005 HCT-specific comorbidity index. Seventeen caller-assigned comorbidities with published weights 1, 2, or 3 (max 26). Pulmonary moderate vs severe and hepatic mild vs moderate/severe are mutually exclusive. Risk groups: 0 low, 1–2 intermediate, ≥3 high. Caller supplies the published category; magent does not interpret PFTs or echo and does not list for transplant. Not Charlson. Not a diagnosis. Not a medical device.

GET
https://api.magentlab.com/api/calc/hct_ci
Price
$0.005
per call in USDC
Uptime
92.3%
last 30 days
Response time
241 ms
396 ms slowest 5%
Last check
Failed
3 h ago, next in 3 h

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Latest check failed 3 h ago: Timed out

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

How to call it

GET https://api.magentlab.com/api/calc/hct_ci

Each call costs $0.005 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.

GET https://api.magentlab.com/api/calc/hct_ci?arrhythmia=false&cardiac=false&cerebrovascular_disease=false&diabetes=false&heart_valve_disease=false&infection=false&inflammatory_bowel_disease=false&mild_hepatic=false&moderate_pulmonary=false&moderate_severe_hepatic=false&moderate_severe_renal=false&obesity=false&peptic_ulcer=false&prior_solid_tumor=false&psychiatric_disturbance=false&rheumatologic=false&severe_pulmonary=false

Parameters

ParameterTypeRequiredDescription
arrhythmiabooleanYesArrhythmia as assigned by the caller (Sorror 2005: atrial fibrillation or flutter, sick sinus syndrome, or ventricular arrhythmias). true scores 1. magent does not diagnose arrhythmia.
cardiacbooleanYesCardiac comorbidity as assigned by the caller (Sorror 2005: coronary artery disease, congestive heart failure, myocardial infarction, or ejection fraction ≤50%). true scores 1. magent does not interpret echo or diagnose cardiac disease.
cerebrovascular_diseasebooleanYesCerebrovascular disease as assigned by the caller (Sorror 2005: TIA or cerebrovascular accident). true scores 1. magent does not diagnose stroke or TIA.
diabetesbooleanYesDiabetes requiring insulin or oral hypoglycemics, not diet alone, as assigned by the caller (Sorror 2005). true scores 1. magent does not diagnose diabetes.
heart_valve_diseasebooleanYesHeart valve disease except mitral valve prolapse as assigned by the caller (Sorror 2005). true scores 3. magent does not interpret echo.
infectionbooleanYesInfection requiring continuation of antimicrobial treatment after day 0 as assigned by the caller (Sorror 2005). true scores 1. magent does not diagnose infection.
inflammatory_bowel_diseasebooleanYesInflammatory bowel disease as assigned by the caller (Sorror 2005: Crohn disease or ulcerative colitis). true scores 1. magent does not diagnose IBD.
mild_hepaticbooleanYesMild hepatic comorbidity as assigned by the caller (Sorror 2005: chronic hepatitis, bilirubin >ULN to 1.5×ULN, or AST/ALT >ULN to 2.5×ULN). true scores 1. Mutually exclusive with moderate_severe_hepatic. magent does not grade liver tests.
moderate_pulmonarybooleanYesModerate pulmonary comorbidity as assigned by the caller (Sorror 2005: DLco and/or FEV1 66%–80% or dyspnea on slight activity). true scores 2. Mutually exclusive with severe_pulmonary. magent does not interpret PFTs.
moderate_severe_hepaticbooleanYesModerate/severe hepatic comorbidity as assigned by the caller (Sorror 2005: cirrhosis, bilirubin >1.5×ULN, or AST/ALT >2.5×ULN). true scores 3. Mutually exclusive with mild_hepatic. magent does not grade liver tests.
moderate_severe_renalbooleanYesModerate/severe renal comorbidity as assigned by the caller (Sorror 2005: serum creatinine >2 mg/dL, dialysis, or prior renal transplantation). true scores 2. magent does not grade kidney disease from creatinine.
obesitybooleanYesObesity as assigned by the caller (Sorror 2005: body mass index >35 kg/m²). true scores 1. magent does not compute BMI.
peptic_ulcerbooleanYesPeptic ulcer requiring treatment as assigned by the caller (Sorror 2005). true scores 2. magent does not diagnose ulcer disease.
prior_solid_tumorbooleanYesPrior solid tumor treated at any time, excluding nonmelanoma skin cancer, as assigned by the caller (Sorror 2005). true scores 3. magent does not diagnose cancer.
psychiatric_disturbancebooleanYesPsychiatric disturbance as assigned by the caller (Sorror 2005: depression or anxiety requiring psychiatric consult or treatment). true scores 1. magent does not diagnose psychiatric disease.
rheumatologicbooleanYesRheumatologic comorbidity as assigned by the caller (Sorror 2005: SLE, RA, polymyositis, mixed CTD, or polymyalgia rheumatica). true scores 2. magent does not diagnose rheumatologic disease.
severe_pulmonarybooleanYesSevere pulmonary comorbidity as assigned by the caller (Sorror 2005: DLco and/or FEV1 ≤65% or dyspnea at rest or requiring oxygen). true scores 3. Mutually exclusive with moderate_pulmonary. magent does not interpret PFTs.

Example response

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

Example response, 103 lines
{
  "citation": {
    "authors": "Sorror ML, Maris MB, Storb R, et al.",
    "doi": "10.1182/blood-2005-05-2004",
    "id": "sorror-2005",
    "pmid": "15994282",
    "source": "Blood. 2005;106(9):2912-2919",
    "title": "Hematopoietic cell transplantation (HCT)-specific comorbidity index: a new tool for risk assessment before allogeneic HCT"
  },
  "components": [
    {
      "factor": "arrhythmia",
      "points": 0,
      "present": false
    },
    {
      "factor": "cardiac",
      "points": 0,
      "present": false
    },
    {
      "factor": "inflammatory_bowel_disease",
      "points": 0,
      "present": false
    },
    {
      "factor": "diabetes",
      "points": 0,
      "present": false
    },
    {
      "factor": "cerebrovascular_disease",
      "points": 0,
      "present": false
    },
    {
      "factor": "psychiatric_disturbance",
      "points": 0,
      "present": false
    },
    {
      "factor": "mild_hepatic",
      "points": 0,
      "present": false
    },
    {
      "factor": "obesity",
      "points": 0,
      "present": false
    },
    {
      "factor": "infection",
      "points": 0,
      "present": false
    },
    {
      "factor": "rheumatologic",
      "points": 0,
      "present": false
    },
    {
      "factor": "peptic_ulcer",
      "points": 0,
      "present": false
    },
    {
      "factor": "moderate_severe_renal",
      "points": 0,
      "present": false
    },
    {
      "factor": "moderate_pulmonary",
      "points": 0,
      "present": false
    },
    {
      "factor": "prior_solid_tumor",
      "points": 0,
      "present": false
    },
    {
      "factor": "heart_valve_disease",
      "points": 0,
      "present": false
    },
    {
      "factor": "severe_pulmonary",
      "points": 0,
      "present": false
    },
    {
      "factor": "moderate_severe_hepatic",
      "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": "hct_ci",
  "formula_expression": "HCT-CI = arrhythmia 1 + cardiac 1 + inflammatory_bowel_disease 1 + diabetes 1 + cerebrovascular_disease 1 + psychiatric_disturbance 1 + mild_hepatic 1 + obesity 1 + infection 1 + rheumatologic 2 + peptic_ulcer 2 + moderate_severe_renal 2 + moderate_pulmonary 2 + prior_solid_tumor 3 + heart_valve_disease 3 + severe_pulmonary 3 + moderate_severe_hepatic 3; Sorror 2005 HCT-CI weights; max 26; pulmonary moderate vs severe exclusive; hepatic mild vs moderate/severe exclusive; risk groups 0 low / 1-2 intermediate / >=3 high",
  "max_score": 26,
  "risk_group": "low",
  "score": 0
}

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.005.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://api.magentlab.com/api/calc/hct_ci?arrhythmia=false&cardiac=false&cerebrovascular_disease=false&diabetes=false&heart_valve_disease=false&infection=false&inflammatory_bowel_disease=false&mild_hepatic=false&moderate_pulmonary=false&moderate_severe_hepatic=false&moderate_severe_renal=false&obesity=false&peptic_ulcer=false&prior_solid_tumor=false&psychiatric_disturbance=false&rheumatologic=false&severe_pulmonary=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 - 'https://api.magentlab.com/api/calc/hct_ci?arrhythmia=false&cardiac=false&cerebrovascular_disease=false&diabetes=false&heart_valve_disease=false&infection=false&inflammatory_bowel_disease=false&mild_hepatic=false&moderate_pulmonary=false&moderate_severe_hepatic=false&moderate_severe_renal=false&obesity=false&peptic_ulcer=false&prior_solid_tumor=false&psychiatric_disturbance=false&rheumatologic=false&severe_pulmonary=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.005 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.005" });
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.005 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.magentlab.com%2Fapi%2Fcalc%2Fhct_ci
const res = await pay("https://api.magentlab.com/api/calc/hct_ci?arrhythmia=false&cardiac=false&cerebrovascular_disease=false&diabetes=false&heart_valve_disease=false&infection=false&inflammatory_bowel_disease=false&mild_hepatic=false&moderate_pulmonary=false&moderate_severe_hepatic=false&moderate_severe_renal=false&obesity=false&peptic_ulcer=false&prior_solid_tumor=false&psychiatric_disturbance=false&rheumatologic=false&severe_pulmonary=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.005 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.005"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://api.magentlab.com/api/calc/hct_ci?arrhythmia=false&cardiac=false&cerebrovascular_disease=false&diabetes=false&heart_valve_disease=false&infection=false&inflammatory_bowel_disease=false&mild_hepatic=false&moderate_pulmonary=false&moderate_severe_hepatic=false&moderate_severe_renal=false&obesity=false&peptic_ulcer=false&prior_solid_tumor=false&psychiatric_disturbance=false&rheumatologic=false&severe_pulmonary=false")
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoTimed out---
13 h agoPassed402179 ms$0.005
23 h agoPassed402258 ms$0.005
33 h agoPassed402265 ms$0.005
43 h agoPassed402308 ms$0.005
Show 8 older checks
2 days agoPassed402298 ms$0.005
3 days agoPassed402161 ms$0.005
3 days agoPassed402241 ms$0.005
3 days agoPassed402396 ms$0.005
4 days agoPassed402143 ms$0.005
4 days agoPassed402152 ms$0.005
5 days agoPassed402295 ms$0.005
5 days agoPassed402141 ms$0.005