MAGENT

Neurology · LIVE

Overall Neuropathy Limitations Scale

ONLS

Sum Graham 2006 Overall Neuropathy Limitations Scale from caller-assigned arm_scale (0-5) and leg_scale (0-7) and return score 0-12. Does not apply unpublished total-score severity bands.

LIVE $0.005 USDC GET /api/calc/onls

Markdown: /docs/onls.md · Canonical: https://magentlab.com/docs/onls

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

What it computes

Sum Graham 2006 Overall Neuropathy Limitations Scale from caller-assigned arm_scale (0-5) and leg_scale (0-7) and return score 0-12. Does not apply unpublished total-score severity bands.

When to use

When an agent already has Graham 2006 ONLS arm and leg integers and needs that published total. magent does not observe the patient, score ODSS, score Adjusted ONLS, or invent mild/moderate/severe bands.

When not to use

  • Not a medical device and not a neuropathy diagnosis or treatment order. magent does not observe the patient.
  • Each of arm_scale (0-5) and leg_scale (0-7) is a caller-assigned Graham 2006 integer. magent does not examine gait, stairs, running, or listed arm functions.
  • This is Graham 2006 ONLS, not ODSS. Leg 0 (no limitations) requires walking, climbing stairs, and running not affected; remaining scoring criteria are not different from ODSS.
  • Not BloodSTAR Adjusted ONLS. magent does not drop arm 0 to 1 changes.
  • Graham 2006 published no total-score mild/moderate/severe bands. This tool returns score and max_score only.

Formula

ONLS = arm_scale (integer 0-5) + leg_scale (integer 0-7); Graham 2006 modified ODSS; total 0-12; score 0 = no limitations (ceiling); arm 5 or leg 7 = no purposeful movement of that region; leg 0 requires walking, climbing stairs, and running not affected; remaining scoring criteria are not different from ODSS; magent does not observe the patient; no published total-score severity bands

Citation

Title
A modified peripheral neuropathy scale: the Overall Neuropathy Limitations Scale
Authors
Graham RC, Hughes RAC
Source
J Neurol Neurosurg Psychiatry. 2006;77(8):973-976
DOI
10.1136/jnnp.2005.081547

Worked example

Arm 2 and leg 3 is score 5

Given: arm_scale=2leg_scale=3

  1. arm_scale 2 as assigned by the caller (disability affecting but not preventing any listed arm function)
  2. leg_scale 3 as assigned by the caller (unilateral support to walk 10 metres)
  3. score = 2 + 3 = 5 (max 12). Graham 2006 published no total-score severity band.

Arm 0 and leg 0 is score 0 (no limitations)

Given: arm_scale=0leg_scale=0

  1. arm_scale 0 and leg_scale 0 as assigned by the caller
  2. score = 0 + 0 = 0 (max 12). Score 0 is the published no-limitations ceiling.

Arm 5 and leg 7 is score 12

Given: arm_scale=5leg_scale=7

  1. arm_scale 5 as assigned by the caller (both arms preventing all purposeful movements)
  2. leg_scale 7 as assigned by the caller (wheelchair or bed most of the day, no purposeful leg movements)
  3. score = 5 + 7 = 12 (max 12). No total-score severity band.

Also searched as

  • ONLS
  • Overall Neuropathy Limitations Scale
  • Graham Hughes ONLS
  • Graham 2006 ONLS
  • modified ODSS
  • ONLS arm and leg scale
  • peripheral neuropathy limitations scale
  • Overall Neuropathy Limitations Score

Try

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

/api/calc/onls?arm_scale=2&leg_scale=3

Full URL: https://api.magentlab.com/api/calc/onls?arm_scale=2&leg_scale=3

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/onls?arm_scale=2&leg_scale=3"

Parameters

