78trust / 100
Calc Mars
by magent in Security & trust
x402 APIPassing, checked 3 h ago
Jawhar 2019 mutation-adjusted risk score (MARS) for advanced systemic mastocytosis: age >60 (1), hemoglobin <10 g/dL (1), platelets <100×10^9/L (1), exactly one S/A/R mutation among SRSF2, ASXL1, RUNX1 (1) or two or more (2, not both). Max 5. Low 0–1 (training-set median OS not reached), intermediate 2 (3.9 y), high 3–5 (1.9 y). Not WHO SM criteria. magent does not sequence or assay labs.
POST https://api.magentlab.com/api/calc/mars
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 184 ms typical, 285 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.magentlab.com/api/calc/mars" \
-H "content-type: application/json" \
-d '{"items":[{"age":50,"hemoglobin_g_dl":12,"hemoglobin_g_l":120,"platelets_10e9_l":200,"sar_mutation_count":0},{"age":50,"hemoglobin_g_dl":12,"hemoglobin_g_l":120,"platelets_10e9_l":200,"sar_mutation_count":0}]}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.magentlab.com%2Fapi%2Fcalc%2Fmars
const res = await pay("https://api.magentlab.com/api/calc/mars", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"items":[{"age":50,"hemoglobin_g_dl":12,"hemoglobin_g_l":120,"platelets_10e9_l":200,"sar_mutation_count":0},{"age":50,"hemoglobin_g_dl":12,"hemoglobin_g_l":120,"platelets_10e9_l":200,"sar_mutation_count":0}]}),
});
console.log(await res.json());Example input
{
"items": [
{
"age": 50,
"hemoglobin_g_dl": 12,
"hemoglobin_g_l": 120,
"platelets_10e9_l": 200,
"sar_mutation_count": 0
},
{
"age": 50,
"hemoglobin_g_dl": 12,
"hemoglobin_g_l": 120,
"platelets_10e9_l": 200,
"sar_mutation_count": 0
}
]
}Example output
{
"count": 2,
"items": [
{
"age": 50,
"citation": {
"authors": "Jawhar M, Schwaab J, Álvarez-Twose I, Shoumariyeh K, Naumann N, Lübke J, Perkins C, Muñoz-González JI, Meggendorfer M, Kennedy V, Metzgeroth G, Fabarius A, Pfeifer D, Sotlar K, Horny HP, von Bubnoff N, Haferlach T, Cross NCP, Hofmann WK, Sperr WR, García-Montero AC, Valent P, Gotlib J, Orfao A, Reiter A",
"doi": "10.1200/JCO.19.00640",
"id": "jawhar-2019",
"pmid": "31509472",
"source": "J Clin Oncol. 2019;37(31):2846-2856",
"title": "MARS: Mutation-Adjusted Risk Score for Advanced Systemic Mastocytosis"
},
"components": [
{
"factor": "age_gt_60",
"points": 0,
"present": false,
"value": 50
},
{
"factor": "hemoglobin_lt_10",
"points": 0,
"present": false,
"value": 12
},
{
"factor": "platelets_lt_100",
"points": 0,
"present": false,
"value": 200
},
{
"factor": "sar_mutations",
"points": 0,
"present": false,
"value": 0
}
],
"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": "mars",
"formula_expression": "MARS = age_gt_60 1 + hemoglobin_lt_10 1 + platelets_lt_100 1 + sar_mutations (exactly one S/A/R 1, two or more 2; SRSF2, ASXL1, RUNX1); Jawhar 2019; max 5; low 0-1 (training-set median OS not reached), intermediate 2 (3.9 years), high 3-5 (1.9 years)",
"hemoglobin_g_dl": 12,
"max_score": 5,
"platelets_10e9_l": 200,
"risk_band": "low",
"sar_mutation_count": 0,
"score": 0
},
{
"age": 50,
"citation": {
"authors": "Jawhar M, Schwaab J, Álvarez-Twose I, Shoumariyeh K, Naumann N, Lübke J, Perkins C, Muñoz-González JI, Meggendorfer M, Kennedy V, Metzgeroth G, Fabarius A, Pfeifer D, Sotlar K, Horny HP, von Bubnoff N, Haferlach T, Cross NCP, Hofmann WK, Sperr WR, García-Montero AC, Valent P, Gotlib J, Orfao A, Reiter A",
"doi": "10.1200/JCO.19.00640",
"id": "jawhar-2019",
"pmid": "31509472",
"source": "J Clin Oncol. 2019;37(31):2846-2856",
"title": "MARS: Mutation-Adjusted Risk Score for Advanced Systemic Mastocytosis"
},
"components": [
{
"factor": "age_gt_60",
"points": 0,
"present": false,
"value": 50
},
{
"factor": "hemoglobin_lt_10",
"points": 0,
"present": false,
"value": 12
},
{
"factor": "platelets_lt_100",
"points": 0,
"present": false,
"value": 200
},
{
"factor": "sar_mutations",
"points": 0,
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 |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 184 ms | $0.005 |
| 12 h ago | Passed | 402 | 140 ms | $0.005 |
| 16 h ago | Passed | 402 | 285 ms | $0.005 |
| 20 h ago | Passed | 402 | 245 ms | $0.005 |
| 23 h ago | Passed | 402 | 154 ms | $0.005 |
| 27 h ago | Passed | 402 | 220 ms | $0.005 |
| 31 h ago | Passed | 402 | 136 ms | $0.005 |
| 34 h ago | Passed | 402 | 528 ms | $0.005 |
| 39 h ago | Passed | 402 | 138 ms | $0.005 |