75trust / 100

Calc Imwg Response

by magent in Other

x402 APIPassing, checked 3 h ago

Kumar 2016 IMWG measurable serum+urine M-protein response. First-match PD, sCR, CR, VGPR, PR, MR, or SD from caller-assigned flags. sCR is CR plus normal FLC ratio and no clonal BM cells by IHC. CR is negative serum and urine IFE, no plasmacytomas, and BMPC <5%. VGPR is electrophoresis-negative or ≥90% serum M-protein reduction with urine M-protein <100 mg/24 h. Not a diagnosis. Not MRD. Not FLC-only. magent does not assay labs.

GET
https://api.magentlab.com/api/calc/imwg_response
Price
$0.005
per call in USDC
Uptime
100%
last 30 days
Response time
215 ms
380 ms slowest 5%
Last check
Passed
3 h ago, next in 2 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/imwg_response

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/imwg_response?bmpc_lt_5=true&electrophoresis_negative=false&flc_ratio_normal=true&ife_serum_negative=true&ife_urine_negative=true&imwg_pd=false&no_clonal_cells_ihc=true&plasmacytomas_absent=true&serum_m_reduction_25_to_49=false&serum_m_reduction_ge_50=false&serum_m_reduction_ge_90=false&urine_m_lt_100=false&urine_m_pr=false&urine_m_reduction_50_to_89=false

Parameters

ParameterTypeRequiredDescription
bmpc_lt_5booleanYes<5% plasma cells in bone marrow aspirates as assigned by the caller (Kumar 2016 CR; strictly fewer than 5%, not ≤5%). true or false. magent does not read a marrow.
electrophoresis_negativebooleanYesSerum and urine M-protein detectable by immunofixation but not electrophoresis, as assigned by the caller (Kumar 2016 VGPR). true or false. magent does not perform electrophoresis.
flc_ratio_normalbooleanYesNormal serum free light-chain ratio as assigned by the caller (Kumar 2016 sCR). true or false. magent does not assay free light chains.
ife_serum_negativebooleanYesNegative immunofixation on serum, as assigned by the caller (Kumar 2016 CR). true or false. magent does not perform immunofixation.
ife_urine_negativebooleanYesNegative immunofixation on urine, as assigned by the caller (Kumar 2016 CR). true or false. magent does not perform immunofixation.
imwg_pdbooleanYesProgressive disease as assigned by the caller using IMWG PD rules (Kumar 2016). true or false. When true, response is PD regardless of CR or M-protein reduction flags. magent does not compute PD from serial M-protein, FLC, or imaging values.
no_clonal_cells_ihcbooleanYesAbsence of clonal cells in bone marrow biopsy by immunohistochemistry as assigned by the caller (Kumar 2016 sCR). true or false. magent does not read immunohistochemistry.
plasmacytomas_absentbooleanYesDisappearance of soft-tissue plasmacytomas, as assigned by the caller (Kumar 2016 CR). true or false. magent does not read imaging or examine plasmacytomas.
serum_m_reduction_25_to_49booleanYes≥25% but ≤49% reduction of serum M-protein from baseline as assigned by the caller (Kumar 2016 MR). true or false. magent does not assay M-protein.
serum_m_reduction_ge_50booleanYes≥50% reduction of serum M-protein from baseline as assigned by the caller (Kumar 2016 PR). true or false. magent does not assay M-protein.
serum_m_reduction_ge_90booleanYes≥90% reduction in serum M-protein from baseline as assigned by the caller (Kumar 2016 VGPR). true or false. magent does not assay M-protein.
urine_m_lt_100booleanYesUrine M-protein <100 mg per 24 h as assigned by the caller (Kumar 2016 VGPR). true or false. magent does not assay urine M-protein.
urine_m_prbooleanYesReduction in 24 h urinary M-protein by ≥90% or to <200 mg per 24 h, as assigned by the caller as this one flag (Kumar 2016 PR). true or false. magent does not assay urine M-protein.
urine_m_reduction_50_to_89booleanYes50–89% reduction of 24 h urine M-protein as assigned by the caller (Kumar 2016 MR). true or false. magent does not assay urine M-protein.

Example response

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

