Health
Convertit l'hémoglobine entre g/dL, g/L et mmol/L. mmol/L selon le standard monomère IFCC/IUPAC (masse molaire 16.1145 g/mmol) : g/dL × 0.6206 = mmol/L ; g/dL × 10 = g/L. Références (OMS / adulte) : hommes 13.0–17.0 g/dL (130–170 g/L, 8.1–10.6 mmol/L) ; femmes 12.0–15.0 g/dL (120–150 g/L, 7.4–9.3 mmol/L). Seuil d'anémie (OMS) : hommes <13.0 g/dL ; femmes <12.0 g/dL ; grossesse <11.0 g/dL. Polyglobulie souvent >18 g/dL. Sources : OMS 2011, IFCC/IUPAC, Young 1987, StatPearls. 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/hemoglobin-unit-converter' \
-H 'Content-Type: application/json' \
-d '{"value":12,"sourceUnit":"gdl","targetUnit":"mmol","decimalPlaces":2}'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/hemoglobin-unit-converter| Nom | Type | Requis | Description |
|---|---|---|---|
| value | number | Oui | The hemoglobin value to convert. |
| sourceUnit | select | Oui | The unit of the input value. |
| targetUnit | select | Oui | The unit to convert into. |
| decimalPlaces | number | Non | — |
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-hemoglobin-unit-converter": {
"name": "hemoglobin-unit-converter",
"description": "Convertit l'hémoglobine entre g/dL, g/L et mmol/L. mmol/L selon le standard monomère IFCC/IUPAC (masse molaire 16.1145 g/mmol) : g/dL × 0.6206 = mmol/L ; g/dL × 10 = g/L. Références (OMS / adulte) : hommes 13.0–17.0 g/dL (130–170 g/L, 8.1–10.6 mmol/L) ; femmes 12.0–15.0 g/dL (120–150 g/L, 7.4–9.3 mmol/L). Seuil d'anémie (OMS) : hommes <13.0 g/dL ; femmes <12.0 g/dL ; grossesse <11.0 g/dL. Polyglobulie souvent >18 g/dL. Sources : OMS 2011, IFCC/IUPAC, Young 1987, StatPearls. Non un avis médical.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=hemoglobin-unit-converter",
"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": "hemoglobin-unit-converter",
"arguments": {
"value": 12,
"sourceUnit": "gdl",
"targetUnit": "mmol",
"decimalPlaces": 2
}
}
}Des questions ou un problème ? Contactez [email protected]