Health
Évalue le risque de MVTE chez les patients chirurgicaux (Caprini RAM 2005) : 1 point (âge 41-60, chirurgie mineure, IMC >25, jambes enflées, varices, grossesse/post-partum, fausses couches, ACO/THS, sepsis <1 mois, maladie pulmonaire grave incl. pneumonie <1 mois, BPCO, IM, IC <1 mois, alité, patient médical alité, MICI) ; 2 points (âge 61-74, arthroscopie, chirurgie ouverte >45 min, cœlioscopie >45 min, cancer, alité >72 h, plâtre, CVC) ; 3 points (âge ≥75, MVTE personnel, MVTE familial, facteur V Leiden, prothrombine 20210A, anticoagulant lupique, anticardiolipine, homocystéine, TIH, autre thrombophilie) ; 5 points (AVC <1 mois, arthroplastie majeure élective du membre inférieur, fracture hanche/bassin/jambe <1 mois, traumatisme médullaire aigu <1 mois, traumatismes multiples <1 mois). Niveaux (prise en charge) : 0 minimal, 1-4 bas-modéré (prophylaxie mécanique), 5-6 élevé (mécanique + envisager HBPM 7-10 jours), 7-8 élevé (mécanique + HBPM 7-10 jours), ≥9 maximal (mécanique + HBPM 30 jours). Source : Caprini 2005. Non un avis médical.
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'http://127.0.0.1:3003/fr/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}'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST http://127.0.0.1:3003/fr/api/tools/caprini-score| Nom | Type | Requis | Description |
|---|---|---|---|
| age41to60 | checkbox | Non | +1. |
| minorSurgery | checkbox | Non | +1. |
| bmi25 | checkbox | Non | +1. |
| swollenLegs | checkbox | Non | +1. |
| varicose | checkbox | Non | +1. |
| pregnancy | checkbox | Non | +1. |
| miscarriage | checkbox | Non | +1. |
| ocp | checkbox | Non | +1. |
| sepsis | checkbox | Non | +1. |
| lungDisease | checkbox | Non | +1. |
| copd | checkbox | Non | +1. |
| mi | checkbox | Non | +1. |
| chf | checkbox | Non | +1. |
| bedridden | checkbox | Non | +1. |
| medicalBedRest | checkbox | Non | +1. |
| ibd | checkbox | Non | +1. |
| age61to74 | checkbox | Non | +2. |
| arthroscopic | checkbox | Non | +2. |
| majorOpen | checkbox | Non | +2. |
| laparoscopic | checkbox | Non | +2. |
| malignancy | checkbox | Non | +2. |
| bed72h | checkbox | Non | +2. |
| plasterCast | checkbox | Non | +2. |
| centralLine | checkbox | Non | +2. |
| ageGte75 | checkbox | Non | +3. |
| personalVte | checkbox | Non | +3. |
| familyVte | checkbox | Non | +3. |
| factorV | checkbox | Non | +3. |
| prothrombin | checkbox | Non | +3. |
| lupusAnticoag | checkbox | Non | +3. |
| anticardiolipin | checkbox | Non | +3. |
| homocysteine | checkbox | Non | +3. |
| hit | checkbox | Non | +3. |
| otherThrombophilia | checkbox | Non | +3. |
| stroke | checkbox | Non | +5. |
| electiveArthroplasty | checkbox | Non | +5. |
| hipFracture | checkbox | Non | +5. |
| spinalCord | checkbox | Non | +5. |
| multipleTrauma | checkbox | Non | +5. |
Résultat JSON
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-caprini-score": {
"name": "caprini-score",
"description": "Évalue le risque de MVTE chez les patients chirurgicaux (Caprini RAM 2005) : 1 point (âge 41-60, chirurgie mineure, IMC >25, jambes enflées, varices, grossesse/post-partum, fausses couches, ACO/THS, sepsis <1 mois, maladie pulmonaire grave incl. pneumonie <1 mois, BPCO, IM, IC <1 mois, alité, patient médical alité, MICI) ; 2 points (âge 61-74, arthroscopie, chirurgie ouverte >45 min, cœlioscopie >45 min, cancer, alité >72 h, plâtre, CVC) ; 3 points (âge ≥75, MVTE personnel, MVTE familial, facteur V Leiden, prothrombine 20210A, anticoagulant lupique, anticardiolipine, homocystéine, TIH, autre thrombophilie) ; 5 points (AVC <1 mois, arthroplastie majeure élective du membre inférieur, fracture hanche/bassin/jambe <1 mois, traumatisme médullaire aigu <1 mois, traumatismes multiples <1 mois). Niveaux (prise en charge) : 0 minimal, 1-4 bas-modéré (prophylaxie mécanique), 5-6 élevé (mécanique + envisager HBPM 7-10 jours), 7-8 élevé (mécanique + HBPM 7-10 jours), ≥9 maximal (mécanique + HBPM 30 jours). Source : Caprini 2005. Non un avis médical.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=caprini-score",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"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
}
}
}Des questions ou un problème ? Contactez [email protected]