{
  "x402Version": 2,
  "id": 39412,
  "slug": "39412",
  "resource": "https://api.magentlab.com/api/calc/who_sm",
  "description": "WHO 2016 systemic mastocytosis (Valent 2016 Table 1). Met when major infiltrates (≥15 mast cells in aggregates in BM or extracutaneous organ) plus ≥1 minor, or ≥3 minors. Minors: >25% atypical/spindle mast cells, KIT codon 816, CD2 and/or CD25, tryptase >20 ng/mL (not valid with an unrelated myeloid neoplasm). Not a diagnosis. Not cutaneous mastocytosis only. Not ICC 2022. magent does not read a biopsy or assay tryptase.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "associated_myeloid_neoplasm": false,
                "atypical_or_spindle": false,
                "cd2_or_cd25": false,
                "kit_codon_816": true,
                "major_infiltrates": true,
                "tryptase_gt_20": false
              },
              {
                "associated_myeloid_neoplasm": false,
                "atypical_or_spindle": false,
                "cd2_or_cd25": false,
                "kit_codon_816": true,
                "major_infiltrates": true,
                "tryptase_gt_20": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "associated_myeloid_neoplasm": false,
                "atypical_or_spindle": false,
                "cd2_or_cd25": false,
                "citation": {
                  "authors": "Valent P, Akin C, Hartmann K, Nilsson G, Reiter A, Hermine O, Sotlar K, Sperr WR, Escribano L, George TI, Kluin-Nelemans HC, Ustun C, Triggiani M, Brockow K, Gotlib J, Orfao A, Schwartz LB, Horny HP, Galli SJ, Arock M, Metcalfe DD",
                  "doi": "10.1182/blood-2016-09-731893",
                  "id": "valent-2016",
                  "pmid": "28031180",
                  "source": "Blood. 2017;129(11):1420-1427 (Epub 2016 Dec 28)",
                  "title": "Mastocytosis: 2016 updated WHO classification and novel emerging treatment concepts"
                },
                "criteria": [
                  {
                    "factor": "major",
                    "met": true
                  },
                  {
                    "factor": "atypical_or_spindle",
                    "met": false
                  },
                  {
                    "factor": "kit_codon_816",
                    "met": true
                  },
                  {
                    "factor": "cd2_or_cd25",
                    "met": false
                  },
                  {
                    "factor": "tryptase_counts",
                    "met": false
                  },
                  {
                    "factor": "associated_myeloid_neoplasm",
                    "met": false
                  },
                  {
                    "factor": "minor_count_ge_1",
                    "met": true
                  },
                  {
                    "factor": "minor_count_ge_3",
                    "met": false
                  }
                ],
                "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": "who_sm",
                "formula_expression": "diagnosed iff (major_infiltrates and minor_count ≥ 1) or minor_count ≥ 3; minor_count counts atypical_or_spindle, kit_codon_816, cd2_or_cd25, and tryptase_gt_20 only when associated_myeloid_neoplasm is false (Valent 2016 Table 1 WHO SM). Not a diagnosis. Not cutaneous mastocytosis only. Not ICC 2022",
                "kit_codon_816": true,
                "major": true,
                "major_infiltrates": true,
                "minor_count": 1,
                "tryptase_counts": false,
                "tryptase_gt_20": false
              },
              {
                "associated_myeloid_neoplasm": false,
                "atypical_or_spindle": false,
                "cd2_or_cd25": false,
                "citation": {
                  "authors": "Valent P, Akin C, Hartmann K, Nilsson G, Reiter A, Hermine O, Sotlar K, Sperr WR, Escribano L, George TI, Kluin-Nelemans HC, Ustun C, Triggiani M, Brockow K, Gotlib J, Orfao A, Schwartz LB, Horny HP, Galli SJ, Arock M, Metcalfe DD",
                  "doi": "10.1182/blood-2016-09-731893",
                  "id": "valent-2016",
                  "pmid": "28031180",
                  "source": "Blood. 2017;129(11):1420-1427 (Epub 2016 Dec 28)",
                  "title": "Mastocytosis: 2016 updated WHO classification and novel emerging treatment concepts"
                },
                "criteria": [
                  {
                    "factor": "major",
                    "met": true
                  },
                  {
                    "factor": "atypical_or_spindle",
                    "met": false
                  },
                  {
                    "factor": "kit_codon_816",
                    "met": true
                  },
                  {
                    "factor": "cd2_or_cd25",
                    "met": false
                  },
                  {
                    "factor": "tryptase_counts",
                    "met": false
                  },
                  {
                    "factor": "associated_myeloid_neoplasm",
                    "met": false
                  },
                  {
                    "factor": "minor_count_ge_1",
                    "met": true
                  },
                  {
                    "factor": "minor_count_ge_3",
                    "met": false
                  }
                ],
                "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": "who_sm",
                "formula_expression": "diagnosed iff (major_infiltrates and minor_count ≥ 1) or minor_count ≥ 3; minor_count counts atypical_or_spindle, kit_codon_816, cd2_or_cd25, and tryptase_gt_20 only when associated_myeloid_neoplasm is false (Valent 2016 Table 1 WHO SM). Not a diagnosis. Not cutaneous mastocytosis only. Not ICC 2022",
                "kit_codon_816": true,
                "major": true,
                "major_infiltrates": true,
                "minor_count": 1,
                "tryptase_counts": false,
                "tryptase_gt_20": false
              }
            ],
            "path": "/api/calc/who_sm"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "associated_myeloid_neoplasm": {
                          "description": "Unrelated myeloid neoplasm present as assigned by the caller (Valent 2016 Table 1: item d is not valid). When true, tryptase_gt_20 does not count as a minor. true or false. magent does not diagnose a myeloid neoplasm.",
                          "type": "boolean"
                        },
                        "atypical_or_spindle": {
                          "description": ">25% atypical (type I/II) or spindle-shaped mast cells in infiltrates or smears, as assigned by the caller (Valent 2016 Table 1 minor a). true or false. magent does not read slides.",
                          "type": "boolean"
                        },
                        "cd2_or_cd25": {
                          "description": "Mast cells in bone marrow, blood, or another extracutaneous organ exhibit CD2 and/or CD25, as assigned by the caller (Valent 2016 Table 1 minor c). true or false. magent does not phenotype mast cells.",
                          "type": "boolean"
                        },
                        "kit_codon_816": {
                          "description": "KIT point mutation at codon 816 in bone marrow or another extracutaneous organ, as assigned by the caller (Valent 2016 Table 1 minor b). true or false. magent does not sequence KIT.",
                          "type": "boolean"
                        },
                        "major_infiltrates": {
                          "description": "Multifocal dense infiltrates of mast cells (≥15 MCs in aggregates) in bone marrow or another extracutaneous organ, as assigned by the caller (Valent 2016 Table 1 major). true or false. magent does not read a biopsy.",
                          "type": "boolean"
                        },
                        "tryptase_gt_20": {
                          "description": "Baseline serum tryptase >20 ng/mL as assigned by the caller (Valent 2016 Table 1 minor d). Does not count when associated_myeloid_neoplasm is true. true or false. magent does not assay tryptase.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "major_infiltrates",
                        "atypical_or_spindle",
                        "kit_codon_816",
                        "cd2_or_cd25",
                        "tryptase_gt_20",
                        "associated_myeloid_neoplasm"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "who-2016",
    "mastocytosis",
    "hematology",
    "kit",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T23:43:13.624Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T23:43:13.479Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "associated_myeloid_neoplasm": false,
                  "atypical_or_spindle": false,
                  "cd2_or_cd25": false,
                  "kit_codon_816": true,
                  "major_infiltrates": true,
                  "tryptase_gt_20": false
                },
                {
                  "associated_myeloid_neoplasm": false,
                  "atypical_or_spindle": false,
                  "cd2_or_cd25": false,
                  "kit_codon_816": true,
                  "major_infiltrates": true,
                  "tryptase_gt_20": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "associated_myeloid_neoplasm": false,
                  "atypical_or_spindle": false,
                  "cd2_or_cd25": false,
                  "citation": {
                    "authors": "Valent P, Akin C, Hartmann K, Nilsson G, Reiter A, Hermine O, Sotlar K, Sperr WR, Escribano L, George TI, Kluin-Nelemans HC, Ustun C, Triggiani M, Brockow K, Gotlib J, Orfao A, Schwartz LB, Horny HP, Galli SJ, Arock M, Metcalfe DD",
                    "doi": "10.1182/blood-2016-09-731893",
                    "id": "valent-2016",
                    "pmid": "28031180",
                    "source": "Blood. 2017;129(11):1420-1427 (Epub 2016 Dec 28)",
                    "title": "Mastocytosis: 2016 updated WHO classification and novel emerging treatment concepts"
                  },
                  "criteria": [
                    {
                      "factor": "major",
                      "met": true
                    },
                    {
                      "factor": "atypical_or_spindle",
                      "met": false
                    },
                    {
                      "factor": "kit_codon_816",
                      "met": true
                    },
                    {
                      "factor": "cd2_or_cd25",
                      "met": false
                    },
                    {
                      "factor": "tryptase_counts",
                      "met": false
                    },
                    {
                      "factor": "associated_myeloid_neoplasm",
                      "met": false
                    },
                    {
                      "factor": "minor_count_ge_1",
                      "met": true
                    },
                    {
                      "factor": "minor_count_ge_3",
                      "met": false
                    }
                  ],
                  "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": "who_sm",
                  "formula_expression": "diagnosed iff (major_infiltrates and minor_count ≥ 1) or minor_count ≥ 3; minor_count counts atypical_or_spindle, kit_codon_816, cd2_or_cd25, and tryptase_gt_20 only when associated_myeloid_neoplasm is false (Valent 2016 Table 1 WHO SM). Not a diagnosis. Not cutaneous mastocytosis only. Not ICC 2022",
                  "kit_codon_816": true,
                  "major": true,
                  "major_infiltrates": true,
                  "minor_count": 1,
                  "tryptase_counts": false,
                  "tryptase_gt_20": false
                },
                {
                  "associated_myeloid_neoplasm": false,
                  "atypical_or_spindle": false,
                  "cd2_or_cd25": false,
                  "citation": {
                    "authors": "Valent P, Akin C, Hartmann K, Nilsson G, Reiter A, Hermine O, Sotlar K, Sperr WR, Escribano L, George TI, Kluin-Nelemans HC, Ustun C, Triggiani M, Brockow K, Gotlib J, Orfao A, Schwartz LB, Horny HP, Galli SJ, Arock M, Metcalfe DD",
                    "doi": "10.1182/blood-2016-09-731893",
                    "id": "valent-2016",
                    "pmid": "28031180",
                    "source": "Blood. 2017;129(11):1420-1427 (Epub 2016 Dec 28)",
                    "title": "Mastocytosis: 2016 updated WHO classification and novel emerging treatment concepts"
                  },
                  "criteria": [
                    {
                      "factor": "major",
                      "met": true
                    },
                    {
                      "factor": "atypical_or_spindle",
                      "met": false
                    },
                    {
                      "factor": "kit_codon_816",
                      "met": true
                    },
                    {
                      "factor": "cd2_or_cd25",
                      "met": false
                    },
                    {
                      "factor": "tryptase_counts",
                      "met": false
                    },
                    {
                      "factor": "associated_myeloid_neoplasm",
                      "met": false
                    },
                    {
                      "factor": "minor_count_ge_1",
                      "met": true
                    },
                    {
                      "factor": "minor_count_ge_3",
                      "met": false
                    }
                  ],
                  "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": "who_sm",
                  "formula_expression": "diagnosed iff (major_infiltrates and minor_count ≥ 1) or minor_count ≥ 3; minor_count counts atypical_or_spindle, kit_codon_816, cd2_or_cd25, and tryptase_gt_20 only when associated_myeloid_neoplasm is false (Valent 2016 Table 1 WHO SM). Not a diagnosis. Not cutaneous mastocytosis only. Not ICC 2022",
                  "kit_codon_816": true,
                  "major": true,
                  "major_infiltrates": true,
                  "minor_count": 1,
                  "tryptase_counts": false,
                  "tryptase_gt_20": false
                }
              ],
              "path": "/api/calc/who_sm"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "associated_myeloid_neoplasm": {
                            "description": "Unrelated myeloid neoplasm present as assigned by the caller (Valent 2016 Table 1: item d is not valid). When true, tryptase_gt_20 does not count as a minor. true or false. magent does not diagnose a myeloid neoplasm.",
                            "type": "boolean"
                          },
                          "atypical_or_spindle": {
                            "description": ">25% atypical (type I/II) or spindle-shaped mast cells in infiltrates or smears, as assigned by the caller (Valent 2016 Table 1 minor a). true or false. magent does not read slides.",
                            "type": "boolean"
                          },
                          "cd2_or_cd25": {
                            "description": "Mast cells in bone marrow, blood, or another extracutaneous organ exhibit CD2 and/or CD25, as assigned by the caller (Valent 2016 Table 1 minor c). true or false. magent does not phenotype mast cells.",
                            "type": "boolean"
                          },
                          "kit_codon_816": {
                            "description": "KIT point mutation at codon 816 in bone marrow or another extracutaneous organ, as assigned by the caller (Valent 2016 Table 1 minor b). true or false. magent does not sequence KIT.",
                            "type": "boolean"
                          },
                          "major_infiltrates": {
                            "description": "Multifocal dense infiltrates of mast cells (≥15 MCs in aggregates) in bone marrow or another extracutaneous organ, as assigned by the caller (Valent 2016 Table 1 major). true or false. magent does not read a biopsy.",
                            "type": "boolean"
                          },
                          "tryptase_gt_20": {
                            "description": "Baseline serum tryptase >20 ng/mL as assigned by the caller (Valent 2016 Table 1 minor d). Does not count when associated_myeloid_neoplasm is true. true or false. magent does not assay tryptase.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "major_infiltrates",
                          "atypical_or_spindle",
                          "kit_codon_816",
                          "cd2_or_cd25",
                          "tryptase_gt_20",
                          "associated_myeloid_neoplasm"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}