{
  "x402Version": 2,
  "id": 39139,
  "slug": "39139",
  "resource": "https://api.magentlab.com/api/calc/gmaws",
  "description": "McPherson 2012 GMAWS from five caller-assigned 0-2 items (tremor, sweating, hallucination, orientation, agitation) using that paper's Figure 1 0/1/2 descriptors. magent sums only (max 10) and returns Figure 1 bands zero, 1_to_3, 4_to_8, or 9_to_10. Temperature is not an item. magent does not observe the patient. Not a benzodiazepine or treatment order.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "MCP Tool",
  "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": [
              {
                "agitation": 0,
                "hallucination": 0,
                "orientation": 0,
                "sweating": 0,
                "tremor": 0
              },
              {
                "agitation": 0,
                "hallucination": 0,
                "orientation": 0,
                "sweating": 0,
                "tremor": 0
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "McPherson A, Benson G, Forrest EH",
                  "doi": "10.1093/qjmed/hcs020",
                  "id": "mcpherson-2012",
                  "pmid": "22328545",
                  "source": "QJM. 2012;105(7):649-656",
                  "title": "Appraisal of the Glasgow assessment and management of alcohol guideline: a comprehensive alcohol management protocol for use in general hospitals"
                },
                "components": [
                  {
                    "factor": "tremor",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "sweating",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "hallucination",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "orientation",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "agitation",
                    "points": 0,
                    "present": true,
                    "value": 0
                  }
                ],
                "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": "gmaws",
                "formula_expression": "GMAWS = tremor + sweating + hallucination + orientation + agitation; each caller-assigned 0-2; max 10",
                "gmaws_band": "zero",
                "max_score": 10,
                "score": 0
              },
              {
                "citation": {
                  "authors": "McPherson A, Benson G, Forrest EH",
                  "doi": "10.1093/qjmed/hcs020",
                  "id": "mcpherson-2012",
                  "pmid": "22328545",
                  "source": "QJM. 2012;105(7):649-656",
                  "title": "Appraisal of the Glasgow assessment and management of alcohol guideline: a comprehensive alcohol management protocol for use in general hospitals"
                },
                "components": [
                  {
                    "factor": "tremor",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "sweating",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "hallucination",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "orientation",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "agitation",
                    "points": 0,
                    "present": true,
                    "value": 0
                  }
                ],
                "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": "gmaws",
                "formula_expression": "GMAWS = tremor + sweating + hallucination + orientation + agitation; each caller-assigned 0-2; max 10",
                "gmaws_band": "zero",
                "max_score": 10,
                "score": 0
              }
            ],
            "path": "/api/calc/gmaws"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "agitation": {
                          "description": "Caller-assigned McPherson 2012 Figure 1 agitation (integer 0-2): 0 calm; 1 anxious; 2 panicky. magent does not observe the patient.",
                          "type": "integer"
                        },
                        "hallucination": {
                          "description": "Caller-assigned McPherson 2012 Figure 1 hallucination (integer 0-2): 0 not present; 1 dissuadable; 2 not dissuadable. magent does not observe the patient.",
                          "type": "integer"
                        },
                        "orientation": {
                          "description": "Caller-assigned McPherson 2012 Figure 1 orientation (integer 0-2): 0 orientated; 1 vague/detached; 2 disorientated, no contact. magent does not observe the patient.",
                          "type": "integer"
                        },
                        "sweating": {
                          "description": "Caller-assigned McPherson 2012 Figure 1 sweating (integer 0-2): 0 no sweat visible; 1 moist; 2 drenching sweats. magent does not observe the patient.",
                          "type": "integer"
                        },
                        "tremor": {
                          "description": "Caller-assigned McPherson 2012 Figure 1 tremor (integer 0-2): 0 no tremor; 1 on movement; 2 at rest. magent does not observe the patient.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "tremor",
                        "sweating",
                        "hallucination",
                        "orientation",
                        "agitation"
                      ],
                      "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": [
    "gmaws",
    "alcohol",
    "withdrawal",
    "emergency",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T05:11:45.674Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T05:11:45.507Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "agitation": 0,
                  "hallucination": 0,
                  "orientation": 0,
                  "sweating": 0,
                  "tremor": 0
                },
                {
                  "agitation": 0,
                  "hallucination": 0,
                  "orientation": 0,
                  "sweating": 0,
                  "tremor": 0
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "McPherson A, Benson G, Forrest EH",
                    "doi": "10.1093/qjmed/hcs020",
                    "id": "mcpherson-2012",
                    "pmid": "22328545",
                    "source": "QJM. 2012;105(7):649-656",
                    "title": "Appraisal of the Glasgow assessment and management of alcohol guideline: a comprehensive alcohol management protocol for use in general hospitals"
                  },
                  "components": [
                    {
                      "factor": "tremor",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "sweating",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "hallucination",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "orientation",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "agitation",
                      "points": 0,
                      "present": true,
                      "value": 0
                    }
                  ],
                  "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": "gmaws",
                  "formula_expression": "GMAWS = tremor + sweating + hallucination + orientation + agitation; each caller-assigned 0-2; max 10",
                  "gmaws_band": "zero",
                  "max_score": 10,
                  "score": 0
                },
                {
                  "citation": {
                    "authors": "McPherson A, Benson G, Forrest EH",
                    "doi": "10.1093/qjmed/hcs020",
                    "id": "mcpherson-2012",
                    "pmid": "22328545",
                    "source": "QJM. 2012;105(7):649-656",
                    "title": "Appraisal of the Glasgow assessment and management of alcohol guideline: a comprehensive alcohol management protocol for use in general hospitals"
                  },
                  "components": [
                    {
                      "factor": "tremor",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "sweating",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "hallucination",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "orientation",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "agitation",
                      "points": 0,
                      "present": true,
                      "value": 0
                    }
                  ],
                  "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": "gmaws",
                  "formula_expression": "GMAWS = tremor + sweating + hallucination + orientation + agitation; each caller-assigned 0-2; max 10",
                  "gmaws_band": "zero",
                  "max_score": 10,
                  "score": 0
                }
              ],
              "path": "/api/calc/gmaws"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "agitation": {
                            "description": "Caller-assigned McPherson 2012 Figure 1 agitation (integer 0-2): 0 calm; 1 anxious; 2 panicky. magent does not observe the patient.",
                            "type": "integer"
                          },
                          "hallucination": {
                            "description": "Caller-assigned McPherson 2012 Figure 1 hallucination (integer 0-2): 0 not present; 1 dissuadable; 2 not dissuadable. magent does not observe the patient.",
                            "type": "integer"
                          },
                          "orientation": {
                            "description": "Caller-assigned McPherson 2012 Figure 1 orientation (integer 0-2): 0 orientated; 1 vague/detached; 2 disorientated, no contact. magent does not observe the patient.",
                            "type": "integer"
                          },
                          "sweating": {
                            "description": "Caller-assigned McPherson 2012 Figure 1 sweating (integer 0-2): 0 no sweat visible; 1 moist; 2 drenching sweats. magent does not observe the patient.",
                            "type": "integer"
                          },
                          "tremor": {
                            "description": "Caller-assigned McPherson 2012 Figure 1 tremor (integer 0-2): 0 no tremor; 1 on movement; 2 at rest. magent does not observe the patient.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "tremor",
                          "sweating",
                          "hallucination",
                          "orientation",
                          "agitation"
                        ],
                        "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"
  }
}