{
  "x402Version": 2,
  "id": 39316,
  "slug": "39316",
  "resource": "https://api.magentlab.com/api/calc/ais_inhalation",
  "description": "Endorf 2007 bronchoscopic AIS inhalation injury grade 0-4 as assigned by the caller. Returns ais_grade, the published bronchoscopic description, and high_grade (true when grade is 2-4; those grades had worse survival than 0-1, P = .03). magent does not perform bronchoscopy. Not a diagnosis. Not ISS body-region AIS. Not RADS CT smoke score. Not a medical device.",
  "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": [
              {
                "ais_grade": 0
              },
              {
                "ais_grade": 0
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "ais_grade": 0,
                "citation": {
                  "authors": "Endorf FW, Gamelli RL",
                  "doi": "10.1097/bcr.0b013e31802c889f",
                  "id": "endorf-2007",
                  "pmid": "17211205",
                  "source": "J Burn Care Res. 2007;28(1):80-83",
                  "title": "Inhalation injury, pulmonary perturbations, and fluid resuscitation"
                },
                "components": [
                  {
                    "factor": "grade_0",
                    "met": true
                  },
                  {
                    "factor": "grade_1",
                    "met": false
                  },
                  {
                    "factor": "grade_2",
                    "met": false
                  },
                  {
                    "factor": "grade_3",
                    "met": false
                  },
                  {
                    "factor": "grade_4",
                    "met": false
                  }
                ],
                "description": "No injury: absence of carbonaceous deposits, erythema, edema, bronchorrhea, or obstruction",
                "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": "ais_inhalation",
                "formula_expression": "ais_grade in {0, 1, 2, 3, 4} as assigned by the caller (Endorf 2007 bronchoscopic grading derived from AIS criteria). high_grade iff ais_grade >= 2 (grades 2, 3, and 4 had significantly worse survival than grades 0 or 1, P = .03). magent does not perform bronchoscopy. Not ISS body-region AIS. Not RADS CT smoke score.",
                "high_grade": false
              },
              {
                "ais_grade": 0,
                "citation": {
                  "authors": "Endorf FW, Gamelli RL",
                  "doi": "10.1097/bcr.0b013e31802c889f",
                  "id": "endorf-2007",
                  "pmid": "17211205",
                  "source": "J Burn Care Res. 2007;28(1):80-83",
                  "title": "Inhalation injury, pulmonary perturbations, and fluid resuscitation"
                },
                "components": [
                  {
                    "factor": "grade_0",
                    "met": true
                  },
                  {
                    "factor": "grade_1",
                    "met": false
                  },
                  {
                    "factor": "grade_2",
                    "met": false
                  },
                  {
                    "factor": "grade_3",
                    "met": false
                  },
                  {
                    "factor": "grade_4",
                    "met": false
                  }
                ],
                "description": "No injury: absence of carbonaceous deposits, erythema, edema, bronchorrhea, or obstruction",
                "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": "ais_inhalation",
                "formula_expression": "ais_grade in {0, 1, 2, 3, 4} as assigned by the caller (Endorf 2007 bronchoscopic grading derived from AIS criteria). high_grade iff ais_grade >= 2 (grades 2, 3, and 4 had significantly worse survival than grades 0 or 1, P = .03). magent does not perform bronchoscopy. Not ISS body-region AIS. Not RADS CT smoke score.",
                "high_grade": false
              }
            ],
            "path": "/api/calc/ais_inhalation"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "ais_grade": {
                          "description": "Endorf 2007 bronchoscopic AIS inhalation grade 0-4 as assigned by the caller (0 no injury: absence of carbonaceous deposits, erythema, edema, bronchorrhea, or obstruction; 1 mild: minor or patchy areas of erythema, carbonaceous deposits in proximal or distal bronchi, any or combination; 2 moderate: moderate degree of erythema, carbonaceous deposits, bronchorrhea, with or without compromise of the bronchi, any or combination; 3 severe: severe inflammation with friability, copious carbonaceous deposits, bronchorrhea, bronchial obstruction, any or combination; 4 massive: evidence of mucosal sloughing, necrosis, endoluminal obliteration, any or combination). Integer 0-4 only; reject 5, 1.5, and roman I. magent does not perform bronchoscopy. Not ISS body-region AIS. Not RADS CT smoke score.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "ais_grade"
                      ],
                      "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": [
    "ais-inhalation",
    "burns",
    "bronchoscopy",
    "emergency",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-12T23:30:50.632Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-12T23:30:50.5Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "ais_grade": 0
                },
                {
                  "ais_grade": 0
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "ais_grade": 0,
                  "citation": {
                    "authors": "Endorf FW, Gamelli RL",
                    "doi": "10.1097/bcr.0b013e31802c889f",
                    "id": "endorf-2007",
                    "pmid": "17211205",
                    "source": "J Burn Care Res. 2007;28(1):80-83",
                    "title": "Inhalation injury, pulmonary perturbations, and fluid resuscitation"
                  },
                  "components": [
                    {
                      "factor": "grade_0",
                      "met": true
                    },
                    {
                      "factor": "grade_1",
                      "met": false
                    },
                    {
                      "factor": "grade_2",
                      "met": false
                    },
                    {
                      "factor": "grade_3",
                      "met": false
                    },
                    {
                      "factor": "grade_4",
                      "met": false
                    }
                  ],
                  "description": "No injury: absence of carbonaceous deposits, erythema, edema, bronchorrhea, or obstruction",
                  "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": "ais_inhalation",
                  "formula_expression": "ais_grade in {0, 1, 2, 3, 4} as assigned by the caller (Endorf 2007 bronchoscopic grading derived from AIS criteria). high_grade iff ais_grade >= 2 (grades 2, 3, and 4 had significantly worse survival than grades 0 or 1, P = .03). magent does not perform bronchoscopy. Not ISS body-region AIS. Not RADS CT smoke score.",
                  "high_grade": false
                },
                {
                  "ais_grade": 0,
                  "citation": {
                    "authors": "Endorf FW, Gamelli RL",
                    "doi": "10.1097/bcr.0b013e31802c889f",
                    "id": "endorf-2007",
                    "pmid": "17211205",
                    "source": "J Burn Care Res. 2007;28(1):80-83",
                    "title": "Inhalation injury, pulmonary perturbations, and fluid resuscitation"
                  },
                  "components": [
                    {
                      "factor": "grade_0",
                      "met": true
                    },
                    {
                      "factor": "grade_1",
                      "met": false
                    },
                    {
                      "factor": "grade_2",
                      "met": false
                    },
                    {
                      "factor": "grade_3",
                      "met": false
                    },
                    {
                      "factor": "grade_4",
                      "met": false
                    }
                  ],
                  "description": "No injury: absence of carbonaceous deposits, erythema, edema, bronchorrhea, or obstruction",
                  "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": "ais_inhalation",
                  "formula_expression": "ais_grade in {0, 1, 2, 3, 4} as assigned by the caller (Endorf 2007 bronchoscopic grading derived from AIS criteria). high_grade iff ais_grade >= 2 (grades 2, 3, and 4 had significantly worse survival than grades 0 or 1, P = .03). magent does not perform bronchoscopy. Not ISS body-region AIS. Not RADS CT smoke score.",
                  "high_grade": false
                }
              ],
              "path": "/api/calc/ais_inhalation"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "ais_grade": {
                            "description": "Endorf 2007 bronchoscopic AIS inhalation grade 0-4 as assigned by the caller (0 no injury: absence of carbonaceous deposits, erythema, edema, bronchorrhea, or obstruction; 1 mild: minor or patchy areas of erythema, carbonaceous deposits in proximal or distal bronchi, any or combination; 2 moderate: moderate degree of erythema, carbonaceous deposits, bronchorrhea, with or without compromise of the bronchi, any or combination; 3 severe: severe inflammation with friability, copious carbonaceous deposits, bronchorrhea, bronchial obstruction, any or combination; 4 massive: evidence of mucosal sloughing, necrosis, endoluminal obliteration, any or combination). Integer 0-4 only; reject 5, 1.5, and roman I. magent does not perform bronchoscopy. Not ISS body-region AIS. Not RADS CT smoke score.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "ais_grade"
                        ],
                        "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"
  }
}