{
  "x402Version": 2,
  "id": 38789,
  "slug": "38789",
  "resource": "https://api.magentlab.com/api/calc/stumbl",
  "description": "Battle 2014 STUMBL integer score after blunt chest wall trauma: 1 point per decade of age starting at 10, 3 per rib fracture, 5 for chronic lung disease, 4 for preinjury anticoagulants, and 2 per 5% SpO2 decrease starting at 94%. Table 5 complication probabilities 13/29/52/70/80/88%. magent does not examine the chest or count ribs. Not a medical device, not a disposition or ICU order.",
  "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": [
              {
                "age": 67,
                "chronic_lung_disease": true,
                "preinjury_anticoagulants": false,
                "rib_count": 3,
                "spo2_percent": 87
              },
              {
                "age": 67,
                "chronic_lung_disease": true,
                "preinjury_anticoagulants": false,
                "rib_count": 3,
                "spo2_percent": 87
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 67,
                "at_risk_for_complications": true,
                "chronic_lung_disease": true,
                "citation": {
                  "authors": "Battle CE, Hutchings H, Lovett S, Bouamra O, Jones S, Sen A, Gagg J, Robinson D, Hartford-Beynon J, Williams J, Evans A",
                  "doi": "10.1186/cc13873",
                  "id": "battle-2014",
                  "pmid": "24887537",
                  "source": "Crit Care. 2014;18(3):R98",
                  "title": "Predicting outcomes after blunt chest wall trauma: development and external validation of a new prognostic model"
                },
                "complication_probability_percent": 70,
                "components": [
                  {
                    "factor": "age",
                    "points": 6,
                    "present": true,
                    "value": 67
                  },
                  {
                    "factor": "rib_count",
                    "points": 9,
                    "present": true,
                    "value": 3
                  },
                  {
                    "factor": "chronic_lung_disease",
                    "points": 5,
                    "present": true
                  },
                  {
                    "factor": "preinjury_anticoagulants",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "spo2_percent",
                    "points": 4,
                    "present": true,
                    "value": 87
                  }
                ],
                "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": "stumbl",
                "formula_expression": "STUMBL = div(age, 10) + 3*rib_count + chronic_lung_disease 5 + preinjury_anticoagulants 4 + spo2 (>=95 0 else 2*(1+div(94-spo2_percent, 5))); Battle 2014 Table 4; Table 5 0-10 13%, 11-15 29%, 16-20 52%, 21-25 70%, 26-30 80%, 31+ 88%",
                "icu_admission_cutoff": false,
                "preinjury_anticoagulants": false,
                "rib_count": 3,
                "score": 24,
                "spo2_percent": 87,
                "stumbl_band": "band_21_25"
              },
              {
                "age_years": 67,
                "at_risk_for_complications": true,
                "chronic_lung_disease": true,
                "citation": {
                  "authors": "Battle CE, Hutchings H, Lovett S, Bouamra O, Jones S, Sen A, Gagg J, Robinson D, Hartford-Beynon J, Williams J, Evans A",
                  "doi": "10.1186/cc13873",
                  "id": "battle-2014",
                  "pmid": "24887537",
                  "source": "Crit Care. 2014;18(3):R98",
                  "title": "Predicting outcomes after blunt chest wall trauma: development and external validation of a new prognostic model"
                },
                "complication_probability_percent": 70,
                "components": [
                  {
                    "factor": "age",
                    "points": 6,
                    "present": true,
                    "value": 67
                  },
                  {
                    "factor": "rib_count",
                    "points": 9,
                    "present": true,
                    "value": 3
                  },
                  {
                    "factor": "chronic_lung_disease",
                    "points": 5,
                    "present": true
                  },
                  {
                    "factor": "preinjury_anticoagulants",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "spo2_percent",
                    "points": 4,
                    "present": true,
                    "value": 87
                  }
                ],
                "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": "stumbl",
                "formula_expression": "STUMBL = div(age, 10) + 3*rib_count + chronic_lung_disease 5 + preinjury_anticoagulants 4 + spo2 (>=95 0 else 2*(1+div(94-spo2_percent, 5))); Battle 2014 Table 4; Table 5 0-10 13%, 11-15 29%, 16-20 52%, 21-25 70%, 26-30 80%, 31+ 88%",
                "icu_admission_cutoff": false,
                "preinjury_anticoagulants": false,
                "rib_count": 3,
                "score": 24,
                "spo2_percent": 87,
                "stumbl_band": "band_21_25"
              }
            ],
            "path": "/api/calc/stumbl"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "age": {
                          "description": "Age in years, integer 1–120. Battle 2014 Table 4: 1 point per additional 10-year increase starting at 10 (div(age, 10); age 10 scores 1, age 67 scores 6, age 1–9 scores 0). Not the adult 18–120 clamp.",
                          "type": "integer"
                        },
                        "chronic_lung_disease": {
                          "description": "Pre-injury chronic lung disease as assigned by the caller (Battle 2014 Table 4). true or false. true scores 5.",
                          "type": "boolean"
                        },
                        "preinjury_anticoagulants": {
                          "description": "Pre-injury anticoagulant use as assigned by the caller (Battle 2014 Table 4). true or false. true scores 4.",
                          "type": "boolean"
                        },
                        "rib_count": {
                          "description": "Caller-assigned number of rib fractures, integer 0–24. Battle 2014 Table 4: 3 points per additional rib fracture (3 ribs scores 9). magent does not examine the chest or count ribs.",
                          "type": "integer"
                        },
                        "spo2_percent": {
                          "description": "Oxygen saturation percent, integer 50–100. Battle 2014 Table 4 footnote c: 2 points per 5% decrease starting at 94% (≥95 scores 0; else 2*(1+div(94-spo2_percent, 5)); 87% scores 4). magent does not measure SpO2.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "age",
                        "rib_count",
                        "chronic_lung_disease",
                        "preinjury_anticoagulants",
                        "spo2_percent"
                      ],
                      "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": [
    "stumbl",
    "chest-trauma",
    "rib-fracture",
    "emergency",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T15:22:12.958Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-13T15:22:12.825Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 67,
                  "chronic_lung_disease": true,
                  "preinjury_anticoagulants": false,
                  "rib_count": 3,
                  "spo2_percent": 87
                },
                {
                  "age": 67,
                  "chronic_lung_disease": true,
                  "preinjury_anticoagulants": false,
                  "rib_count": 3,
                  "spo2_percent": 87
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 67,
                  "at_risk_for_complications": true,
                  "chronic_lung_disease": true,
                  "citation": {
                    "authors": "Battle CE, Hutchings H, Lovett S, Bouamra O, Jones S, Sen A, Gagg J, Robinson D, Hartford-Beynon J, Williams J, Evans A",
                    "doi": "10.1186/cc13873",
                    "id": "battle-2014",
                    "pmid": "24887537",
                    "source": "Crit Care. 2014;18(3):R98",
                    "title": "Predicting outcomes after blunt chest wall trauma: development and external validation of a new prognostic model"
                  },
                  "complication_probability_percent": 70,
                  "components": [
                    {
                      "factor": "age",
                      "points": 6,
                      "present": true,
                      "value": 67
                    },
                    {
                      "factor": "rib_count",
                      "points": 9,
                      "present": true,
                      "value": 3
                    },
                    {
                      "factor": "chronic_lung_disease",
                      "points": 5,
                      "present": true
                    },
                    {
                      "factor": "preinjury_anticoagulants",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "spo2_percent",
                      "points": 4,
                      "present": true,
                      "value": 87
                    }
                  ],
                  "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": "stumbl",
                  "formula_expression": "STUMBL = div(age, 10) + 3*rib_count + chronic_lung_disease 5 + preinjury_anticoagulants 4 + spo2 (>=95 0 else 2*(1+div(94-spo2_percent, 5))); Battle 2014 Table 4; Table 5 0-10 13%, 11-15 29%, 16-20 52%, 21-25 70%, 26-30 80%, 31+ 88%",
                  "icu_admission_cutoff": false,
                  "preinjury_anticoagulants": false,
                  "rib_count": 3,
                  "score": 24,
                  "spo2_percent": 87,
                  "stumbl_band": "band_21_25"
                },
                {
                  "age_years": 67,
                  "at_risk_for_complications": true,
                  "chronic_lung_disease": true,
                  "citation": {
                    "authors": "Battle CE, Hutchings H, Lovett S, Bouamra O, Jones S, Sen A, Gagg J, Robinson D, Hartford-Beynon J, Williams J, Evans A",
                    "doi": "10.1186/cc13873",
                    "id": "battle-2014",
                    "pmid": "24887537",
                    "source": "Crit Care. 2014;18(3):R98",
                    "title": "Predicting outcomes after blunt chest wall trauma: development and external validation of a new prognostic model"
                  },
                  "complication_probability_percent": 70,
                  "components": [
                    {
                      "factor": "age",
                      "points": 6,
                      "present": true,
                      "value": 67
                    },
                    {
                      "factor": "rib_count",
                      "points": 9,
                      "present": true,
                      "value": 3
                    },
                    {
                      "factor": "chronic_lung_disease",
                      "points": 5,
                      "present": true
                    },
                    {
                      "factor": "preinjury_anticoagulants",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "spo2_percent",
                      "points": 4,
                      "present": true,
                      "value": 87
                    }
                  ],
                  "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": "stumbl",
                  "formula_expression": "STUMBL = div(age, 10) + 3*rib_count + chronic_lung_disease 5 + preinjury_anticoagulants 4 + spo2 (>=95 0 else 2*(1+div(94-spo2_percent, 5))); Battle 2014 Table 4; Table 5 0-10 13%, 11-15 29%, 16-20 52%, 21-25 70%, 26-30 80%, 31+ 88%",
                  "icu_admission_cutoff": false,
                  "preinjury_anticoagulants": false,
                  "rib_count": 3,
                  "score": 24,
                  "spo2_percent": 87,
                  "stumbl_band": "band_21_25"
                }
              ],
              "path": "/api/calc/stumbl"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "age": {
                            "description": "Age in years, integer 1–120. Battle 2014 Table 4: 1 point per additional 10-year increase starting at 10 (div(age, 10); age 10 scores 1, age 67 scores 6, age 1–9 scores 0). Not the adult 18–120 clamp.",
                            "type": "integer"
                          },
                          "chronic_lung_disease": {
                            "description": "Pre-injury chronic lung disease as assigned by the caller (Battle 2014 Table 4). true or false. true scores 5.",
                            "type": "boolean"
                          },
                          "preinjury_anticoagulants": {
                            "description": "Pre-injury anticoagulant use as assigned by the caller (Battle 2014 Table 4). true or false. true scores 4.",
                            "type": "boolean"
                          },
                          "rib_count": {
                            "description": "Caller-assigned number of rib fractures, integer 0–24. Battle 2014 Table 4: 3 points per additional rib fracture (3 ribs scores 9). magent does not examine the chest or count ribs.",
                            "type": "integer"
                          },
                          "spo2_percent": {
                            "description": "Oxygen saturation percent, integer 50–100. Battle 2014 Table 4 footnote c: 2 points per 5% decrease starting at 94% (≥95 scores 0; else 2*(1+div(94-spo2_percent, 5)); 87% scores 4). magent does not measure SpO2.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "age",
                          "rib_count",
                          "chronic_lung_disease",
                          "preinjury_anticoagulants",
                          "spo2_percent"
                        ],
                        "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"
  }
}