# LAMS (Los Angeles Motor Scale) Calculator

> LAMS (Los Angeles Motor Scale) 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-14).

Calculates the Los Angeles Motor Scale (LAMS) score from facial droop, arm drift, and grip strength values per the Llanes 2004 protocol

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/lams
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lams-los-angeles-motor-scale-calculator-53cf1037
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dO_co8fRbxADUVFT0am25

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 lams-los-angeles-motor-scale-calculator-53cf1037
```

Example prompt: Calculate the LAMS score for a patient with facial droop present (1), arm drift that drifts down (1), and weak grip (1).

## When to prefer this

Use this endpoint when you need a deterministic, citation-backed LAMS score calculation per the Llanes 2004 protocol, particularly in pre-hospital or emergency triage workflows. Prefer this over manual arithmetic when automating stroke severity documentation or routing decisions based on LAMS thresholds.

## Known failure modes

- Missing required query parameters (facial_droop, arm_drift, or grip) returns a validation error
- Out-of-range or invalid enum values (e.g., facial_droop=2) return a schema validation error
- Payment not provided or insufficient USDC triggers a 402 Payment Required response

## How this service works

Llanes 2004 Los Angeles Motor Scale (LAMS): facial droop 0 absent / 1 present + arm drift 0 absent / 1 drifts down / 2 falls rapidly + grip 0 normal / 1 weak / 2 no grip. Max 5. Point values assigned to LAPSS motor items. Deterministic published arithmetic with citation; not NIHSS, not a stroke diagnosis or thrombolysis order. magent does not examine the patient.

## Output

Returns the computed LAMS total score (0–5), derived by summing facial droop (0–1), arm drift (0–2), and grip (0–2) per the Llanes 2004 published formula. Higher scores indicate more severe motor deficits.

## 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": [
      "facial_droop",
      "arm_drift",
      "grip"
     ],
     "properties": {
      "grip": {
       "enum": [
        0,
        1,
        2
       ],
       "type": "integer",
       "description": "Llanes 2004 grip as assigned by the caller. 0 normal, 1 weak, 2 no grip. magent does not examine the patient."
      },
      "arm_drift": {
       "enum": [
        0,
        1,
        2
       ],
       "type": "integer",
       "description": "Llanes 2004 arm drift as assigned by the caller. 0 absent, 1 drifts down, 2 falls rapidly. magent does not examine the patient."
      },
      "facial_droop": {
       "enum": [
        0,
        1
       ],
       "type": "integer",
       "description": "Llanes 2004 facial droop as assigned by the caller. 0 absent, 1 present. magent does not examine 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/lams-los-angeles-motor-scale-calculator-53cf1037/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)
