{
  "x402Version": 2,
  "id": 39271,
  "slug": "39271",
  "resource": "https://api.magentlab.com/api/calc/cage",
  "description": "Ewing 1984 CAGE questionnaire: four caller-assigned yes/no items (cut down, annoyed, guilty, eye-opener), 1 point each, max 4. Screen-positive when two or more answers are affirmative (score ≥2). Deterministic published score with citation; not a diagnosis of alcohol use disorder, not CIWA-Ar, and not AUDIT. magent does not interpret individual items.",
  "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": [
              {
                "annoyed": false,
                "cut_down": false,
                "eye_opener": false,
                "guilty": false
              },
              {
                "annoyed": false,
                "cut_down": false,
                "eye_opener": false,
                "guilty": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Ewing JA",
                  "doi": "10.1001/jama.1984.03350140051025",
                  "id": "ewing-1984",
                  "source": "JAMA. 1984;252(14):1905-1907",
                  "title": "Detecting alcoholism. The CAGE questionnaire"
                },
                "components": [
                  {
                    "factor": "cut_down",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "annoyed",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "guilty",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "eye_opener",
                    "points": 0,
                    "present": false
                  }
                ],
                "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": "cage",
                "formula_expression": "CAGE = cut_down + annoyed + guilty + eye_opener; each 1 if true; max 4",
                "max_score": 4,
                "score": 0,
                "screen_positive": false
              },
              {
                "citation": {
                  "authors": "Ewing JA",
                  "doi": "10.1001/jama.1984.03350140051025",
                  "id": "ewing-1984",
                  "source": "JAMA. 1984;252(14):1905-1907",
                  "title": "Detecting alcoholism. The CAGE questionnaire"
                },
                "components": [
                  {
                    "factor": "cut_down",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "annoyed",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "guilty",
                    "points": 0,
                    "present": false
                  },
                  {
                    "factor": "eye_opener",
                    "points": 0,
                    "present": false
                  }
                ],
                "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": "cage",
                "formula_expression": "CAGE = cut_down + annoyed + guilty + eye_opener; each 1 if true; max 4",
                "max_score": 4,
                "score": 0,
                "screen_positive": false
              }
            ],
            "path": "/api/calc/cage"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "annoyed": {
                          "description": "Have people Annoyed you by criticizing your drinking? (Ewing 1984). true or false as assigned by the caller. magent does not interpret the item.",
                          "type": "boolean"
                        },
                        "cut_down": {
                          "description": "Have you ever felt you should Cut down on your drinking? (Ewing 1984). true or false as assigned by the caller. magent does not interpret the item.",
                          "type": "boolean"
                        },
                        "eye_opener": {
                          "description": "Have you ever had a drink first thing in the morning to steady your nerves or get rid of a hangover (Eye-opener)? (Ewing 1984). true or false as assigned by the caller. magent does not interpret the item.",
                          "type": "boolean"
                        },
                        "guilty": {
                          "description": "Have you ever felt bad or Guilty about your drinking? (Ewing 1984). true or false as assigned by the caller. magent does not interpret the item.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "cut_down",
                        "annoyed",
                        "guilty",
                        "eye_opener"
                      ],
                      "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": [
    "cage",
    "alcohol",
    "screening",
    "emergency",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T00:50:56.136Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T00:50:56.014Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "annoyed": false,
                  "cut_down": false,
                  "eye_opener": false,
                  "guilty": false
                },
                {
                  "annoyed": false,
                  "cut_down": false,
                  "eye_opener": false,
                  "guilty": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Ewing JA",
                    "doi": "10.1001/jama.1984.03350140051025",
                    "id": "ewing-1984",
                    "source": "JAMA. 1984;252(14):1905-1907",
                    "title": "Detecting alcoholism. The CAGE questionnaire"
                  },
                  "components": [
                    {
                      "factor": "cut_down",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "annoyed",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "guilty",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "eye_opener",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "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": "cage",
                  "formula_expression": "CAGE = cut_down + annoyed + guilty + eye_opener; each 1 if true; max 4",
                  "max_score": 4,
                  "score": 0,
                  "screen_positive": false
                },
                {
                  "citation": {
                    "authors": "Ewing JA",
                    "doi": "10.1001/jama.1984.03350140051025",
                    "id": "ewing-1984",
                    "source": "JAMA. 1984;252(14):1905-1907",
                    "title": "Detecting alcoholism. The CAGE questionnaire"
                  },
                  "components": [
                    {
                      "factor": "cut_down",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "annoyed",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "guilty",
                      "points": 0,
                      "present": false
                    },
                    {
                      "factor": "eye_opener",
                      "points": 0,
                      "present": false
                    }
                  ],
                  "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": "cage",
                  "formula_expression": "CAGE = cut_down + annoyed + guilty + eye_opener; each 1 if true; max 4",
                  "max_score": 4,
                  "score": 0,
                  "screen_positive": false
                }
              ],
              "path": "/api/calc/cage"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "annoyed": {
                            "description": "Have people Annoyed you by criticizing your drinking? (Ewing 1984). true or false as assigned by the caller. magent does not interpret the item.",
                            "type": "boolean"
                          },
                          "cut_down": {
                            "description": "Have you ever felt you should Cut down on your drinking? (Ewing 1984). true or false as assigned by the caller. magent does not interpret the item.",
                            "type": "boolean"
                          },
                          "eye_opener": {
                            "description": "Have you ever had a drink first thing in the morning to steady your nerves or get rid of a hangover (Eye-opener)? (Ewing 1984). true or false as assigned by the caller. magent does not interpret the item.",
                            "type": "boolean"
                          },
                          "guilty": {
                            "description": "Have you ever felt bad or Guilty about your drinking? (Ewing 1984). true or false as assigned by the caller. magent does not interpret the item.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "cut_down",
                          "annoyed",
                          "guilty",
                          "eye_opener"
                        ],
                        "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"
  }
}