Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

Health

Rockall Score (Upper GI Bleeding, Complete)

Calculate the COMPLETE (post-endoscopy) Rockall score for acute upper gastrointestinal hemorrhage (AUGIB) to predict rebleeding and mortality. Five parameters: Age (<60 =0, 60–79 =1, ≥80 =2); Shock (none SBP≥100 & HR<100 =0, tachycardia SBP≥100 & HR≥100 =1, hypotension SBP<100 =2); Comorbidity (none =0, other major =2, renal/liver failure or disseminated malignancy =3); Endoscopic diagnosis (Mallory-Weiss or no lesion/stigmata =0, all other =1, upper GI malignancy =2); Stigmata of recent hemorrhage (none or dark spot only =0, blood/adherent clot/visible vessel =2). The first three parameters alone form the PRE-ENDOSCOPIC score (0–7); all five form the COMPLETE score (0–11). Interpretation: ≤2 low risk (~4.9% rebleeding, ~0% mortality — consider early discharge); ≥5 high risk. Derived from Rockall et al. 1996 (Gut). The Glasgow-Blatchford Score better identifies very-low-risk patients. Not medical advice.

json· JSON resultOpen tool

Quick start

Call this tool from your code in three languages.

cURL
curl -X POST 'https://api.elysiatools.com/en/api/tools/rockall-score' \
  -H 'Content-Type: application/json' \
  -d '{"age":"gte80","shock":"hypo","comorbidity":"other","diagnosis":"other","stigmata":"major"}'

API reference

Send a POST request with your inputs as JSON. File parameters require a separate upload first.

Endpoint

HTTP
POST https://api.elysiatools.com/en/api/tools/rockall-score

Parameters

NameTypeRequiredDescription
ageselectYesAge band. <60 =0; 60–79 =1; ≥80 =2.
shockselectYesNone: SBP ≥100 AND HR <100. Tachycardia: SBP ≥100 AND HR ≥100. Hypotension: SBP <100.
comorbidityselectYesNone =0; other major comorbidity =2; renal failure, liver failure, or disseminated malignancy =3.
diagnosisselectYesMallory-Weiss tear OR no lesion / no stigmata =0; all other diagnoses =1; upper GI malignancy =2.
stigmataselect

MCP integration

Add this tool to your Model Context Protocol server so AI agents can list and call it.

Server configuration

Add this block to your MCP client configuration:

mcp.json
{
  "mcpServers": {
    "elysiatools-rockall-score": {
      "name": "rockall-score",
      "description": "Calculate the COMPLETE (post-endoscopy) Rockall score for acute upper gastrointestinal hemorrhage (AUGIB) to predict rebleeding and mortality. Five parameters: Age (<60 =0, 60–79 =1, ≥80 =2); Shock (none SBP≥100 & HR<100 =0, tachycardia SBP≥100 & HR≥100 =1, hypotension SBP<100 =2); Comorbidity (none =0, other major =2, renal/liver failure or disseminated malignancy =3); Endoscopic diagnosis (Mallory-Weiss or no lesion/stigmata =0, all other =1, upper GI malignancy =2); Stigmata of recent hemorrhage (none or dark spot only =0, blood/adherent clot/visible vessel =2). The first three parameters alone form the PRE-ENDOSCOPIC score (0–7); all five form the COMPLETE score (0–11). Interpretation: ≤2 low risk (~4.9% rebleeding, ~0% mortality — consider early discharge); ≥5 high risk. Derived from Rockall et al. 1996 (Gut). The Glasgow-Blatchford Score better identifies very-low-risk patients. Not medical advice.",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=rockall-score",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

List available tools

After connecting to the SSE endpoint, list the exposed tools:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Call this tool

Invoke the tool by its id, passing arguments built from its parameters:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "rockall-score",
    "arguments": {
  "age": "gte80",
  "shock": "hypo",
  "comorbidity": "other",
  "diagnosis": "other",
  "stigmata": "major"
}
  }
}
Browse toolsOpen tool

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools
Yes
None or dark spot only =0; blood in upper GI, adherent clot, or visible/spurting vessel =2.

Response format

JSON result

JSON
{
  "key": {...},
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).

Questions or issues? Contact [email protected]