# magent NAFLD Activity Score (NAS) Calculator

> magent NAFLD Activity Score (NAS) 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-13).

Computes the Kleiner 2005 NAFLD Activity Score (NAS) by summing caller-assigned steatosis (0-3), lobular inflammation (0-3), and hepatocellular ballooning (0-2) scores, returning a total out of 8.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/nafld_nas
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-nafld-activity-score-nas-calculator-8211a479
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZReXlgnX8Zju2x9uoDwQ4

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-nafld-activity-score-nas-calculator-8211a479
```

Example prompt: Calculate the NAFLD activity score for a patient with steatosis 2 (>33–66%), lobular inflammation 1 (fewer than 2 foci per 200x field), and hepatocellular ballooning 1 (few ballooned cells).

## When to prefer this

Use this endpoint when you need a fast, reproducible computation of the Kleiner 2005 NAS from already-graded histology component scores. It is ideal for automating scoring in clinical research pipelines, EHR integrations, or trial data entry where a pathologist has already assigned the three component grades and you need the sum. Do not use it as a NASH diagnostic tool or to obtain a fibrosis stage — it strictly sums the three NAS components.

## Known failure modes

- Missing required query parameters (steatosis, lobular_inflammation, or ballooning) result in a validation error
- Out-of-range integer values (e.g., steatosis >3, ballooning >2) may cause rejection or unexpected behavior
- Non-integer values for any parameter will fail schema validation
- Payment failure via x402 protocol results in a 402 response with no score returned

## How this service works

Kleiner 2005 NAFLD activity score (NAS): caller-assigned steatosis 0-3 (<5% / 5–33% / >33–66% / >66%), lobular_inflammation 0-3 (none / <2 foci per 200× / 2–4 / >4), ballooning 0-2 (none / few / many or prominent). magent sums only (max 8). Fibrosis is not in NAS. Kleiner 2005 reported NAS ≥5 correlated with NASH in that study; that is not a diagnostic algorithm. magent does not read histology and does not return NASH bands.

## Output

Returns the summed NAFLD Activity Score (NAS) integer ranging from 0 to 8, calculated as steatosis + lobular_inflammation + ballooning. No NASH diagnosis, fibrosis stage, or histology interpretation is included in the response.

## 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": [
      "steatosis",
      "lobular_inflammation",
      "ballooning"
     ],
     "properties": {
      "steatosis": {
       "type": "integer",
       "description": "Caller-assigned Kleiner 2005 steatosis points 0-3 (paper bins: 0 <5%; 1 5–33%; 2 >33–66%; 3 >66%). magent does not read histology."
      },
      "ballooning": {
       "type": "integer",
       "description": "Caller-assigned Kleiner 2005 hepatocellular ballooning points 0-2 (paper bins: 0 none; 1 few; 2 many/prominent). magent does not read histology."
      },
      "lobular_inflammation": {
       "type": "integer",
       "description": "Caller-assigned Kleiner 2005 lobular inflammation points 0-3 (paper bins: 0 none; 1 <2 foci/200×; 2 2–4 foci/200×; 3 >4 foci/200×). magent does not read histology."
      }
     }
    }
   },
   "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-nafld-activity-score-nas-calculator-8211a479/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)