Example response, 77 lines
{
  "citation": {
    "authors": "Kumar S, Paiva B, Anderson KC, Durie B, Landgren O, Moreau P, Munshi N, Lonial S, Bladé J, Mateos MV, Dimopoulos M, Kastritis E, Boccadoro M, Orlowski R, Zamagni E, Palumbo A, San Miguel J, Avet-Loiseau H, Goldschmidt H, van de Donk NWCJ, et al.",
    "doi": "10.1016/S1470-2045(16)30206-6",
    "id": "kumar-2016",
    "pmid": "27511158",
    "source": "Lancet Oncol. 2016;17(8):e328-e346",
    "title": "International Myeloma Working Group consensus criteria for response and minimal residual disease assessment in multiple myeloma"
  },
  "cr_bits": true,
  "criteria": [
    {
      "factor": "imwg_pd",
      "met": false
    },
    {
      "factor": "ife_serum_negative",
      "met": true
    },
    {
      "factor": "ife_urine_negative",
      "met": true
    },
    {
      "factor": "plasmacytomas_absent",
      "met": true
    },
    {
      "factor": "bmpc_lt_5",
      "met": true
    },
    {
      "factor": "cr_bits",
      "met": true
    },
    {
      "factor": "flc_ratio_normal",
      "met": true
    },
    {
      "factor": "no_clonal_cells_ihc",
      "met": true
    },
    {
      "factor": "electrophoresis_negative",
      "met": false
    },
    {
      "factor": "serum_m_reduction_ge_90",
      "met": false
    },
    {
      "factor": "urine_m_lt_100",
      "met": false
    },
    {
      "factor": "serum_m_reduction_ge_50",
      "met": false
    },
    {
      "factor": "urine_m_pr",
      "met": false
    },
    {
      "factor": "serum_m_reduction_25_to_49",
      "met": false
    },
    {
      "factor": "urine_m_reduction_50_to_89",
      "met": 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": "imwg_response",
  "formula_expression": "Kumar 2016 IMWG measurable serum+urine M-protein response, first-match: PD if imwg_pd; else sCR iff CR_bits and flc_ratio_normal and no_clonal_cells_ihc; else CR iff CR_bits; else VGPR iff electrophoresis_negative or (serum_m_reduction_ge_90 and urine_m_lt_100); else PR iff serum_m_reduction_ge_50 and urine_m_pr; else MR iff serum_m_reduction_25_to_49 and urine_m_reduction_50_to_89; else SD. CR_bits = ife_serum_negative and ife_urine_negative and plasmacytomas_absent and bmpc_lt_5 (strictly <5% marrow plasma cells). Not FLC-only or nonsecretory. Not MRD. Not a diagnosis",
  "imwg_response": "sCR"
}

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/imwg_response?bmpc_lt_5=true&electrophoresis_negative=false&flc_ratio_normal=true&ife_serum_negative=true&ife_urine_negative=true&imwg_pd=false&no_clonal_cells_ihc=true&plasmacytomas_absent=true&serum_m_reduction_25_to_49=false&serum_m_reduction_ge_50=false&serum_m_reduction_ge_90=false&urine_m_lt_100=false&urine_m_pr=false&urine_m_reduction_50_to_89=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/imwg_response?bmpc_lt_5=true&electrophoresis_negative=false&flc_ratio_normal=true&ife_serum_negative=true&ife_urine_negative=true&imwg_pd=false&no_clonal_cells_ihc=true&plasmacytomas_absent=true&serum_m_reduction_25_to_49=false&serum_m_reduction_ge_50=false&serum_m_reduction_ge_90=false&urine_m_lt_100=false&urine_m_pr=false&urine_m_reduction_50_to_89=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%2Fimwg_response
const res = await pay("https://api.magentlab.com/api/calc/imwg_response?bmpc_lt_5=true&electrophoresis_negative=false&flc_ratio_normal=true&ife_serum_negative=true&ife_urine_negative=true&imwg_pd=false&no_clonal_cells_ihc=true&plasmacytomas_absent=true&serum_m_reduction_25_to_49=false&serum_m_reduction_ge_50=false&serum_m_reduction_ge_90=false&urine_m_lt_100=false&urine_m_pr=false&urine_m_reduction_50_to_89=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/imwg_response?bmpc_lt_5=true&electrophoresis_negative=false&flc_ratio_normal=true&ife_serum_negative=true&ife_urine_negative=true&imwg_pd=false&no_clonal_cells_ihc=true&plasmacytomas_absent=true&serum_m_reduction_25_to_49=false&serum_m_reduction_ge_50=false&serum_m_reduction_ge_90=false&urine_m_lt_100=false&urine_m_pr=false&urine_m_reduction_50_to_89=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 agoPassed402225 ms$0.005
14 h agoPassed402380 ms$0.005
23 h agoPassed402276 ms$0.005
32 h agoPassed402215 ms$0.005
42 h agoPassed402162 ms$0.005
Show 6 older checks
2 days agoPassed402159 ms$0.005
3 days agoPassed402296 ms$0.005
3 days agoPassed402171 ms$0.005
3 days agoPassed402234 ms$0.005
4 days agoPassed402157 ms$0.005
4 days agoPassed402141 ms$0.005