# Brindle 2021 Edinburgh Gastric Ulcer Malignancy Score

> Brindle 2021 Edinburgh Gastric Ulcer Malignancy Score 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 Brindle 2021 Edinburgh gastric ulcer score (0–6) and returns a higher_malignancy_risk flag for human gastric ulcers at index OGD, based on patient age, ulcer size, and ulcer location.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/egus
- 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/brindle-2021-edinburgh-gastric-ulcer-malignancy-score-9ad5a2d1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_69aKt8c5xJ0ge5arefKcF

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 brindle-2021-edinburgh-gastric-ulcer-malignancy-score-9ad5a2d1
```

Example prompt: Score a gastric ulcer found at index OGD in a 74-year-old patient — the ulcer is 1.8 cm and located in the antrum. What's the Edinburgh malignancy score and is there a higher malignancy risk?

## When to prefer this

Use this endpoint when you need a standardized, evidence-based gastric ulcer malignancy risk score for a human patient at index OGD with a macroscopically benign appearance and at least 6 negative biopsies. It implements the Brindle 2021 Edinburgh scoring rule exactly, making it preferable to manual calculation. Do not use for equine gastric ulcer syndrome (EGUS), for gastric ulcers with suspicious macroscopic appearance, or as a substitute for histopathology.

## Known failure modes

- Missing required query parameters (age, ulcer_size_cm, location) returns a 400 error
- Age outside 18–120 range is clamped or rejected
- ulcer_size_cm outside 0.1–40 cm is clamped to internal bounds
- Invalid location enum value (not 'antral' or 'non-antral') returns validation error
- Payment not provided or insufficient USDC results in 402 Payment Required

## How this service works

Brindle 2021 Edinburgh gastric ulcer score (human gastric ulcer at index OGD): age <68 → 0, 68-79 → 1, ≥80 → 2; size <1.25 cm → 0, 1.25-2.99 cm → 2, ≥3.00 cm → 3 (no 1-point size band); antral 0, non-antral 1. Total 0-6. higher_malignancy_risk iff score ≥ 3. Use only with macroscopically benign appearance and ≥6 negative biopsies. magent does not read endoscopy images. Not equine EGUS. Not a medical device.

## Output

Returns the Brindle 2021 Edinburgh gastric ulcer total score (integer 0–6), a boolean higher_malignancy_risk field (true if score ≥ 3), and the component subscores for age, ulcer size, and ulcer location.

## 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": [
      "age",
      "ulcer_size_cm",
      "location"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). Brindle 2021: <68 → 0; 68-79 → 1; ≥80 → 2."
      },
      "location": {
       "enum": [
        "antral",
        "non-antral"
       ],
       "type": "string",
       "description": "Caller-assigned ulcer location (Brindle 2021). antral (antrum or pre-pylorus) scores 0; non-antral scores 1. Case-insensitive. magent does not read endoscopy images or assign location."
      },
      "ulcer_size_cm": {
       "type": "number",
       "description": "Endoscopist-estimated ulcer size in cm as assigned by the caller (Brindle 2021). <1.25 cm → 0; 1.25-2.99 cm → 2; ≥3.00 cm → 3. There is no 1-point size band. Magent clamp 0.1-40, not a published range. magent does not measure the ulcer."
      }
     }
    }
   },
   "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/brindle-2021-edinburgh-gastric-ulcer-malignancy-score-9ad5a2d1/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)