Name Type Required Description
arm_scale integer required · 0, 1, 2, 3, 4, 5 Caller-assigned Graham 2006 ONLS arm scale (integer 0-5): 0 normal; 1 minor symptoms not affecting listed functions; 2 disability affecting but not preventing any listed function; 3 preventing at least one but not all listed functions; 4 both arms preventing all listed functions but purposeful movement still possible; 5 both arms preventing all purposeful movements. Listed functions: wash and brush hair, turn a key, use knife and fork (or spoon), do/undo buttons or zips, dress the upper body. magent does not observe the patient.
leg_scale integer required · 0, 1, 2, 3, 4, 5, 6, 7 Caller-assigned Graham 2006 ONLS leg scale (integer 0-7): 0 walking, climbing stairs, and running not affected; 1 walking/stairs/running affected but gait does not look abnormal; 2 walks independently but gait looks abnormal; 3 requires unilateral support to walk 10 metres; 4 requires bilateral support to walk 10 metres; 5 requires wheelchair to travel 10 metres but able to stand and walk 1 metre with help of one person; 6 restricted to wheelchair, unable to make any purposeful movement of the legs; 7 restricted to wheelchair or bed most of the day, unable to make any purposeful movements of the legs. magent does not observe 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/onls 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": [
    {
      "arm_scale": "2",
      "leg_scale": "3"
    },
    {
      "arm_scale": "2",
      "leg_scale": "3"
    }
  ]
}

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/onls",
  "items": [
    {
      "components": [
        {
          "value": 2,
          "factor": "arm_scale",
          "points": 2,
          "present": true
        },
        {
          "value": 3,
          "factor": "leg_scale",
          "points": 3,
          "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": "Graham RC, Hughes RAC",
        "doi": "10.1136/jnnp.2005.081547",
        "id": "graham-hughes-2006",
        "pmid": "16574730",
        "source": "J Neurol Neurosurg Psychiatry. 2006;77(8):973-976",
        "title": "A modified peripheral neuropathy scale: the Overall Neuropathy Limitations Scale"
      },
      "formula": "onls",
      "formula_expression": "ONLS = arm_scale (integer 0-5) + leg_scale (integer 0-7); Graham 2006 modified ODSS; total 0-12; score 0 = no limitations (ceiling); arm 5 or leg 7 = no purposeful movement of that region; leg 0 requires walking, climbing stairs, and running not affected; remaining scoring criteria are not different from ODSS; magent does not observe the patient; no published total-score severity bands",
      "max_score": 12,
      "score": 5,
      "arm_scale": 2,
      "leg_scale": 3
    },
    {
      "components": [
        {
          "value": 2,
          "factor": "arm_scale",
          "points": 2,
          "present": true
        },
        {
          "value": 3,
          "factor": "leg_scale",
          "points": 3,
          "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": "Graham RC, Hughes RAC",
        "doi": "10.1136/jnnp.2005.081547",
        "id": "graham-hughes-2006",
        "pmid": "16574730",
        "source": "J Neurol Neurosurg Psychiatry. 2006;77(8):973-976",
        "title": "A modified peripheral neuropathy scale: the Overall Neuropathy Limitations Scale"
      },
      "formula": "onls",
      "formula_expression": "ONLS = arm_scale (integer 0-5) + leg_scale (integer 0-7); Graham 2006 modified ODSS; total 0-12; score 0 = no limitations (ceiling); arm 5 or leg 7 = no purposeful movement of that region; leg 0 requires walking, climbing stairs, and running not affected; remaining scoring criteria are not different from ODSS; magent does not observe the patient; no published total-score severity bands",
      "max_score": 12,
      "score": 5,
      "arm_scale": 2,
      "leg_scale": 3
    }
  ]
}

Response

Field Type Description
formula string onls
formula_expression string Exact expression used
arm_scale integer Caller-assigned Graham 2006 ONLS arm scale 0-5
leg_scale integer Caller-assigned Graham 2006 ONLS leg scale 0-7
score integer ONLS sum of caller-assigned arm_scale and leg_scale (0-12)
max_score integer Always 12
components array Per-scale caller-assigned points
citation object Graham and Hughes JNNP 2006 citation
disclaimer string Not-a-device notice

Example JSON

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

{
  "components": [
    {
      "value": 2,
      "factor": "arm_scale",
      "points": 2,
      "present": true
    },
    {
      "value": 3,
      "factor": "leg_scale",
      "points": 3,
      "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": "Graham RC, Hughes RAC",
    "doi": "10.1136/jnnp.2005.081547",
    "id": "graham-hughes-2006",
    "pmid": "16574730",
    "source": "J Neurol Neurosurg Psychiatry. 2006;77(8):973-976",
    "title": "A modified peripheral neuropathy scale: the Overall Neuropathy Limitations Scale"
  },
  "formula": "onls",
  "formula_expression": "ONLS = arm_scale (integer 0-5) + leg_scale (integer 0-7); Graham 2006 modified ODSS; total 0-12; score 0 = no limitations (ceiling); arm 5 or leg 7 = no purposeful movement of that region; leg 0 requires walking, climbing stairs, and running not affected; remaining scoring criteria are not different from ODSS; magent does not observe the patient; no published total-score severity bands",
  "max_score": 12,
  "score": 5,
  "arm_scale": 2,
  "leg_scale": 3
}

Client errors (HTTP 400)

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

HTTP Code When
400 invalid_onls ONLS needs arm_scale 0-5 and leg_scale 0-7 as Graham 2006 integers. 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

  • Modified Rankin — Return the van Swieten 1988 modified Rankin handicap grade 0-5 from a caller-assigned integer, with the published grade wording.
  • Barthel Index — Sum ten caller-assigned Mahoney 1965 Barthel Index item points and return the published 0-100 total.
  • NIHSS — Sum Brott 1989 NIH stroke scale points from 15 caller-assigned examination integers, including pupillary response and plantar reflex. Weaker-limb motor arm and leg. Does not apply later total-score severity bands.

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.