# magent ONLS Calculator (Graham 2006)

> magent ONLS Calculator (Graham 2006) 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-15).

Computes the Overall Neuropathy Limitations Scale (ONLS) total score (0-12) from caller-assigned arm scale (0-5) and leg scale (0-7).

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/onls
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-onls-calculator-graham-2006-5a689d31
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MXmd7ro4MOpkRobTD1v_z

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-onls-calculator-graham-2006-5a689d31
```

Example prompt: Calculate the ONLS score for a patient with an arm scale of 2 (disability affecting but not preventing arm functions) and a leg scale of 4 (requires bilateral support to walk 10 metres).

## When to prefer this

Use this endpoint when you need to programmatically calculate the Graham 2006 ONLS total score from pre-assigned arm and leg subscale grades, especially in clinical trial pipelines, EHR automation, or longitudinal neuropathy monitoring workflows. Prefer this over manual arithmetic when integrating neuropathy scoring into an agent-driven clinical decision support or data aggregation system. Note: this is not ODSS and not Adjusted ONLS.

## Known failure modes

- Invalid arm_scale value outside 0-5 enum returns validation error
- Invalid leg_scale value outside 0-7 enum returns validation error
- Missing required query parameters returns 400 error
- Payment failure (x402) if USDC not provided or insufficient

## How this service works

Graham 2006 ONLS: caller-assigned arm_scale 0-5 plus leg_scale 0-7. Sum 0-12. Score 0 is no limitations. Arm 5 or leg 7 is no purposeful movement of that region. Leg 0 requires walking, stairs, and running unaffected. Remaining grades match ODSS; this is not ODSS and not Adjusted ONLS. magent does not observe the patient. No published total-score severity bands. Not a diagnosis and not a medical device.

## Output

Returns the computed ONLS total score (integer 0-12), which is the sum of the arm scale (0-5) and leg scale (0-7). Score of 0 means no functional limitations; higher scores indicate greater neuropathy-related disability. No severity band labels are published for the total score.

## 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": [
      "arm_scale",
      "leg_scale"
     ],
     "properties": {
      "arm_scale": {
       "enum": [
        0,
        1,
        2,
        3,
        4,
        5
       ],
       "type": "integer",
       "description": "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": {
       "enum": [
        0,
        1,
        2,
        3,
        4,
        5,
        6,
        7
       ],
       "type": "integer",
       "description": "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."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-onls-calculator-graham-2006-5a689d31/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)
