75trust / 100

Calc Mrc Icu

by magent in Other

x402 APIPassing, checked 2 h ago

Gwynn 2019 MRC-ICU: 39 printed ICU medication and device items (1, 2, or 3 points). Multiplier classes are weight × the caller-assigned count of qualifying medications. Non-multiplier items add the printed weight when present. Output is the integer sum plus components. Not a pharmacist-staffing order; magent does not read the MAR.

GET
https://api.magentlab.com/api/calc/mrc_icu
Price
$0.005
per call in USDC
Uptime
100%
last 30 days
Response time
262 ms
454 ms slowest 5%
Last check
Passed
2 h ago, next in 4 h

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

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

How to call it

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

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/mrc_icu?aminoglycosides=0&amphotericin_b=false&antiarrhythmics=0&anticoagulants=0&anticonvulsants=0&antimicrobials=0&argatroban=false&azole_antifungals=0&blood_products=0&bowel_regimen=false&chemotherapy=0&chlorhexidine=false&clozapine=false&continuous_infusions=0&continuous_opioids_sedatives=0&dialysis=false&digoxin=false&ecmo=false&ganciclovir_valganciclovir=0&glycemic_control=false&hyperosmolar_fluids=0&iabp=false&immunosuppressants=0&lidocaine_infusion=false&lithium=false&lvad=false&mechanical_ventilation=false&neuromuscular_blockade=false&opioids_sedatives=0&prostacyclins=0&restricted_antimicrobials=0&stress_ulcer_prophylaxis=false&theophylline=false&therapeutic_heparins=0&thromboembolic_prophylaxis=false&tpn_clinical_pharmacist=false&tpn_non_pharmacist=false&vancomycin_iv=false&warfarin=false

Parameters

ParameterTypeRequiredDescription
aminoglycosidesintegerYesCount of aminoglycosides (amikacin, gentamicin, tobramycin) as assigned by the caller (integer 0-20). Gwynn 2019 printed 3×. magent does not read the MAR.
amphotericin_bbooleanYesAmphotericin B or liposomal amphotericin B present as assigned by the caller (Gwynn 2019). true adds 1 point.
antiarrhythmicsintegerYesCount of antiarrhythmics (amiodarone, dofetilide, sotalol) as assigned by the caller (integer 0-20). Gwynn 2019 printed 1×.
anticoagulantsintegerYesCount of anticoagulants (NOACs/DOACs, fondaparinux) as assigned by the caller (integer 0-20). Gwynn 2019 printed 1×.
anticonvulsantsintegerYesCount of anticonvulsants (carbamazepine, phenobarbital, phenytoin, valproic acid) as assigned by the caller (integer 0-20). Gwynn 2019 printed 3×.
antimicrobialsintegerYesCount of antimicrobials including HIV medications and excluding agents listed on other Gwynn 2019 rows, as assigned by the caller (integer 0-20). Printed 1×.
argatrobanbooleanYesArgatroban present as assigned by the caller (Gwynn 2019). true adds 2 points.
azole_antifungalsintegerYesCount of azole antifungals (posaconazole, voriconazole) as assigned by the caller (integer 0-20). Gwynn 2019 printed 2×.
blood_productsintegerYesCount of blood products (factor products, antithrombin III) as assigned by the caller (integer 0-20). Gwynn 2019 printed 2×.
bowel_regimenbooleanYesBowel regimen present as assigned by the caller (Gwynn 2019). true adds 1 point.
chemotherapyintegerYesCount of active inpatient chemotherapy agents as assigned by the caller (integer 0-20). Gwynn 2019 printed 3×.
chlorhexidinebooleanYesChlorhexidine present as assigned by the caller (Gwynn 2019). true adds 1 point.
clozapinebooleanYesClozapine present as assigned by the caller (Gwynn 2019). true adds 3 points.
continuous_infusionsintegerYesCount of continuous infusions not listed on another Gwynn 2019 row, as assigned by the caller (integer 0-20). Printed 1×.
continuous_opioids_sedativesintegerYesCount of continuous-infusion opioids and sedatives (propofol, fentanyl, dexmedetomidine, ketamine, benzodiazepines) as assigned by the caller (integer 0-20). Gwynn 2019 printed 2×.
dialysisbooleanYesDialysis present as assigned by the caller (Gwynn 2019). true adds 2 points.
digoxinbooleanYesDigoxin present as assigned by the caller (Gwynn 2019). true adds 3 points.
ecmobooleanYesExtracorporeal membrane oxygenation (ECMO) present as assigned by the caller (Gwynn 2019). true adds 2 points.
ganciclovir_valganciclovirintegerYesCount of ganciclovir or valganciclovir products as assigned by the caller (integer 0-20). Gwynn 2019 printed 1×.
glycemic_controlbooleanYesGlycemic control with subcutaneous insulin, excluding intravenous insulin, as assigned by the caller (Gwynn 2019). true adds 1 point.
hyperosmolar_fluidsintegerYesCount of hyperosmolar fluids (hypertonic saline 1.5%, 3%, 23.4%; mannitol) as assigned by the caller (integer 0-20). Gwynn 2019 printed 1×.
iabpbooleanYesIntra-aortic balloon pump (IABP) present as assigned by the caller (Gwynn 2019). true adds 1 point.
immunosuppressantsintegerYesCount of immunosuppressants (cyclosporine, sirolimus, tacrolimus) as assigned by the caller (integer 0-20). Gwynn 2019 printed 3×.
lidocaine_infusionbooleanYesLidocaine continuous infusion present as assigned by the caller (Gwynn 2019). true adds 2 points.
lithiumbooleanYesLithium present as assigned by the caller (Gwynn 2019). true adds 3 points.
lvadbooleanYesLeft ventricular assist device (LVAD) present as assigned by the caller (Gwynn 2019). true adds 1 point.
mechanical_ventilationbooleanYesMechanical ventilation present as assigned by the caller (Gwynn 2019). true adds 2 points.
neuromuscular_blockadebooleanYesNeuromuscular blockade present as assigned by the caller (Gwynn 2019). true adds 2 points.
opioids_sedativesintegerYesCount of scheduled or PRN opioids and sedatives as assigned by the caller (integer 0-20). Gwynn 2019 printed 1×.
prostacyclinsintegerYesCount of prostacyclins (epoprostenol, iloprost, treprostinil) as assigned by the caller (integer 0-20). Gwynn 2019 printed 2×.

