Health
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.
Call this tool from your code in three languages.
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"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/rockall-score| Name | Type | Required | Description |
|---|---|---|---|
| age | select | Yes | Age band. <60 =0; 60–79 =1; ≥80 =2. |
| shock | select | Yes | None: SBP ≥100 AND HR <100. Tachycardia: SBP ≥100 AND HR ≥100. Hypotension: SBP <100. |
| comorbidity | select | Yes | None =0; other major comorbidity =2; renal failure, liver failure, or disseminated malignancy =3. |
| diagnosis | select | Yes | Mallory-Weiss tear OR no lesion / no stigmata =0; all other diagnoses =1; upper GI malignancy =2. |
| stigmata | select |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"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"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "rockall-score",
"arguments": {
"age": "gte80",
"shock": "hypo",
"comorbidity": "other",
"diagnosis": "other",
"stigmata": "major"
}
}
}| Yes |
| None or dark spot only =0; blood in upper GI, adherent clot, or visible/spurting vessel =2. |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Questions or issues? Contact [email protected]