# Myasthenia gravis activities of daily living profile

MG-ADL

Status: WEDGE
Price: $0.005 USDC
`GET /api/calc/mg_adl`
HTML: https://magentlab.com/docs/mg-adl
Markdown: https://magentlab.com/docs/mg-adl.md

Not a medical device. Not a diagnosis, dose, or listing recommendation.

## What it computes

Sum eight caller-assigned Wolfe 1999 MG-ADL items (each integer 0-3) and return the published 0-24 total. Does not map to QMG or assign MGFA class.

## When to use

When an agent already has Wolfe 1999 MG-ADL 0-3 integers for the eight questions and needs the published total. magent does not examine the patient, convert MG-ADL to QMG, or assign MGFA clinical class.

## When not to use

- Not a medical device and not a myasthenia treatment, intubation, or feeding-tube order. magent does not examine the patient.
- Each of the eight Wolfe 1999 questions is a caller-assigned integer 0-3. magent does not observe speech, chewing, swallowing, breathing, grooming, transfers, diplopia, or ptosis.
- Wolfe 1999 correlated MG-ADL with QMG; that is not a conversion formula. This tool does not map MG-ADL to QMG.
- This tool does not assign MGFA clinical classification and does not return a severity band. Score and max_score only.

## Formula

```
MG-ADL = talking + chewing + swallowing + breathing + brush_comb + arise_chair + double_vision + eyelid_droop; each a caller-assigned integer 0-3; max 24; Wolfe 1999 eight-question survey; no QMG mapping; no MGFA class
```

## Citation

