Hematology · LIVE
ICC 2022 systemic mastocytosis criteria
ICC 2022 SM criteria
Apply the Arber 2022 International Consensus Classification systemic mastocytosis criteria and return whether the published combination of the major criterion alone, or at least three minors, is met. Tryptase >20 ng/mL does not count when an associated myeloid neoplasm (SM-AMN) is present.
Markdown: /docs/icc-sm.md · Canonical: https://magentlab.com/docs/icc-sm
Not a medical device. Not a diagnosis, dose, or listing recommendation.
What it computes
Apply the Arber 2022 International Consensus Classification systemic mastocytosis criteria and return whether the published combination of the major criterion alone, or at least three minors, is met. Tryptase >20 ng/mL does not count when an associated myeloid neoplasm (SM-AMN) is present.
When to use
When an agent already has caller-assigned ICC 2022 SM major and minor flags and needs the published criteria result. magent does not diagnose systemic mastocytosis, does not read a biopsy, and does not assay tryptase.
When not to use
- Not a medical device.
- Not a diagnosis. Criteria met is not a systemic mastocytosis diagnosis without the rest of the ICC 2022 workup.
- Not Valent 2016 WHO SM. ICC major infiltrates alone is enough; WHO 2016 required major plus at least one minor, or at least three minors.
- Not WHO 5th edition / Khoury 2022 classification.
- Not cutaneous mastocytosis only. This tool is ICC 2022 systemic mastocytosis only.
- magent does not read a biopsy or assay tryptase. All flags are caller-assigned.
- ICC names the associated disease SM-AMN (systemic mastocytosis with an associated myeloid neoplasm). When associated_myeloid_neoplasm is true, tryptase_gt_20 does not count as a minor.
Formula
diagnosed iff major_infiltrates or minor_count ≥ 3; minor_count counts atypical_or_spindle, kit_activating, cd2_cd25_or_cd30, and tryptase_gt_20 only when associated_myeloid_neoplasm is false (Arber 2022 ICC SM). Not a diagnosis. Not Valent 2016 WHO SM. Not cutaneous mastocytosis only
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.
- Source
- Blood. 2022;140(11):1200-1228
Worked example
Major infiltrates alone
Given:
associated_myeloid_neoplasm=falseatypical_or_spindle=falsecd2_cd25_or_cd30=falsekit_activating=falsemajor_infiltrates=truetryptase_gt_20=false
- major_infiltrates true → major true
- remaining minors false; associated_myeloid_neoplasm false → minor_count 0
- diagnosed true (ICC major alone; WHO 2016 would not diagnose on major alone)
Three minors without the major
Given:
associated_myeloid_neoplasm=falseatypical_or_spindle=truecd2_cd25_or_cd30=truekit_activating=truemajor_infiltrates=falsetryptase_gt_20=false
- major_infiltrates false
- atypical_or_spindle, kit_activating, and cd2_cd25_or_cd30 true → minor_count 3
- diagnosed true (≥3 minors)
Two minors without the major, not SM
Given:
associated_myeloid_neoplasm=falseatypical_or_spindle=truecd2_cd25_or_cd30=falsekit_activating=truemajor_infiltrates=falsetryptase_gt_20=false
- major_infiltrates false
- atypical_or_spindle and kit_activating true → minor_count 2
- diagnosed false (need major alone, or ≥3 minors)
Tryptase ignored with SM-AMN and only two other minors
Given:
associated_myeloid_neoplasm=trueatypical_or_spindle=truecd2_cd25_or_cd30=falsekit_activating=truemajor_infiltrates=falsetryptase_gt_20=true
- major_infiltrates false; tryptase_gt_20 true; associated_myeloid_neoplasm true
- atypical_or_spindle and kit_activating true; SM-AMN → tryptase_counts false → minor_count 2
- diagnosed false (two counted minors without the major)
Also searched as
- ICC 2022 systemic mastocytosis
- SM diagnostic criteria ICC
- KIT activating mutation mastocytosis
- Arber 2022 myeloid neoplasms
- CD30 mast cells ICC
- serum tryptase SM-AMN
- ICC SM major minor criteria
- spindle atypical mast cells
Try
Opens the live endpoint. Unpaid browser requests show the paywall; agents should send Accept: application/json.
Full URL: https://api.magentlab.com/api/calc/icc_sm?major_infiltrates=true&atypical_or_spindle=false&kit_activating=false&cd2_cd25_or_cd30=false&tryptase_gt_20=false&associated_myeloid_neoplasm=false
Call
Expect HTTP 402 until you retry with PAYMENT-SIGNATURE. Incomplete query params
return HTTP 400 before any quote or charge.
curl -i -H "Accept: application/json" "https://api.magentlab.com/api/calc/icc_sm?major_infiltrates=true&atypical_or_spindle=false&kit_activating=false&cd2_cd25_or_cd30=false&tryptase_gt_20=false&associated_myeloid_neoplasm=false"
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
major_infiltrates |
boolean | required | Multifocal dense infiltrates of tryptase- and/or CD117-positive mast cells (≥15 MCs in aggregates) in bone marrow or another extracutaneous organ, as assigned by the caller (Arber 2022 ICC SM major). true or false. magent does not read a biopsy. |
atypical_or_spindle |
boolean | required | >25% spindle-shaped or atypical immature morphology in bone marrow or extracutaneous sections, as assigned by the caller (Arber 2022 ICC SM minor). true or false. magent does not read slides. |
kit_activating |
boolean | required | KIT D816V or other activating KIT mutation in bone marrow, blood, or an extracutaneous organ, as assigned by the caller (Arber 2022 ICC SM minor; not codon-816-only). true or false. magent does not sequence KIT. |
cd2_cd25_or_cd30 |
boolean | required | Mast cells express CD25, CD2, and/or CD30 in addition to mast-cell markers, as assigned by the caller (Arber 2022 ICC SM minor; ICC adds CD30). true or false. magent does not phenotype mast cells. |
tryptase_gt_20 |
boolean | required | Serum tryptase persistently >20 ng/mL as assigned by the caller (Arber 2022 ICC SM minor). Does not count when associated_myeloid_neoplasm is true (SM-AMN). true or false. magent does not assay tryptase. |
associated_myeloid_neoplasm |
boolean | required | Associated myeloid neoplasm (ICC SM-AMN) as assigned by the caller. When true, tryptase_gt_20 does not count as a minor. true or false. magent does not diagnose a myeloid neoplasm. |
Bulk (POST)
POST the same path with a JSON items array. The first item is the GET unit; each additional item is $0.002. Invalid items return HTTP 400 before settlement.
- 1 to 25 items. Each item uses the same keys as the GET query parameters.
- POST of 1 item costs the same as GET. Lists longer than 25: chunk into multiple POSTs. Extra items still execute; do not pad dummy rows.
- The first invalid item fails the whole request (index in the 400 JSON). You are not charged.
- HTTP 200 is {count, path, items}. Each items[i] is the GET 200 body for that row.
- Catalog misses (empty matches, found=false) stay paid 200s inside that slot.
- x402 resource URL is this path plus n and body_sha256. Browsers that prefer text/html get the same paywall as GET; Pay retries POST with the same items.
Example request (fixture)
{
"items": [
{
"associated_myeloid_neoplasm": "false",
"atypical_or_spindle": "false",
"cd2_cd25_or_cd30": "false",
"kit_activating": "false",
"major_infiltrates": "true",
"tryptase_gt_20": "false"
},
{
"associated_myeloid_neoplasm": "false",
"atypical_or_spindle": "false",
"cd2_cd25_or_cd30": "false",
"kit_activating": "false",
"major_infiltrates": "true",
"tryptase_gt_20": "false"
}
]
}
Opens a two-item fixture on the API host. Unpaid browsers get the same MetaMask paywall as GET; Pay retries POST with those items.
Example 200 (fixture)
{
"count": 2,
"path": "/api/calc/icc_sm",
"items": [
{
"major": 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.",
"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"
},
"formula": "icc_sm",
"formula_expression": "diagnosed iff major_infiltrates or minor_count ≥ 3; minor_count counts atypical_or_spindle, kit_activating, cd2_cd25_or_cd30, and tryptase_gt_20 only when associated_myeloid_neoplasm is false (Arber 2022 ICC SM). Not a diagnosis. Not Valent 2016 WHO SM. Not cutaneous mastocytosis only",
"criteria": [
{
"factor": "major",
"met": true
},
{
"factor": "atypical_or_spindle",
"met": false
},
{
"factor": "kit_activating",
"met": false
},
{
"factor": "cd2_cd25_or_cd30",
"met": false
},
{
"factor": "tryptase_counts",
"met": false
},
{
"factor": "associated_myeloid_neoplasm",
"met": false
},
{
"factor": "minor_count_ge_3",
"met": false
}
],
"minor_count": 0,
"associated_myeloid_neoplasm": false,
"atypical_or_spindle": false,
"cd2_cd25_or_cd30": false,
"diagnosed": true,
"kit_activating": false,
"major_infiltrates": true,
"tryptase_counts": false,
"tryptase_gt_20": false
},
{
"major": 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.",
"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"
},
"formula": "icc_sm",
"formula_expression": "diagnosed iff major_infiltrates or minor_count ≥ 3; minor_count counts atypical_or_spindle, kit_activating, cd2_cd25_or_cd30, and tryptase_gt_20 only when associated_myeloid_neoplasm is false (Arber 2022 ICC SM). Not a diagnosis. Not Valent 2016 WHO SM. Not cutaneous mastocytosis only",
"criteria": [
{
"factor": "major",
"met": true
},
{
"factor": "atypical_or_spindle",
"met": false
},
{
"factor": "kit_activating",
"met": false
},
{
"factor": "cd2_cd25_or_cd30",
"met": false
},
{
"factor": "tryptase_counts",
"met": false
},
{
"factor": "associated_myeloid_neoplasm",
"met": false
},
{
"factor": "minor_count_ge_3",
"met": false
}
],
"minor_count": 0,
"associated_myeloid_neoplasm": false,
"atypical_or_spindle": false,
"cd2_cd25_or_cd30": false,
"diagnosed": true,
"kit_activating": false,
"major_infiltrates": true,
"tryptase_counts": false,
"tryptase_gt_20": false
}
]
}
Response
| Field | Type | Description |
|---|---|---|
formula |
string | icc_sm |
formula_expression |
string | Arber 2022 ICC SM major-alone or ≥3 minors combination |
diagnosed |
boolean | true iff major_infiltrates or minor_count ≥ 3. Not a diagnosis. Not Valent 2016 WHO SM. Not cutaneous mastocytosis only. Not WHO 5th / Khoury. |
major |
boolean | Echo of caller-assigned major_infiltrates (Arber 2022 ICC SM major) |
minor_count |
integer | Count of atypical_or_spindle, kit_activating, cd2_cd25_or_cd30, and tryptase_gt_20 when associated_myeloid_neoplasm is false |
tryptase_counts |
boolean | true iff tryptase_gt_20 and associated_myeloid_neoplasm is false (ICC SM-AMN: tryptase is not a minor) |
major_infiltrates |
boolean | Caller-assigned multifocal dense mast-cell infiltrates flag used |
atypical_or_spindle |
boolean | Caller-assigned >25% spindle or atypical immature mast-cell flag used |
kit_activating |
boolean | Caller-assigned KIT D816V or other activating KIT mutation flag used |
cd2_cd25_or_cd30 |
boolean | Caller-assigned CD25, CD2, and/or CD30 mast-cell flag used |
tryptase_gt_20 |
boolean | Caller-assigned persistently elevated serum tryptase >20 ng/mL flag used |
associated_myeloid_neoplasm |
boolean | Caller-assigned associated myeloid neoplasm (ICC SM-AMN) flag used; when true, tryptase does not count |
criteria |
array | Per-factor rows with factor and met for major, each counted minor, tryptase_counts, associated_myeloid_neoplasm, and the ≥3 minor threshold |
citation |
object | Arber 2022 Blood ICC SM citation |
disclaimer |
string | Not-a-device notice |
Example JSON
Machine form of the same example. Frozen fixture. Not a live lookup.
{
"major": 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.",
"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"
},
"formula": "icc_sm",
"formula_expression": "diagnosed iff major_infiltrates or minor_count ≥ 3; minor_count counts atypical_or_spindle, kit_activating, cd2_cd25_or_cd30, and tryptase_gt_20 only when associated_myeloid_neoplasm is false (Arber 2022 ICC SM). Not a diagnosis. Not Valent 2016 WHO SM. Not cutaneous mastocytosis only",
"criteria": [
{
"factor": "major",
"met": true
},
{
"factor": "atypical_or_spindle",
"met": false
},
{
"factor": "kit_activating",
"met": false
},
{
"factor": "cd2_cd25_or_cd30",
"met": false
},
{
"factor": "tryptase_counts",
"met": false
},
{
"factor": "associated_myeloid_neoplasm",
"met": false
},
{
"factor": "minor_count_ge_3",
"met": false
}
],
"minor_count": 0,
"associated_myeloid_neoplasm": false,
"atypical_or_spindle": false,
"cd2_cd25_or_cd30": false,
"diagnosed": true,
"kit_activating": false,
"major_infiltrates": true,
"tryptase_counts": false,
"tryptase_gt_20": false
}
Client errors (HTTP 400)
Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_flag |
boolean clinical flags must be true or false Returned before settlement; you are not charged. |
| 400 | invalid_items |
POST body must be a JSON object with only an items array Returned before settlement; you are not charged. |
| 400 | invalid_item_count |
items must be an array of 1 to 25 objects Returned before settlement; you are not charged. |
| 400 | invalid_item |
each items entry must be a JSON object Returned before settlement; you are not charged. |
Related tools
- WHO 2016 SM criteria — Apply the Valent 2016 / WHO 2016 systemic mastocytosis diagnostic criteria (Table 1) and return whether the published combination of the major criterion plus at least one minor, or at least three minors, is met. Tryptase >20 ng/mL does not count when an unrelated myeloid neoplasm is present.
- MARS — Sum the Jawhar 2019 mutation-adjusted risk score (MARS) for advanced systemic mastocytosis and return low (0–1), intermediate (2), or high (3–5).
Payment
Unpaid requests return HTTP 402 even if query parameters or POST items are missing or invalid, so CDP and agents can index the path. After a PAYMENT-SIGNATURE, invalid params return HTTP 400 JSON before settlement. magent does not charge. Fix the params, then request a new 402 quote for that complete URL. Catalog misses (empty matches, found=false) are valid paid 200s. Unpaid valid requests return HTTP 402 with a base64
PAYMENT-REQUIRED
header. HTTP 503 is not a new quote: retry the same PAYMENT-SIGNATURE. Full handshake
and shared payment errors: Payments.
Stdio MCP: /docs/mcp.
Guarantees
- HTTP 402 is unpaid, including a missing query. After PAYMENT-SIGNATURE, invalid parameters return HTTP 400 before settlement. You are not charged. HTTP 402 never includes the tool JSON.
- exact: settlement finishes before the tool (paymentFlow upfront). batch-settlement: verify/deposit before the tool; chargedCumulativeAmount commits after HTTP 2xx. Uncertain or failed settlement fails closed (HTTP 503). Retry the same PAYMENT-SIGNATURE.
- HTTP 402 is unpaid only. Do not sign a second authorization because of a 503.
- Execution is timeout-bounded and concurrency-capped.
- Calculator inputs are stored encrypted for allowlisted operators (Magent Console). They are not in public logs, SSH lookups, catalog, or rollups. Request logs store path without query.