MAGENT

Neurology · WEDGE

Myasthenia gravis activities of daily living profile

MG-ADL

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.

WEDGE $0.005 USDC GET /api/calc/mg_adl

Markdown: /docs/mg-adl.md · Canonical: https://magentlab.com/docs/mg-adl

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

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

Worked example

All eight items 0

Given: arise_chair=0breathing=0brush_comb=0chewing=0double_vision=0eyelid_droop=0swallowing=0talking=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=3breathing=3brush_comb=3chewing=3double_vision=3eyelid_droop=3swallowing=3talking=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

Try

Opens the live endpoint. Unpaid browser requests show the paywall; agents should send Accept: application/json.

/api/calc/mg_adl?talking=0&chewing=0&swallowing=0&breathing=0&brush_comb=0&arise_chair=0&double_vision=0&eyelid_droop=0

Full URL: https://api.magentlab.com/api/calc/mg_adl?talking=0&chewing=0&swallowing=0&breathing=0&brush_comb=0&arise_chair=0&double_vision=0&eyelid_droop=0

Call

Expect HTTP 402 until you retry with PAYMENT-SIGNATURE. Incomplete query params return HTTP 400 before any quote or charge.

curl -i -H "Accept: application/json" "https://api.magentlab.com/api/calc/mg_adl?talking=0&chewing=0&swallowing=0&breathing=0&brush_comb=0&arise_chair=0&double_vision=0&eyelid_droop=0"

Parameters

Name Type Required Description
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.

POST /api/calc/mg_adl Max 25 unit_amount + extra_item_amount * (n - 1) extra $0.002 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 (fixture)

{
  "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"
    }
  ]
}

Open bulk paywall →

Opens a two-item fixture on the API host. Unpaid browsers get the same MetaMask paywall as GET; Pay retries POST with those items.

Example 200 (fixture)

{
  "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

Field Type Description
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

Machine form of the same example. Frozen fixture. Not a live lookup.

{
  "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
}

Client errors (HTTP 400)

Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.

HTTP Code When
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.
400 invalid_items POST body must be a JSON object with only an items array Returned before settlement; you are not charged.
400 invalid_item_count items must be an array of 1 to 25 objects Returned before settlement; you are not charged.
400 invalid_item each items entry must be a JSON object Returned before settlement; you are not charged.

Related tools

  • Barthel Index — Sum ten caller-assigned Mahoney 1965 Barthel Index item points and return the published 0-100 total.
  • Katz Index of ADL — 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. Unpaid valid requests return HTTP 402 with a base64 PAYMENT-REQUIRED header. HTTP 503 is not a new quote: retry the same PAYMENT-SIGNATURE. Full handshake and shared payment errors: Payments. Stdio MCP: /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.