# magent GAD-7 Generalized Anxiety Disorder Score Calculator

> magent GAD-7 Generalized Anxiety Disorder Score Calculator is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Computes the Spitzer 2006 GAD-7 total score (0–21) and severity band from seven caller-assigned 0–3 item ratings, returning case-finding flag for scores ≥10

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/gad_7
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-gad-7-generalized-anxiety-disorder-score-calculator-1f42c43b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KaoRcFgbF3W0BZBwJ5DAe

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability magent-gad-7-generalized-anxiety-disorder-score-calculator-1f42c43b
```

Example prompt: Calculate the GAD-7 score for a patient who rated nervous=2, control_worry=1, worry_too_much=2, relaxing=1, restless=1, irritable=2, afraid=1 — give me the total, severity level, and whether they meet the case-finding cutoff of 10.

## When to prefer this

Use this endpoint when you need deterministic, published-formula GAD-7 arithmetic with a structured JSON response including severity banding, case-finding flag, and citable reference — ideal for autonomous health agents that must not perform their own arithmetic and need an auditable, versioned calculation engine. Prefer over manual summation when you need consistent citation provenance (Spitzer 2006 DOI/PMID) and a built-in minimal/mild/moderate/severe classifier.

## Known failure modes

- Missing any of the seven required query parameters returns an error
- Any item value outside integer 0–3 is invalid and may cause an error or unexpected result
- Non-integer float values for item scores may be rejected
- Network or payment authorization failure returns 402 Payment Required

## How this service works

Spitzer 2006 GAD-7 from seven caller-assigned integers 0-3 (nervous, control worry, worry too much, relaxing, restless, irritable, afraid); magent does not interpret the items. Total 0-21. Cut points 5/10/15 (mild/moderate/severe); 0-4 is below the mild cut (minimal). Returns case_finding_ge_10 (score ≥10; paper sensitivity 89% and specificity 82% for GAD). Not a GAD diagnosis, not a treatment order, not PHQ-9, and not GAD-2.

## Output

Returns a JSON object with the GAD-7 total score (0–21), severity label (minimal, mild, moderate, or severe based on cut points 5/10/15), a boolean case_finding_ge_10 flag (sensitivity 89%, specificity 82% for GAD), a breakdown of each of the seven component scores, the formula expression, and the full Spitzer 2006 citation with DOI and PMID. Includes a disclaimer that output is not a medical diagnosis or treatment order.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "nervous",
      "control_worry",
      "worry_too_much",
      "relaxing",
      "restless",
      "irritable",
      "afraid"
     ],
     "properties": {
      "afraid": {
       "type": "integer",
       "description": "Caller-assigned Spitzer 2006 GAD-7 item 7 points (integer 0-3): feeling afraid as if something awful might happen. magent does not interpret the item."
      },
      "nervous": {
       "type": "integer",
       "description": "Caller-assigned Spitzer 2006 GAD-7 item 1 points (integer 0-3): feeling nervous, anxious, or on edge. magent does not interpret the item."
      },
      "relaxing": {
       "type": "integer",
       "description": "Caller-assigned Spitzer 2006 GAD-7 item 4 points (integer 0-3): trouble relaxing. magent does not interpret the item."
      },
      "restless": {
       "type": "integer",
       "description": "Caller-assigned Spitzer 2006 GAD-7 item 5 points (integer 0-3): being so restless that it is hard to sit still. magent does not interpret the item."
      },
      "irritable": {
       "type": "integer",
       "description": "Caller-assigned Spitzer 2006 GAD-7 item 6 points (integer 0-3): becoming easily annoyed or irritable. magent does not interpret the item."
      },
      "control_worry": {
       "type": "integer",
       "description": "Caller-assigned Spitzer 2006 GAD-7 item 2 points (integer 0-3): not being able to stop or control worrying. magent does not interpret the item."
      },
      "worry_too_much": {
       "type": "integer",
       "description": "Caller-assigned Spitzer 2006 GAD-7 item 3 points (integer 0-3): worrying too much about different things. magent does not interpret the item."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "obje
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/gad_7",
  "count": 2,
  "items": [
   {
    "score": 0,
    "formula": "gad_7",
    "citation": {
     "id": "spitzer-2006",
     "doi": "10.1001/archinte.166.10.1092",
     "pmid": "16717171",
     "title": "A brief measure for assessing generalized anxiety disorder: the GAD-7",
     "source": "Arch Intern Med. 2006;166(10):1092-1097",
     "authors": "Spitzer RL, Kroenke K, Williams JBW, Löwe B"
    },
    "severity": "minimal",
    "max_score": 21,
    "components": [
     {
      "value": 0,
      "factor": "nervous",
      "points": 0,
      "present": true
     },
     {
      "value": 0,
      "factor": "control_worry",
      "points": 0,
      "present": true
     },
     {
      "value": 0,
      "factor": "worry_too_much",
      "points": 0,
      "present": true
     },
     {
      "value": 0,
      "factor": "relaxing",
      "points": 0,
      "present": true
     },
     {
      "value": 0,
      "factor": "restless",
      "points": 0,
      "present": true
     },
     {
      "value": 0,
      "factor": "irritable",
      "points": 0,
      "present": true
     },
     {
      "value": 0,
      "factor": "afraid",
      "points": 0,
      "present": true
     }
    ],
    "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.",
    "case_finding_ge_10": false,
    "formula_expression": "GAD-7 = nervous + control_worry + worry_too_much + relaxing + restless + irritable + afraid; each caller-assigned 0-3; max 21"
   },
   {
    "score": 0,
    "formula": "gad_7",
    "citation": {
     "id": "spitzer-2006",
     "doi": "10.1001/archinte.166.10.1092",
     "pmid": "16717171",
     "title": "A brief measure for assessing generalized anxiety disorder: the GAD-7",
     "source": "Arch Intern Med. 2006;166(10):1092-1097",
     "authors": "Spitzer RL, Kroenke K, Williams JBW, Löwe B"
    },
    "severity": "minimal",
    "max_score": 21,
    "components": [
     {
      "value": 0,
      "factor": "nervous",
      "points": 0,
      "present": true
     },
     {
      "value": 0,
      "factor": "control_worry",
      "points": 0,
      "present": true
     },
     {
      "value": 0,
      "factor": "worry_too_much",
      "points": 0,
      "present": true
     },
     {
      "value": 0,
      "factor": "relaxing",
      "points": 0,
      "presen
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-gad-7-generalized-anxiety-disorder-score-calculator-1f42c43b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
