# LA Classification Grading (Los Angeles Classification of Oesophagitis)

> LA Classification Grading (Los Angeles Classification of Oesophagitis) 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).

Computes the Lundell 1999 Los Angeles (LA) grade (None, A, B, C, or D) for reflux oesophagitis from four caller-assigned boolean findings about mucosal breaks.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/la_grading
- 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/la-classification-grading-los-angeles-classification-of-oesophagitis-7e7a6f29
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_89DdJ5gNhT72za6eDxi-Q

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 la-classification-grading-los-angeles-classification-of-oesophagitis-7e7a6f29
```

Example prompt: The endoscopist documented a mucosal break that is more than 5 mm long but not continuous between fold tops and covers less than 75% of the circumference — what is the Lundell 1999 LA classification grade?

## When to prefer this

Choose this endpoint when you need a precise, rule-based Lundell 1999 Table 1 LA grade computed from caller-assigned endoscopic findings. It is not a substitute for Savary-Miller grading, GERD diagnosis, Barrett's oesophagus assessment, or the 1994 LA proposal (where D required full circumference). It does not interpret images — the caller must supply the boolean flags themselves. It is ideal for automating clinical documentation workflows, audit pipelines, or educational tools that already have structured endoscopic observations.

## Known failure modes

- Missing required boolean query parameters returns a validation error
- Invalid non-boolean value for any parameter causes a 400-level error
- All four booleans must be provided regardless of mucosal_break value
- Network or payment authentication failure (402 x402 protocol) prevents response

## How this service works

Lundell 1999 Table 1 Los Angeles classification. Caller-assigned flags. none if no mucosal break (not minimal changes); D if break(s) involve ≥75% of circumference; C if continuous between fold tops but <75%; B if longest break >5 mm not between fold tops; A if ≤5 mm not between fold tops. magent does not interpret images. Not Savary-Miller, GERD diagnosis, Barrett/stricture, or 1994 LA (D was fully circumferential). Not a medical device.

## Output

Returns the Lundell 1999 Los Angeles classification grade as a string: 'none' (no mucosal break), 'A' (break ≤5 mm, not between fold tops), 'B' (break >5 mm, not between fold tops), 'C' (break continuous between fold tops but <75% circumference), or 'D' (break(s) ≥75% circumference).

## 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": [
      "mucosal_break",
      "longest_break_gt_5_mm",
      "continuous_between_folds",
      "circumference_ge_75_percent"
     ],
     "properties": {
      "mucosal_break": {
       "type": "boolean",
       "description": "One or more mucosal breaks present, as assigned by the caller. Lundell 1999 defines a mucosal break as an area of slough or erythema with a discrete line of demarcation from adjacent more normal-looking mucosa. true or false. If false, la_grade is none (no LA A-D; not minimal changes). magent does not interpret endoscopy images."
      },
      "longest_break_gt_5_mm": {
       "type": "boolean",
       "description": "Longest mucosal break more than 5 mm long, as assigned by the caller (Lundell 1999 Table 1 grade B vs A). true or false. Required even when mucosal_break is false (does not change none). magent does not measure lesions."
      },
      "continuous_between_folds": {
       "type": "boolean",
       "description": "A mucosal break is continuous between the tops of two or more mucosal folds, as assigned by the caller (Lundell 1999 Table 1 grade C). true or false. Required even when mucosal_break is false (does not change none). magent does not interpret endoscopy images."
      },
      "circumference_ge_75_percent": {
       "type": "boolean",
       "description": "Mucosal break(s) involve at least 75% of the oesophageal circumference, as assigned by the caller (Lundell 1999 Table 1 grade D; the 1999 revision, not the 1994 fully circumferential proposal). true or false. Required even when mucosal_break is false (does not change none). magent does not interpret endoscopy images."
      }
     }
    }
   },
   "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/la-classification-grading-los-angeles-classification-of-oesophagitis-7e7a6f29/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)
