Coach de modélisation épidémique SIR/SEIR, R0 et interventions — API & MCP | Elysia Tools
Health
Coach de modélisation épidémique SIR/SEIR, R0 et interventions Intègre les EDO SIR/SEIR/SEIR+V/SEIR+H par RK4 : R0, seuil d’immunité, pic et taille finale analytiques, conversion du taux de croissance, matrice de nouvelle génération WAIFW, ajustement MCO et simulation d’interventions.
Démarrage rapide Appelez cet outil depuis votre code en trois langages.
cURL JavaScript Python
cURL
Copiercurl -X POST 'http://127.0.0.1:3003/fr/api/tools/sir-seir-compartmental-epidemic-r0-and-intervention-modeling-coach' \
-H 'Content-Type: application/json' \
-d '{"model":"SEIR","population":1000000,"r0":2.5,"infectiousDays":5,"latentDays":3,"initialInfectious":10,"days":180,"interventionDay":40,"interventionBetaReduction":40,"vaccinationDay":0,"vaccinationRate":0,"hospProp":0,"hospLosDays":10,"waifw":"","fitData":""}' Référence de l'API Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
Point d'accès HTTP
CopierPOST http://127.0.0.1:3003/fr/api/tools/sir-seir-compartmental-epidemic-r0-and-intervention-modeling-coach Paramètres Nom Type Requis Description model select Non — population number Non — r0 number Non — infectiousDays number Non — latentDays number Non —
Intégration MCP Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Configuration du serveur Ajoutez ce bloc à la configuration de votre client MCP :
mcp.json
Copier{
"mcpServers" : {
"elysiatools-sir-seir-compartmental-epidemic-r0-and-intervention-modeling-coach" : {
"name" : "sir-seir-compartmental-epidemic-r0-and-intervention-modeling-coach" ,
"description" : "Intègre les EDO SIR/SEIR/SEIR+V/SEIR+H par RK4 : R0, seuil d’immunité, pic et taille finale analytiques, conversion du taux de croissance, matrice de nouvelle génération WAIFW, ajustement MCO et simulation d’interventions." ,
"baseUrl" : "http://127.0.0.1:3003/mcp/sse?toolId=sir-seir-compartmental-epidemic-r0-and-intervention-modeling-coach" ,
"command" : "" ,
"args" : [],
"env" : {},
"isActive" : true ,
"type" : "sse"
}
}
}Lister les outils disponibles Après connexion au point d'accès SSE, listez les outils exposés :
tools/list
Copier{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"method" : "tools/list"
}Appeler cet outil Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
tools/call
Copier{
"jsonrpc" : "2.0" ,
"id" : 2 ,
"method" : "tools/call" ,
"params" : {
"name" : "sir-seir-compartmental-epidemic-r0-and-intervention-modeling-coach" ,
"arguments" : {
"model" : "SEIR" ,
"population" : 1000000 ,
"r0" : 2.5 ,
"infectiousDays" : 5 ,
"latentDays" : 3 ,
"initialInfectious" : 10 ,
"days" : 180 ,
"interventionDay" : 40 ,
"interventionBetaReduction" : 40 ,
"vaccinationDay" : 0 ,
"vaccinationRate" : 0 ,
"hospProp" : 0 ,
"hospLosDays" : 10 ,
"waifw" : "" ,
"fitData" : ""
}
}
}
interventionDay number Non —
interventionBetaReduction number Non —
vaccinationRate number Non —
Format de réponse Résultat HTML
JSON
Copier{
"result" : "<div>Processed HTML content</div>" ,
"error" : "Error message (optional)" ,
"message" : "Notification message (optional)" ,
"metadata" : {
"key" : "value"
}
}Chaînez plusieurs outils dans une session avec une liste toolId séparée par des virgules, ex. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (20 max).