[Myasthenia gravis activities of daily living profile.](https://doi.org/10.1212/wnl.52.7.1487)
Wolfe GI, Herbelin L, Nations SP, Foster B, Bryan WW, Barohn RJ
Neurology. 1999;52(7):1487-1489
DOI: [10.1212/wnl.52.7.1487](https://doi.org/10.1212/wnl.52.7.1487)

## Worked example

### All eight items 0

Given: `arise_chair=0, breathing=0, brush_comb=0, chewing=0, double_vision=0, eyelid_droop=0, swallowing=0, talking=0`

1. talking, chewing, swallowing, breathing, brush_comb, arise_chair, double_vision, and eyelid_droop are 0 as assigned by the caller
2. Score = 0 (max 24). No QMG mapping. No MGFA class.


### All eight items 3

Given: `arise_chair=3, breathing=3, brush_comb=3, chewing=3, double_vision=3, eyelid_droop=3, swallowing=3, talking=3`

1. each of the eight Wolfe 1999 items is 3 as assigned by the caller
2. Score = 24 (max 24). No QMG mapping. No MGFA class.


## Also searched as

- MG-ADL
- MG ADL
- myasthenia gravis ADL
- Wolfe MG-ADL
- MG-ADL profile
- myasthenia activities of daily living
- Wolfe 1999 MG-ADL
- MG-ADL score

## Parameters

- `talking` (integer, required): Caller-assigned Wolfe 1999 MG-ADL talking (integer 0-3: 0 normal; 1 intermittent slurring or nasal speech; 2 constant slurring or nasal but can be understood; 3 difficult to understand speech). magent does not examine the patient.
- `chewing` (integer, required): Caller-assigned Wolfe 1999 MG-ADL chewing (integer 0-3: 0 normal; 1 fatigue with solid food; 2 fatigue with soft food; 3 gastric tube). magent does not examine the patient.
- `swallowing` (integer, required): Caller-assigned Wolfe 1999 MG-ADL swallowing (integer 0-3: 0 normal; 1 rare episode of choking; 2 frequent choking necessitating changes in diet; 3 gastric tube). magent does not examine the patient.
- `breathing` (integer, required): Caller-assigned Wolfe 1999 MG-ADL breathing (integer 0-3: 0 normal; 1 shortness of breath with exertion; 2 shortness of breath at rest; 3 ventilator dependence). magent does not examine the patient.
- `brush_comb` (integer, required): Caller-assigned Wolfe 1999 MG-ADL impairment of ability to brush teeth or comb hair (integer 0-3: 0 none; 1 extra effort but no rest periods needed; 2 rest periods needed; 3 cannot do one of these functions). magent does not examine the patient.
- `arise_chair` (integer, required): Caller-assigned Wolfe 1999 MG-ADL impairment of ability to arise from a chair (integer 0-3: 0 none; 1 mild, sometimes uses arms; 2 moderate, always uses arms; 3 severe, requires assistance). magent does not examine the patient.
- `double_vision` (integer, required): Caller-assigned Wolfe 1999 MG-ADL double vision (integer 0-3: 0 none; 1 occurs but not daily; 2 daily but not constant; 3 constant). magent does not examine the patient.
- `eyelid_droop` (integer, required): Caller-assigned Wolfe 1999 MG-ADL eyelid droop (integer 0-3: 0 none; 1 occurs but not daily; 2 daily but not constant; 3 constant). magent does not examine the patient.

## Bulk (POST)

POST the same path with a JSON items array. The first item is the GET unit; each additional item is $0.002. Invalid items return HTTP 400 before settlement.

Method: `POST /api/calc/mg_adl`
Max items: 25
Price: unit_amount + extra_item_amount * (n - 1) (unit 5000 atomic, extra 2000 atomic)
Status: PREVIEW

- 1 to 25 items. Each item uses the same keys as the GET query parameters.
- POST of 1 item costs the same as GET. Lists longer than 25: chunk into multiple POSTs. Extra items still execute; do not pad dummy rows.
- The first invalid item fails the whole request (index in the 400 JSON). You are not charged.
- HTTP 200 is {count, path, items}. Each items[i] is the GET 200 body for that row.
- Catalog misses (empty matches, found=false) stay paid 200s inside that slot.
- x402 resource URL is this path plus n and body_sha256. Browsers that prefer text/html get the same paywall as GET; Pay retries POST with the same items.

Example request:

```json
{
  "items": [
    {
      "arise_chair": "0",
      "breathing": "0",
      "brush_comb": "0",
      "chewing": "0",
      "double_vision": "0",
      "eyelid_droop": "0",
      "swallowing": "0",
      "talking": "0"
    },
    {
      "arise_chair": "0",
      "breathing": "0",
      "brush_comb": "0",
      "chewing": "0",
      "double_vision": "0",
      "eyelid_droop": "0",
      "swallowing": "0",
      "talking": "0"
    }
  ]
}
```

Human paywall (two-item fixture): https://api.magentlab.com/paywall/bulk/mg-adl

Example 200:

```json
{
  "count": 2,
  "path": "/api/calc/mg_adl",
  "items": [
    {
      "components": [
        {
          "value": 0,
          "factor": "talking",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "chewing",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "swallowing",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "breathing",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "brush_comb",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "arise_chair",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "double_vision",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "eyelid_droop",
          "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.",
      "citation": {
        "authors": "Wolfe GI, Herbelin L, Nations SP, Foster B, Bryan WW, Barohn RJ",
        "doi": "10.1212/wnl.52.7.1487",
        "id": "wolfe-1999",
        "pmid": "10227640",
        "source": "Neurology. 1999;52(7):1487-1489",
        "title": "Myasthenia gravis activities of daily living profile."
      },
      "formula": "mg_adl",
      "formula_expression": "MG-ADL = talking + chewing + swallowing + breathing + brush_comb + arise_chair + double_vision + eyelid_droop; each a caller-assigned integer 0-3; max 24; Wolfe 1999 eight-question survey; no QMG mapping; no MGFA class",
      "max_score": 24,
      "score": 0
    },
    {
      "components": [
        {
          "value": 0,
          "factor": "talking",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "chewing",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "swallowing",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "breathing",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "brush_comb",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "arise_chair",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "double_vision",
          "points": 0,
          "present": true
        },
        {
          "value": 0,
          "factor": "eyelid_droop",
          "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.",
      "citation": {
        "authors": "Wolfe GI, Herbelin L, Nations SP, Foster B, Bryan WW, Barohn RJ",
        "doi": "10.1212/wnl.52.7.1487",
        "id": "wolfe-1999",
        "pmid": "10227640",
        "source": "Neurology. 1999;52(7):1487-1489",
        "title": "Myasthenia gravis activities of daily living profile."
      },
      "formula": "mg_adl",
      "formula_expression": "MG-ADL = talking + chewing + swallowing + breathing + brush_comb + arise_chair + double_vision + eyelid_droop; each a caller-assigned integer 0-3; max 24; Wolfe 1999 eight-question survey; no QMG mapping; no MGFA class",
      "max_score": 24,
      "score": 0
    }
  ]
}
```

## Response fields

- `formula` (string): mg_adl
- `formula_expression` (string): Exact expression used
- `score` (integer): Wolfe 1999 MG-ADL sum of eight caller-assigned 0-3 items (0-24)
- `max_score` (integer): Always 24
- `components` (array): Per-item caller-assigned points
- `citation` (object): Wolfe et al. Neurology 1999 citation
- `disclaimer` (string): Not-a-device notice

## Example JSON

Frozen fixture. Not a live lookup.

```json
{
  "components": [
    {
      "value": 0,
      "factor": "talking",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "chewing",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "swallowing",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "breathing",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "brush_comb",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "arise_chair",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "double_vision",
      "points": 0,
      "present": true
    },
    {
      "value": 0,
      "factor": "eyelid_droop",
      "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.",
  "citation": {
    "authors": "Wolfe GI, Herbelin L, Nations SP, Foster B, Bryan WW, Barohn RJ",
    "doi": "10.1212/wnl.52.7.1487",
    "id": "wolfe-1999",
    "pmid": "10227640",
    "source": "Neurology. 1999;52(7):1487-1489",
    "title": "Myasthenia gravis activities of daily living profile."
  },
  "formula": "mg_adl",
  "formula_expression": "MG-ADL = talking + chewing + swallowing + breathing + brush_comb + arise_chair + double_vision + eyelid_droop; each a caller-assigned integer 0-3; max 24; Wolfe 1999 eight-question survey; no QMG mapping; no MGFA class",
  "max_score": 24,
  "score": 0
}
```

## Errors

- HTTP 400 `invalid_mg_adl`: talking, chewing, swallowing, breathing, brush_comb, arise_chair, double_vision, and eyelid_droop must each be an integer 0-3 (Wolfe 1999 MG-ADL). Returned before settlement; you are not charged.
- HTTP 400 `invalid_items`: POST body must be a JSON object with only an items array Returned before settlement; you are not charged.
- HTTP 400 `invalid_item_count`: items must be an array of 1 to 25 objects Returned before settlement; you are not charged.
- HTTP 400 `invalid_item`: each items entry must be a JSON object Returned before settlement; you are not charged.

Shared HTTP 402 and 503: https://magentlab.com/docs/payments

## Related tools

- [Barthel Index](https://magentlab.com/docs/barthel) — Sum ten caller-assigned Mahoney 1965 Barthel Index item points and return the published 0-100 total.
- [Katz Index of ADL](https://magentlab.com/docs/katz) — Sum six caller-assigned Katz 1963 independence flags and return the published 0–6 Index of ADL count.

## Payment

Unpaid requests return HTTP 402 even if query parameters or POST items are missing or invalid, so CDP and agents can index the path. After a PAYMENT-SIGNATURE, invalid params return HTTP 400 JSON before settlement. magent does not charge. Fix the params, then request a new 402 quote for that complete URL. Catalog misses (empty matches, found=false) are valid paid 200s.

- GET the tool with Accept: application/json (do not send Accept: text/html unless you want the human paywall).
- HTTP 402 means you have not paid. Decode the base64 PAYMENT-REQUIRED header. HTTP 503 is not a new quote.
- Sign accepts[0] (exact, EIP-3009) with validBefore = now + maxTimeoutSeconds (600 seconds), or accepts[1] (batch-settlement deposit/voucher) on product GET. Ping and POST {items} stay exact. Magent retries transient facilitator 429/5xx before answering.
- Retry the same URL with PAYMENT-SIGNATURE (base64 JSON of accepted and payload). Magent attaches canonical extensions.bazaar on CDP verify/settle; echoing 402 bazaar is optional.
- Success is HTTP 200 JSON plus PAYMENT-RESPONSE. exact settles before the tool. batch-settlement verifies (and deposit-settles) before the tool and commits the charge after HTTP 2xx. HTTP 503: retry the same PAYMENT-SIGNATURE. Mint a new exact nonce only after a new HTTP 402.

- offered `exact` on eip155:8453: Fixed-price USDC on Base. The buyer authorizes the advertised amount (EIP-3009). magent settles before the tool runs (paymentFlow upfront). extra.assetTransferMethod=eip3009 extra.paymentFlow=upfront.
- offered `batch-settlement` on eip155:8453: Payment-channel vouchers claimed later in batches. Exact stays accepts[0]. Same-path POST {items} is still exact. extra.assetTransferMethod=eip3009 extra.paymentFlow=authorization.

- not offered `upto`: Not offered. Usage-based: buyer authorizes a ceiling, seller settles the actual amount after work. Reserved for a future metered tool. Not for current calculators or code search.

Same-path POST {items} is still scheme exact: one EIP-3009 authorization for GET unit plus $0.002 per extra item. That is not x402 batch-settlement (payment channels / vouchers).

Shared HTTP 402 and 503 table: https://magentlab.com/docs/payments

Stdio MCP (one process per host): https://magentlab.com/docs/mcp

## Guarantees

- HTTP 402 is unpaid, including a missing query. After PAYMENT-SIGNATURE, invalid parameters return HTTP 400 before settlement. You are not charged. HTTP 402 never includes the tool JSON.
- exact: settlement finishes before the tool (paymentFlow upfront). batch-settlement: verify/deposit before the tool; chargedCumulativeAmount commits after HTTP 2xx. Uncertain or failed settlement fails closed (HTTP 503). Retry the same PAYMENT-SIGNATURE.
- HTTP 402 is unpaid only. Do not sign a second authorization because of a 503.
- Execution is timeout-bounded and concurrency-capped.
- Calculator inputs are stored encrypted for allowlisted operators (Magent Console). They are not in public logs, SSH lookups, catalog, or rollups. Request logs store path without query.
