# West Haven Hepatic Encephalopathy Grade Lookup

> West Haven Hepatic Encephalopathy Grade Lookup 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).

Returns the published West Haven / Conn (1977) hepatic encephalopathy grade (0–4) description and citation for a caller-assigned integer grade.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/west_haven
- 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/west-haven-hepatic-encephalopathy-grade-lookup-59e83e4d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O-GIcuNH6SX4u08iv6WhF

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 west-haven-hepatic-encephalopathy-grade-lookup-59e83e4d
```

Example prompt: What does West Haven grade 2 hepatic encephalopathy mean according to the Conn 1977 scale? Look it up for me.

## When to prefer this

Use this endpoint when you need a deterministic, citation-backed description of a West Haven hepatic encephalopathy grade that has already been assigned by a clinician, for purposes such as documentation, annotation, education, or workflow automation. Prefer this over general LLM knowledge when you need traceable sourcing to the Conn 1977 publication. Do not use this to diagnose or grade patients — the grade must be pre-assigned by a qualified clinician.

## Known failure modes

- Grade value outside 0–4 integer range returns a validation error
- Missing required 'grade' query parameter returns a 400 bad request
- Non-integer value for grade (e.g. float or string) returns a schema validation error
- Temporary service unavailability returns a 5xx error

## How this service works

West Haven / Conn hepatic encephalopathy grade 0-4 (Conn 1977). Deterministic published grade with citation. Not a diagnosis; magent does not examine the patient or apply ISHEN covert/overt or psychometric minimal-HE tests.

## Output

Returns the published West Haven / Conn 1977 grade label, clinical features/description for the given grade integer (0–4), and the associated citation. Does not perform patient examination, apply ISHEN covert/overt criteria, or administer psychometric minimal-HE tests.

## 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": [
      "grade"
     ],
     "properties": {
      "grade": {
       "type": "integer",
       "description": "Conn 1977 / West Haven hepatic encephalopathy grade 0-4 as assigned by the caller. magent does not examine the patient."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/west_haven",
  "count": 2,
  "items": [
   {
    "grade": 0,
    "score": 0,
    "formula": "west_haven",
    "citation": {
     "id": "conn-1977",
     "doi": "10.1016/S0016-5085(77)80135-2",
     "title": "Comparison of lactulose and neomycin in the treatment of chronic portal-systemic encephalopathy. A double blind controlled trial",
     "source": "Gastroenterology. 1977;72(4 Pt 1):573-583",
     "authors": "Conn HO, Leevy CM, Vlahcevic ZR, et al."
    },
    "max_score": 4,
    "components": [
     {
      "factor": "grade",
      "points": 0,
      "present": true
     }
    ],
    "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.",
    "description": "No abnormality detected",
    "formula_expression": "West Haven / Conn grade 0-4 as assigned by the caller (Conn 1977)"
   },
   {
    "grade": 0,
    "score": 0,
    "formula": "west_haven",
    "citation": {
     "id": "conn-1977",
     "doi": "10.1016/S0016-5085(77)80135-2",
     "title": "Comparison of lactulose and neomycin in the treatment of chronic portal-systemic encephalopathy. A double blind controlled trial",
     "source": "Gastroenterology. 1977;72(4 Pt 1):573-583",
     "authors": "Conn HO, Leevy CM, Vlahcevic ZR, et al."
    },
    "max_score": 4,
    "components": [
     {
      "factor": "grade",
      "points": 0,
      "present": true
     }
    ],
    "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.",
    "description": "No abnormality detected",
    "formula_expression": "West Haven / Conn grade 0-4 as assigned by the caller (Conn 1977)"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/west-haven-hepatic-encephalopathy-grade-lookup-59e83e4d/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)