And 9 more.

Example response

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

Example response, 128 lines
{
  "citation": {
    "authors": "Gwynn ME, Poisson MO, Waller JL, Newsome AS",
    "doi": "10.1093/ajhp/zxy054",
    "id": "gwynn-2019",
    "pmid": "31067298",
    "source": "Am J Health Syst Pharm. 2019;76(Supplement_2):S34-S40",
    "title": "Development and validation of a medication regimen complexity scoring tool for critically ill patients"
  },
  "components": [
    {
      "factor": "aminoglycosides",
      "points": 0,
      "present": false,
      "value": 0
    },
    {
      "factor": "amphotericin_b",
      "points": 0,
      "present": false
    },
    {
      "factor": "antiarrhythmics",
      "points": 0,
      "present": false,
      "value": 0
    },
    {
      "factor": "anticoagulants",
      "points": 0,
      "present": false,
      "value": 0
    },
    {
      "factor": "anticonvulsants",
      "points": 0,
      "present": false,
      "value": 0
    },
    {
      "factor": "argatroban",
      "points": 0,
      "present": false
    },
    {
      "factor": "azole_antifungals",
      "points": 0,
      "present": false,
      "value": 0
    },
    {
      "factor": "blood_products",
      "points": 0,
      "present": false,
      "value": 0
    },
    {
      "factor": "chemotherapy",
      "points": 0,
      "present": false,
      "value": 0
    },
    {
      "factor": "clozapine",
      "points": 0,
      "present": false
    },
    {
      "factor": "digoxin",
      "points": 0,
      "present": false
    },
    {
      "factor": "ganciclovir_valganciclovir",
      "points": 0,
      "present": false,
      "value": 0
    },
    {
      "factor": "hyperosmolar_fluids",
      "points": 0,
      "present": false,
      "value": 0
    },
    {
      "factor": "immunosuppressants",
      "points": 0,
      "present": false,
      "value": 0
    },
    {
      "factor": "lidocaine_infusion",
      "points": 0,
      "present": false
    },
    {
      "factor": "lithium",
      "points": 0,
      "present": false
    },
    {
      "factor": "prostacyclins",
      "points": 0,
      "present": false,
      "value": 0
    },
    {
      "factor": "theophylline",
      "points": 0,
      "present": false
    },
    {
      "factor": "therapeutic_heparins",
      "points": 0,
      "present": false,
      "value": 0
    },
    {
      "factor": "vancomycin_iv",
      "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": "mrc_icu",
  "formula_expression": "MRC-ICU (Gwynn 2019) = sum of 39 printed item weights. Multiplier classes (printed ×) are weight × caller-assigned count of qualifying medications (0-20): aminoglycosides 3, antiarrhythmics 1, anticoagulants 1, anticonvulsants 3, azole_antifungals 2, blood_products 2, chemotherapy 3, ganciclovir_valganciclovir 1, hyperosmolar_fluids 1, immunosuppressants 3, prostacyclins 2, therapeutic_heparins 2, continuous_infusions 1, opioids_sedatives 1, continuous_opioids_sedatives 2, antimicrobials 1, restricted_antimicrobials 2. Flags add the printed weight when present: amphotericin_b 1, argatroban 2, clozapine 3, digoxin 3, lidocaine_infusion 2, lithium 3, theophylline 3, vancomycin_iv 3, warfarin 3, neuromuscular_blockade 2, tpn_non_pharmacist 1, tpn_clinical_pharmacist 3, thromboembolic_prophylaxis 1, stress_ulcer_prophylaxis 1, glycemic_control 1, bowel_regimen 1, chlorhexidine 1, dialysis 2, ecmo 2, iabp 1, lvad 1, mechanical_ventilation 2",
  "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/mrc_icu?aminoglycosides=0&amphotericin_b=false&antiarrhythmics=0&anticoagulants=0&anticonvulsants=0&antimicrobials=0&argatroban=false&azole_antifungals=0&blood_products=0&bowel_regimen=false&chemotherapy=0&chlorhexidine=false&clozapine=false&continuous_infusions=0&continuous_opioids_sedatives=0&dialysis=false&digoxin=false&ecmo=false&ganciclovir_valganciclovir=0&glycemic_control=false&hyperosmolar_fluids=0&iabp=false&immunosuppressants=0&lidocaine_infusion=false&lithium=false&lvad=false&mechanical_ventilation=false&neuromuscular_blockade=false&opioids_sedatives=0&prostacyclins=0&restricted_antimicrobials=0&stress_ulcer_prophylaxis=false&theophylline=false&therapeutic_heparins=0&thromboembolic_prophylaxis=false&tpn_clinical_pharmacist=false&tpn_non_pharmacist=false&vancomycin_iv=false&warfarin=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/mrc_icu?aminoglycosides=0&amphotericin_b=false&antiarrhythmics=0&anticoagulants=0&anticonvulsants=0&antimicrobials=0&argatroban=false&azole_antifungals=0&blood_products=0&bowel_regimen=false&chemotherapy=0&chlorhexidine=false&clozapine=false&continuous_infusions=0&continuous_opioids_sedatives=0&dialysis=false&digoxin=false&ecmo=false&ganciclovir_valganciclovir=0&glycemic_control=false&hyperosmolar_fluids=0&iabp=false&immunosuppressants=0&lidocaine_infusion=false&lithium=false&lvad=false&mechanical_ventilation=false&neuromuscular_blockade=false&opioids_sedatives=0&prostacyclins=0&restricted_antimicrobials=0&stress_ulcer_prophylaxis=false&theophylline=false&therapeutic_heparins=0&thromboembolic_prophylaxis=false&tpn_clinical_pharmacist=false&tpn_non_pharmacist=false&vancomycin_iv=false&warfarin=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%2Fmrc_icu
const res = await pay("https://api.magentlab.com/api/calc/mrc_icu?aminoglycosides=0&amphotericin_b=false&antiarrhythmics=0&anticoagulants=0&anticonvulsants=0&antimicrobials=0&argatroban=false&azole_antifungals=0&blood_products=0&bowel_regimen=false&chemotherapy=0&chlorhexidine=false&clozapine=false&continuous_infusions=0&continuous_opioids_sedatives=0&dialysis=false&digoxin=false&ecmo=false&ganciclovir_valganciclovir=0&glycemic_control=false&hyperosmolar_fluids=0&iabp=false&immunosuppressants=0&lidocaine_infusion=false&lithium=false&lvad=false&mechanical_ventilation=false&neuromuscular_blockade=false&opioids_sedatives=0&prostacyclins=0&restricted_antimicrobials=0&stress_ulcer_prophylaxis=false&theophylline=false&therapeutic_heparins=0&thromboembolic_prophylaxis=false&tpn_clinical_pharmacist=false&tpn_non_pharmacist=false&vancomycin_iv=false&warfarin=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/mrc_icu?aminoglycosides=0&amphotericin_b=false&antiarrhythmics=0&anticoagulants=0&anticonvulsants=0&antimicrobials=0&argatroban=false&azole_antifungals=0&blood_products=0&bowel_regimen=false&chemotherapy=0&chlorhexidine=false&clozapine=false&continuous_infusions=0&continuous_opioids_sedatives=0&dialysis=false&digoxin=false&ecmo=false&ganciclovir_valganciclovir=0&glycemic_control=false&hyperosmolar_fluids=0&iabp=false&immunosuppressants=0&lidocaine_infusion=false&lithium=false&lvad=false&mechanical_ventilation=false&neuromuscular_blockade=false&opioids_sedatives=0&prostacyclins=0&restricted_antimicrobials=0&stress_ulcer_prophylaxis=false&theophylline=false&therapeutic_heparins=0&thromboembolic_prophylaxis=false&tpn_clinical_pharmacist=false&tpn_non_pharmacist=false&vancomycin_iv=false&warfarin=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
2 h agoPassed402284 ms$0.005
12 h agoPassed402323 ms$0.005
22 h agoPassed402270 ms$0.005
32 h agoPassed402159 ms$0.005
41 h agoPassed402151 ms$0.005
Show 6 older checks
2 days agoPassed402262 ms$0.005
3 days agoPassed402214 ms$0.005
3 days agoPassed402454 ms$0.005
3 days agoPassed402295 ms$0.005
4 days agoPassed402157 ms$0.005
4 days agoPassed402156 ms$0.005