{
  "x402Version": 2,
  "id": 39036,
  "slug": "39036",
  "resource": "https://api.magentlab.com/api/calc/mess",
  "description": "Johansen 1990 Mangled Extremity Severity Score (MESS): caller-assigned skeletal/soft-tissue energy 1-4, limb ischemia 1-3 (doubled if ischemia time >6 hours), shock 0-2, and age points (<30 → 0, 30-50 → 1, >50 → 2). Max 14. MESS ≥7 predicted amputation with 100% accuracy in that series (mess_band 0-6 or >=7). Deterministic published arithmetic with citation. Not an amputation or limb-salvage protocol; magent does not examine the limb. Not later papers' cutoff of 8.",
  "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": 25,
                "ischemia_over_6h": false,
                "limb_ischemia": 1,
                "shock": 0,
                "skeletal_soft_tissue": 1
              },
              {
                "age": 25,
                "ischemia_over_6h": false,
                "limb_ischemia": 1,
                "shock": 0,
                "skeletal_soft_tissue": 1
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age": 25,
                "age_points": 0,
                "citation": {
                  "authors": "Johansen K, Daines M, Howey T, Helfet D, Hansen ST",
                  "doi": "10.1097/00005373-199005000-00007",
                  "id": "johansen-1990",
                  "pmid": "2342140",
                  "source": "J Trauma. 1990;30(5):568-572",
                  "title": "Objective criteria accurately predict amputation following lower extremity trauma"
                },
                "components": [
                  {
                    "factor": "skeletal_soft_tissue",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "doubled": false,
                    "factor": "limb_ischemia",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "shock",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 25
                  }
                ],
                "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": "mess",
                "formula_expression": "MESS = skeletal_soft_tissue (1-4) + limb_ischemia (1-3, doubled if ischemia_over_6h) + shock (0-2) + age_points (<30 → 0, 30-50 → 1, >50 → 2); Johansen 1990 band 0-6 / >=7; max 14",
                "ischemia_over_6h": false,
                "ischemia_points": 1,
                "limb_ischemia": 1,
                "max_score": 14,
                "mess_band": "0-6",
                "score": 2,
                "shock": 0,
                "skeletal_soft_tissue": 1
              },
              {
                "age": 25,
                "age_points": 0,
                "citation": {
                  "authors": "Johansen K, Daines M, Howey T, Helfet D, Hansen ST",
                  "doi": "10.1097/00005373-199005000-00007",
                  "id": "johansen-1990",
                  "pmid": "2342140",
                  "source": "J Trauma. 1990;30(5):568-572",
                  "title": "Objective criteria accurately predict amputation following lower extremity trauma"
                },
                "components": [
                  {
                    "factor": "skeletal_soft_tissue",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "doubled": false,
                    "factor": "limb_ischemia",
                    "points": 1,
                    "present": true,
                    "value": 1
                  },
                  {
                    "factor": "shock",
                    "points": 0,
                    "present": false,
                    "value": 0
                  },
                  {
                    "factor": "age",
                    "points": 0,
                    "present": false,
                    "value": 25
                  }
                ],
                "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": "mess",
                "formula_expression": "MESS = skeletal_soft_tissue (1-4) + limb_ischemia (1-3, doubled if ischemia_over_6h) + shock (0-2) + age_points (<30 → 0, 30-50 → 1, >50 → 2); Johansen 1990 band 0-6 / >=7; max 14",
                "ischemia_over_6h": false,
                "ischemia_points": 1,
                "limb_ischemia": 1,
                "max_score": 14,
                "mess_band": "0-6",
                "score": 2,
                "shock": 0,
                "skeletal_soft_tissue": 1
              }
            ],
            "path": "/api/calc/mess"
          },
          "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 0-120). Johansen 1990 points: <30 → 0, 30-50 → 1, >50 → 2. Not the adult 18-120 clamp.",
                          "type": "integer"
                        },
                        "ischemia_over_6h": {
                          "description": "true if limb ischemia time is greater than 6 hours (Johansen 1990 doubles the ischemia score). true or false as assigned by the caller.",
                          "type": "boolean"
                        },
                        "limb_ischemia": {
                          "description": "Caller-assigned Johansen 1990 limb ischemia (integer 1 pulse reduced but perfusion normal, 2 pulseless with paresthesia, or 3 cool paralyzed insensate). Doubled when ischemia_over_6h is true.",
                          "type": "integer"
                        },
                        "shock": {
                          "description": "Caller-assigned Johansen 1990 shock (integer 0 SBP always >90, 1 transient <90, or 2 persistent <90).",
                          "type": "integer"
                        },
                        "skeletal_soft_tissue": {
                          "description": "Caller-assigned Johansen 1990 skeletal/soft-tissue energy (integer 1 low, 2 medium, 3 high, or 4 very high). magent does not examine the limb.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "skeletal_soft_tissue",
                        "limb_ischemia",
                        "shock",
                        "age",
                        "ischemia_over_6h"
                      ],
                      "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": [
    "mess",
    "trauma",
    "ischemia",
    "emergency",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T08:31:17.332Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T08:31:17.192Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 25,
                  "ischemia_over_6h": false,
                  "limb_ischemia": 1,
                  "shock": 0,
                  "skeletal_soft_tissue": 1
                },
                {
                  "age": 25,
                  "ischemia_over_6h": false,
                  "limb_ischemia": 1,
                  "shock": 0,
                  "skeletal_soft_tissue": 1
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age": 25,
                  "age_points": 0,
                  "citation": {
                    "authors": "Johansen K, Daines M, Howey T, Helfet D, Hansen ST",
                    "doi": "10.1097/00005373-199005000-00007",
                    "id": "johansen-1990",
                    "pmid": "2342140",
                    "source": "J Trauma. 1990;30(5):568-572",
                    "title": "Objective criteria accurately predict amputation following lower extremity trauma"
                  },
                  "components": [
                    {
                      "factor": "skeletal_soft_tissue",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "doubled": false,
                      "factor": "limb_ischemia",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "shock",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 25
                    }
                  ],
                  "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": "mess",
                  "formula_expression": "MESS = skeletal_soft_tissue (1-4) + limb_ischemia (1-3, doubled if ischemia_over_6h) + shock (0-2) + age_points (<30 → 0, 30-50 → 1, >50 → 2); Johansen 1990 band 0-6 / >=7; max 14",
                  "ischemia_over_6h": false,
                  "ischemia_points": 1,
                  "limb_ischemia": 1,
                  "max_score": 14,
                  "mess_band": "0-6",
                  "score": 2,
                  "shock": 0,
                  "skeletal_soft_tissue": 1
                },
                {
                  "age": 25,
                  "age_points": 0,
                  "citation": {
                    "authors": "Johansen K, Daines M, Howey T, Helfet D, Hansen ST",
                    "doi": "10.1097/00005373-199005000-00007",
                    "id": "johansen-1990",
                    "pmid": "2342140",
                    "source": "J Trauma. 1990;30(5):568-572",
                    "title": "Objective criteria accurately predict amputation following lower extremity trauma"
                  },
                  "components": [
                    {
                      "factor": "skeletal_soft_tissue",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "doubled": false,
                      "factor": "limb_ischemia",
                      "points": 1,
                      "present": true,
                      "value": 1
                    },
                    {
                      "factor": "shock",
                      "points": 0,
                      "present": false,
                      "value": 0
                    },
                    {
                      "factor": "age",
                      "points": 0,
                      "present": false,
                      "value": 25
                    }
                  ],
                  "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": "mess",
                  "formula_expression": "MESS = skeletal_soft_tissue (1-4) + limb_ischemia (1-3, doubled if ischemia_over_6h) + shock (0-2) + age_points (<30 → 0, 30-50 → 1, >50 → 2); Johansen 1990 band 0-6 / >=7; max 14",
                  "ischemia_over_6h": false,
                  "ischemia_points": 1,
                  "limb_ischemia": 1,
                  "max_score": 14,
                  "mess_band": "0-6",
                  "score": 2,
                  "shock": 0,
                  "skeletal_soft_tissue": 1
                }
              ],
              "path": "/api/calc/mess"
            },
            "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 0-120). Johansen 1990 points: <30 → 0, 30-50 → 1, >50 → 2. Not the adult 18-120 clamp.",
                            "type": "integer"
                          },
                          "ischemia_over_6h": {
                            "description": "true if limb ischemia time is greater than 6 hours (Johansen 1990 doubles the ischemia score). true or false as assigned by the caller.",
                            "type": "boolean"
                          },
                          "limb_ischemia": {
                            "description": "Caller-assigned Johansen 1990 limb ischemia (integer 1 pulse reduced but perfusion normal, 2 pulseless with paresthesia, or 3 cool paralyzed insensate). Doubled when ischemia_over_6h is true.",
                            "type": "integer"
                          },
                          "shock": {
                            "description": "Caller-assigned Johansen 1990 shock (integer 0 SBP always >90, 1 transient <90, or 2 persistent <90).",
                            "type": "integer"
                          },
                          "skeletal_soft_tissue": {
                            "description": "Caller-assigned Johansen 1990 skeletal/soft-tissue energy (integer 1 low, 2 medium, 3 high, or 4 very high). magent does not examine the limb.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "skeletal_soft_tissue",
                          "limb_ischemia",
                          "shock",
                          "age",
                          "ischemia_over_6h"
                        ],
                        "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"
  }
}