# magent EVendo Score (Dong 2019)

> magent EVendo Score (Dong 2019) 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 Dong 2019 EVendo score to screen for high-risk esophageal varices using lab values and ascites status in US conventional units

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/evendo
- 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/magent-evendo-score-dong-2019-5a0e4601
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BRvIRO5z2zUxVxjOeo4cz

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-evendo-score-dong-2019-5a0e4601
```

Example prompt: Calculate the EVendo score for a patient with INR 1.4, AST 88 U/L, platelets 95 k/µL, BUN 18 mg/dL, hemoglobin 10.2 g/dL, and no clinically evident ascites — I want to know if they screen above the high-risk cutoff of 3.90.

## When to prefer this

Use this endpoint when you need a fast, non-invasive Dong 2019 EVendo score for esophageal variceal risk stratification from standard lab values in US conventional units. Prefer this over manual formula calculation when automating hepatology workflows or integrating into EHR pipelines. Not suitable for diagnosis, endoscopy ordering, or when SI units are the source format without prior conversion.

## Known failure modes

- Non-positive or out-of-range lab values rejected (INR must be 0.8–4.0, AST 5–4000 U/L, platelets 10–800 k/µL, BUN 2–150 mg/dL, hemoglobin 4–20 g/dL)
- Missing required query parameters return an error
- Incorrect units (e.g. SI instead of US conventional) will produce incorrect scores silently
- Boolean ascites field sent as string instead of true/false may cause a parsing error
- Payment failure (402) if x402 USDC payment header not included

## How this service works

Dong 2019 EVendo score for screening high-risk esophageal varices. A = (8.5 * INR) + (AST/35); B = (platelets/150) + (BUN/20) + (hemoglobin/15); score = A/B + 1 if ascites. US conventional units. Round to 2 decimals. Published cutoff strictly below 3.90. magent clamps: INR 0.8-4.0, AST 5-4000 U/L, platelets 10-800 k/uL, BUN 2-150 mg/dL, hemoglobin 4-20 g/dL. Not a varices diagnosis or endoscopy order. magent does not assay labs. Not a medical device.

## Output

Returns the EVendo score rounded to 2 decimal places, computed as A/B (plus 1 if ascites), where A = (8.5 × INR) + (AST/35) and B = (platelets/150) + (BUN/20) + (hemoglobin/15). Input values are clamped to physiologically valid ranges. A score strictly below 3.90 indicates lower risk per the published cutoff. The result is a numerical screening output only, not a diagnosis or endoscopy order.

## 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": [
      "inr",
      "ast_u_l",
      "platelets_k_ul",
      "bun_mg_dl",
      "hemoglobin_g_dl",
      "ascites"
     ],
     "properties": {
      "inr": {
       "type": "number",
       "description": "International normalized ratio (0.8-4.0, magent clamp). Dong 2019 uses INR. Rejects non-positive INR. magent does not assay coagulation."
      },
      "ascites": {
       "type": "boolean",
       "description": "Clinically evident ascites as assigned by the caller (Dong 2019). true adds 1 to the score; false adds 0. true or false. magent does not examine the abdomen."
      },
      "ast_u_l": {
       "type": "number",
       "description": "Aspartate aminotransferase in U/L (5-4000, magent clamp). US conventional units as in Dong 2019. Rejects non-positive AST. magent does not assay AST."
      },
      "bun_mg_dl": {
       "type": "number",
       "description": "Blood urea nitrogen in mg/dL (2-150, magent clamp). US conventional units as in Dong 2019. Rejects non-positive BUN. magent does not assay BUN."
      },
      "platelets_k_ul": {
       "type": "number",
       "description": "Platelet count in 10^3/µL (10-800, magent clamp), the same unit as 10^9/L. US conventional units as in Dong 2019. Rejects non-positive platelets. magent does not assay platelets."
      },
      "hemoglobin_g_dl": {
       "type": "number",
       "description": "Hemoglobin in g/dL (4-20, magent clamp). US conventional units as in Dong 2019. Rejects non-positive hemoglobin. magent does not assay hemoglobin."
      }
     }
    }
   },
   "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-evendo-score-dong-2019-5a0e4601/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)
