Education
Détermine si un individu au phénotype dominant (génotype inconnu AA ou Aa) est homozygote ou hétérozygote par un croisement test avec un homozygote récessif (aa). Si un descendant récessif (aa) apparaît → le parent est hétérozygote (Aa) ; si tous sont dominants → probablement homozygote (AA). Confiance statistique : sans récessifs, si le parent était Aa, P(0 récessif) = 0.5^n. Sources : Mendel 1866, Griffiths, Hartl & Clark 2007, StatPearls. Usage éducatif uniquement.
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'http://127.0.0.1:3003/fr/api/tools/test-cross-analyzer' \
-H 'Content-Type: application/json' \
-d '{"dominantCount":47,"recessiveCount":53,"alpha":"0.05","decimalPlaces":4}'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/test-cross-analyzer| Nom | Type | Requis | Description |
|---|---|---|---|
| dominantCount | number | Oui | Number of offspring showing the dominant phenotype. |
| recessiveCount | number | Oui | Number of offspring showing the recessive phenotype. |
| alpha | select | Oui | Significance level for the heterozygosity test. |
| 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-test-cross-analyzer": {
"name": "test-cross-analyzer",
"description": "Détermine si un individu au phénotype dominant (génotype inconnu AA ou Aa) est homozygote ou hétérozygote par un croisement test avec un homozygote récessif (aa). Si un descendant récessif (aa) apparaît → le parent est hétérozygote (Aa) ; si tous sont dominants → probablement homozygote (AA). Confiance statistique : sans récessifs, si le parent était Aa, P(0 récessif) = 0.5^n. Sources : Mendel 1866, Griffiths, Hartl & Clark 2007, StatPearls. Usage éducatif uniquement.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=test-cross-analyzer",
"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": "test-cross-analyzer",
"arguments": {
"dominantCount": 47,
"recessiveCount": 53,
"alpha": "0.05",
"decimalPlaces": 4
}
}
}Des questions ou un problème ? Contactez [email protected]