{
  "x402Version": 2,
  "id": 39012,
  "slug": "39012",
  "resource": "https://api.magentlab.com/api/calc/nafld_nas",
  "description": "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.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "ballooning": 0,
                "lobular_inflammation": 0,
                "steatosis": 0
              },
              {
                "ballooning": 0,
                "lobular_inflammation": 0,
                "steatosis": 0
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "ballooning": 0,
                "citation": {
                  "authors": "Kleiner DE, Brunt EM, Van Natta M, et al.",
                  "doi": "10.1002/hep.20701",
                  "id": "kleiner-2005",
                  "pmid": "15915461",
                  "source": "Hepatology. 2005;41(6):1313-1321",
                  "title": "Design and validation of a histological scoring system for nonalcoholic fatty liver disease."
                },
                "components": [
                  {
                    "factor": "steatosis",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "lobular_inflammation",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "ballooning",
                    "points": 0,
                    "present": true,
                    "value": 0
                  }
                ],
                "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.",
                "formula": "nafld_nas",
                "formula_expression": "NAS = steatosis (integer 0-3) + lobular_inflammation (integer 0-3) + ballooning (integer 0-2); Kleiner 2005 caller-assigned; max 8; fibrosis is not in NAS; no NASH diagnostic bands",
                "lobular_inflammation": 0,
                "max_score": 8,
                "score": 0,
                "steatosis": 0
              },
              {
                "ballooning": 0,
                "citation": {
                  "authors": "Kleiner DE, Brunt EM, Van Natta M, et al.",
                  "doi": "10.1002/hep.20701",
                  "id": "kleiner-2005",
                  "pmid": "15915461",
                  "source": "Hepatology. 2005;41(6):1313-1321",
                  "title": "Design and validation of a histological scoring system for nonalcoholic fatty liver disease."
                },
                "components": [
                  {
                    "factor": "steatosis",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "lobular_inflammation",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "ballooning",
                    "points": 0,
                    "present": true,
                    "value": 0
                  }
                ],
                "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.",
                "formula": "nafld_nas",
                "formula_expression": "NAS = steatosis (integer 0-3) + lobular_inflammation (integer 0-3) + ballooning (integer 0-2); Kleiner 2005 caller-assigned; max 8; fibrosis is not in NAS; no NASH diagnostic bands",
                "lobular_inflammation": 0,
                "max_score": 8,
                "score": 0,
                "steatosis": 0
              }
            ],
            "path": "/api/calc/nafld_nas"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "ballooning": {
                          "description": "Caller-assigned Kleiner 2005 hepatocellular ballooning points 0-2 (paper bins: 0 none; 1 few; 2 many/prominent). magent does not read histology.",
                          "type": "integer"
                        },
                        "lobular_inflammation": {
                          "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.",
                          "type": "integer"
                        },
                        "steatosis": {
                          "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.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "steatosis",
                        "lobular_inflammation",
                        "ballooning"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "nas",
    "nafld",
    "liver",
    "histology",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T09:36:12.336Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T09:36:11.92Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "ballooning": 0,
                  "lobular_inflammation": 0,
                  "steatosis": 0
                },
                {
                  "ballooning": 0,
                  "lobular_inflammation": 0,
                  "steatosis": 0
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "ballooning": 0,
                  "citation": {
                    "authors": "Kleiner DE, Brunt EM, Van Natta M, et al.",
                    "doi": "10.1002/hep.20701",
                    "id": "kleiner-2005",
                    "pmid": "15915461",
                    "source": "Hepatology. 2005;41(6):1313-1321",
                    "title": "Design and validation of a histological scoring system for nonalcoholic fatty liver disease."
                  },
                  "components": [
                    {
                      "factor": "steatosis",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "lobular_inflammation",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "ballooning",
                      "points": 0,
                      "present": true,
                      "value": 0
                    }
                  ],
                  "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.",
                  "formula": "nafld_nas",
                  "formula_expression": "NAS = steatosis (integer 0-3) + lobular_inflammation (integer 0-3) + ballooning (integer 0-2); Kleiner 2005 caller-assigned; max 8; fibrosis is not in NAS; no NASH diagnostic bands",
                  "lobular_inflammation": 0,
                  "max_score": 8,
                  "score": 0,
                  "steatosis": 0
                },
                {
                  "ballooning": 0,
                  "citation": {
                    "authors": "Kleiner DE, Brunt EM, Van Natta M, et al.",
                    "doi": "10.1002/hep.20701",
                    "id": "kleiner-2005",
                    "pmid": "15915461",
                    "source": "Hepatology. 2005;41(6):1313-1321",
                    "title": "Design and validation of a histological scoring system for nonalcoholic fatty liver disease."
                  },
                  "components": [
                    {
                      "factor": "steatosis",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "lobular_inflammation",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "ballooning",
                      "points": 0,
                      "present": true,
                      "value": 0
                    }
                  ],
                  "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.",
                  "formula": "nafld_nas",
                  "formula_expression": "NAS = steatosis (integer 0-3) + lobular_inflammation (integer 0-3) + ballooning (integer 0-2); Kleiner 2005 caller-assigned; max 8; fibrosis is not in NAS; no NASH diagnostic bands",
                  "lobular_inflammation": 0,
                  "max_score": 8,
                  "score": 0,
                  "steatosis": 0
                }
              ],
              "path": "/api/calc/nafld_nas"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "ballooning": {
                            "description": "Caller-assigned Kleiner 2005 hepatocellular ballooning points 0-2 (paper bins: 0 none; 1 few; 2 many/prominent). magent does not read histology.",
                            "type": "integer"
                          },
                          "lobular_inflammation": {
                            "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.",
                            "type": "integer"
                          },
                          "steatosis": {
                            "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.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "steatosis",
                          "lobular_inflammation",
                          "ballooning"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}