Health
Calculate the 2005 Caprini Risk Assessment Model to stratify venous thromboembolism (VTE) risk in surgical patients. ~40 items weighted 1/2/3/5 points: 1 point (age 41-60, minor surgery, BMI >25, swollen legs, varicose veins, pregnancy/postpartum, recurrent miscarriage, OCP/HRT, sepsis <1mo, lung disease/pneumonia <1mo, COPD, acute MI, CHF <1mo, bedridden, medical bed rest, IBD); 2 points (age 61-74, arthroscopic surgery, major open surgery >45min, laparoscopic >45min, malignancy, bed >72h, plaster cast, central line); 3 points (age ≥75, personal/family VTE history, factor V Leiden, prothrombin 20210A, lupus anticoagulant, anticardiolipin, homocysteine, HIT, other thrombophilia); 5 points (stroke <1mo, elective major lower-extremity arthroplasty, hip/pelvis/leg fracture <1mo, acute spinal cord injury <1mo, multiple trauma <1mo). Management tiers: 0 lowest, 1-4 low-moderate (mechanical), 5-6 high (consider LMWH 7-10d), 7-8 high (LMWH 7-10d), ≥9 highest (LMWH 30d). Derived from Caprini 2005. Not medical advice.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/caprini-score' \
-H 'Content-Type: application/json' \
-d '{"age41to60":false,"minorSurgery":false,"bmi25":false,"swollenLegs":false,"varicose":false,"pregnancy":false,"miscarriage":false,"ocp":false,"sepsis":false,"lungDisease":false,"copd":false,"mi":false,"chf":false,"bedridden":false,"medicalBedRest":false,"ibd":false,"age61to74":true,"arthroscopic":false,"majorOpen":true,"laparoscopic":false,"malignancy":true,"bed72h":false,"plasterCast":false,"centralLine":false,"ageGte75":false,"personalVte":true,"familyVte":false,"factorV":false,"prothrombin":false,"lupusAnticoag":false,"anticardiolipin":false,"homocysteine":false,"hit":false,"otherThrombophilia":false,"stroke":false,"electiveArthroplasty":false,"hipFracture":false,"spinalCord":false,"multipleTrauma":false}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST http://127.0.0.1:3003/en/api/tools/caprini-score| Name | Type | Required | Description |
|---|---|---|---|
| age41to60 | checkbox | No | +1. |
| minorSurgery | checkbox | No | +1. |
| bmi25 | checkbox | No | +1. |
| swollenLegs | checkbox | No | +1. |
| varicose | checkbox | No | +1. |
| pregnancy | checkbox | No | +1. |
| miscarriage | checkbox | No | +1. |
| ocp | checkbox | No | +1. |
| sepsis | checkbox | No | +1. |
| lungDisease | checkbox | No | +1. |
| copd | checkbox | No | +1. |
| mi | checkbox | No | +1. |
| chf | checkbox | No | +1. |
| bedridden | checkbox | No | +1. |
| medicalBedRest | checkbox | No | +1. |
| ibd | checkbox | No | +1. |
| age61to74 | checkbox | No | +2. |
| arthroscopic | checkbox | No | +2. |
| majorOpen | checkbox | No | +2. |
| laparoscopic | checkbox | No | +2. |
| malignancy | checkbox | No | +2. |
| bed72h | checkbox | No | +2. |
| plasterCast | checkbox | No | +2. |
| centralLine | checkbox | No | +2. |
| ageGte75 | checkbox | No | +3. |
| personalVte | checkbox | No | +3. |
| familyVte | checkbox | No | +3. |
| factorV | checkbox | No | +3. |
| prothrombin | checkbox | No | +3. |
| lupusAnticoag | checkbox | No | +3. |
| anticardiolipin | checkbox | No | +3. |
| homocysteine | checkbox | No | +3. |
| hit | checkbox | No | +3. |
| otherThrombophilia | checkbox | No | +3. |
| stroke | checkbox | No | +5. |
| electiveArthroplasty | checkbox | No | +5. |
| hipFracture | checkbox | No | +5. |
| spinalCord | checkbox | No | +5. |
| multipleTrauma | checkbox | No | +5. |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}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-caprini-score": {
"name": "caprini-score",
"description": "Calculate the 2005 Caprini Risk Assessment Model to stratify venous thromboembolism (VTE) risk in surgical patients. ~40 items weighted 1/2/3/5 points: 1 point (age 41-60, minor surgery, BMI >25, swollen legs, varicose veins, pregnancy/postpartum, recurrent miscarriage, OCP/HRT, sepsis <1mo, lung disease/pneumonia <1mo, COPD, acute MI, CHF <1mo, bedridden, medical bed rest, IBD); 2 points (age 61-74, arthroscopic surgery, major open surgery >45min, laparoscopic >45min, malignancy, bed >72h, plaster cast, central line); 3 points (age ≥75, personal/family VTE history, factor V Leiden, prothrombin 20210A, lupus anticoagulant, anticardiolipin, homocysteine, HIT, other thrombophilia); 5 points (stroke <1mo, elective major lower-extremity arthroplasty, hip/pelvis/leg fracture <1mo, acute spinal cord injury <1mo, multiple trauma <1mo). Management tiers: 0 lowest, 1-4 low-moderate (mechanical), 5-6 high (consider LMWH 7-10d), 7-8 high (LMWH 7-10d), ≥9 highest (LMWH 30d). Derived from Caprini 2005. Not medical advice.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=caprini-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": "caprini-score",
"arguments": {
"age41to60": false,
"minorSurgery": false,
"bmi25": false,
"swollenLegs": false,
"varicose": false,
"pregnancy": false,
"miscarriage": false,
"ocp": false,
"sepsis": false,
"lungDisease": false,
"copd": false,
"mi": false,
"chf": false,
"bedridden": false,
"medicalBedRest": false,
"ibd": false,
"age61to74": true,
"arthroscopic": false,
"majorOpen": true,
"laparoscopic": false,
"malignancy": true,
"bed72h": false,
"plasterCast": false,
"centralLine": false,
"ageGte75": false,
"personalVte": true,
"familyVte": false,
"factorV": false,
"prothrombin": false,
"lupusAnticoag": false,
"anticardiolipin": false,
"homocysteine": false,
"hit": false,
"otherThrombophilia": false,
"stroke": false,
"electiveArthroplasty": false,
"hipFracture": false,
"spinalCord": false,
"multipleTrauma": false
}
}
}Questions or issues? Contact [email protected]