Calc Icc Pmf
by magent in Other
ICC 2022 prefibrotic and overt PMF (Arber 2022). Diagnosed iff 3 majors and ≥1 minor. Majors: megakaryocyte morphology, not another myeloid neoplasm, JAK2/CALR/MPL or other clone or no reactive fibrosis. Minors: anemia not from comorbidity, WBC ≥11e9/L, splenomegaly, LDH above ULN; leukoerythroblastosis counts only in overt PMF. Not DIPSS, MIPSS70, WHO 5th, or post-PV/post-ET MF. magent does not read fibrosis grade or sequence drivers. Not a diagnosis or medical device.
https://api.magentlab.com/api/calc/icc_pmf- Price
- $0.005
- per call in USDC
- Uptime
- 92.3%
- last 30 days
- Response time
- 219 ms
- 593 ms slowest 5%
- Last check
- Failed
- 27 min ago, next in 6 h
Reliability
Latest check failed 27 min ago: Timed out
Status and outage history · Atom feed · Watch with other listings
How to call it
GET https://api.magentlab.com/api/calc/icc_pmf
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/icc_pmf?anemia_not_comorbid=true&clonal_or_no_reactive=true&ldh_above_uln=false&leukocytosis_ge_11=false&leukoerythroblastosis=false&megakaryocyte_morphology=true¬_other_myeloid=true&phenotype=pre&splenomegaly=falseParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
anemia_not_comorbid | boolean | Yes | Anemia not attributed to a comorbid condition, as assigned by the caller (Arber 2022 ICC PMF minor). true or false. magent does not assay hemoglobin. |
clonal_or_no_reactive | boolean | Yes | JAK2, CALR, or MPL mutation, or another clonal marker, or absence of reactive bone-marrow fibrosis, as assigned by the caller (Arber 2022 ICC PMF major). true or false. magent does not sequence. |
ldh_above_uln | boolean | Yes | LDH above the institutional upper limit of normal as assigned by the caller (Arber 2022 ICC PMF minor). true or false. magent does not assay LDH. |
leukocytosis_ge_11 | boolean | Yes | Leukocytosis ≥11 × 10^9/L as assigned by the caller (Arber 2022 ICC PMF minor). true or false. magent does not assay WBC. |
leukoerythroblastosis | boolean | Yes | Leukoerythroblastosis as assigned by the caller (Arber 2022 ICC overt-PMF minor). Counts toward minor_count only when phenotype is overt; echoed but not counted when phenotype is pre. true or false. magent does not read a smear. |
megakaryocyte_morphology | boolean | Yes | Megakaryocytic proliferation and atypia for the chosen phenotype, as assigned by the caller (Arber 2022 ICC PMF major). For pre: without reticulin fibrosis grade >1, with increased age-adjusted cellularity, granulocytic proliferation, and often decreased erythropoiesis. For overt: accompanied by re… |
not_other_myeloid | boolean | Yes | Does not meet ICC/WHO criteria for BCR::ABL1-positive CML, PV, ET, MDS, or another defined myeloid neoplasm, as assigned by the caller (Arber 2022 ICC PMF major). true or false. magent does not diagnose those neoplasms. |
phenotype | string | Yes | pre (prefibrotic/early PMF) or overt (overt fibrotic PMF) as assigned by the caller (Arber 2022 ICC). Required. magent does not assign phenotype from a biopsy. One of: pre, overt. |
splenomegaly | boolean | Yes | Palpable splenomegaly as assigned by the caller (Arber 2022 ICC PMF minor). true or false. magent does not examine the spleen. |
Example response
The provider's example. We can't check it without paying.
Example response, 67 lines
{
"anemia_not_comorbid": true,
"citation": {
"authors": "Arber DA, Orazi A, Hasserjian RP, Borowitz MJ, Calvo KR, Kvasnicka HM, Wang SA, Bagg A, Barbui T, Bennett JM, de la Fuente J, et al.",
"doi": "10.1182/blood.2022015850",
"id": "arber-2022",
"pmid": "35767897",
"source": "Blood. 2022;140(11):1200-1228",
"title": "International Consensus Classification of Myeloid Neoplasms and Acute Leukemias: integrating morphologic, clinical, and genomic data"
},
"clonal_or_no_reactive": true,
"criteria": [
{
"factor": "megakaryocyte_morphology",
"met": true
},
{
"factor": "not_other_myeloid",
"met": true
},
{
"factor": "clonal_or_no_reactive",
"met": true
},
{
"factor": "anemia_not_comorbid",
"met": true
},
{
"factor": "leukocytosis_ge_11",
"met": false
},
{
"factor": "splenomegaly",
"met": false
},
{
"factor": "ldh_above_uln",
"met": false
},
{
"factor": "leukoerythroblastosis",
"met": false
},
{
"factor": "three_majors",
"met": true
},
{
"factor": "minor_count_ge_1",
"met": true
}
],
"diagnosed": true,
"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": "icc_pmf",
"formula_expression": "diagnosed iff three majors and minor_count ≥ 1; majors are megakaryocyte_morphology, not_other_myeloid, and clonal_or_no_reactive; minor_count is anemia_not_comorbid + leukocytosis_ge_11 + splenomegaly + ldh_above_uln + leukoerythroblastosis only when phenotype is overt (Arber 2022 ICC pre-PMF and overt PMF). Not DIPSS. Not WHO 5th. Not post-PV/post-ET myelofibrosis",
"ldh_above_uln": false,
"leukocytosis_ge_11": false,
"leukoerythroblastosis": false,
"major_count": 3,
"megakaryocyte_morphology": true,
"minor_count": 1,
"not_other_myeloid": true,
"phenotype": "pre",
"splenomegaly": false
}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/icc_pmf?anemia_not_comorbid=true&clonal_or_no_reactive=true&ldh_above_uln=false&leukocytosis_ge_11=false&leukoerythroblastosis=false&megakaryocyte_morphology=true¬_other_myeloid=true&phenotype=pre&splenomegaly=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/icc_pmf?anemia_not_comorbid=true&clonal_or_no_reactive=true&ldh_above_uln=false&leukocytosis_ge_11=false&leukoerythroblastosis=false&megakaryocyte_morphology=true¬_other_myeloid=true&phenotype=pre&splenomegaly=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.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%2Ficc_pmf
const res = await pay("https://api.magentlab.com/api/calc/icc_pmf?anemia_not_comorbid=true&clonal_or_no_reactive=true&ldh_above_uln=false&leukocytosis_ge_11=false&leukoerythroblastosis=false&megakaryocyte_morphology=true¬_other_myeloid=true&phenotype=pre&splenomegaly=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/icc_pmf?anemia_not_comorbid=true&clonal_or_no_reactive=true&ldh_above_uln=false&leukocytosis_ge_11=false&leukoerythroblastosis=false&megakaryocyte_morphology=true¬_other_myeloid=true&phenotype=pre&splenomegaly=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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 27 min ago | Timed out | - | - | - |
| 12 h ago | Passed | 402 | 219 ms | $0.005 |
| 22 h ago | Passed | 402 | 271 ms | $0.005 |
| 32 h ago | Passed | 402 | 145 ms | $0.005 |
| 42 h ago | Passed | 402 | 372 ms | $0.005 |
Show 8 older checks
| 2 days ago | Passed | 402 | 238 ms | $0.005 |
| 3 days ago | Passed | 402 | 159 ms | $0.005 |
| 3 days ago | Passed | 402 | 309 ms | $0.005 |
| 3 days ago | Passed | 402 | 139 ms | $0.005 |
| 4 days ago | Passed | 402 | 292 ms | $0.005 |
| 4 days ago | Passed | 402 | 593 ms | $0.005 |
| 5 days ago | Passed | 402 | 138 ms | $0.005 |
| 5 days ago | Passed | 402 | 169 ms | $0.005 |