Education
Compute 2-3 gene Mendelian crosses with a full Punnett square and forked-line branch diagram. Supports complete, incomplete and codominance inheritance.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/punnett-trihybrid-cross' \
-H 'Content-Type: application/json' \
-d '{"genes":"Seed color = Y,y\nSeed shape = R,r","parent1":"YyRr","parent2":"YyRr","display":"both","sort":"freq"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/punnett-trihybrid-cross| Name | Type | Required | Description |
|---|---|---|---|
| genes | textarea | Yes | Declare 2 or 3 genes, one per line. Format: Trait = Allele1,Allele2 [mode]. Mode is optional (default complete). |
| parent1 | text | Yes | Parent 1 genotype. Use the same letters as declared in the genes above. |
| parent2 | text | Yes | Parent 2 genotype. |
| display | select | No | Both shows the full grid and the branch diagram. Punnett shows only the grid + ratios. Forked shows only the branch method. |
| sort | select |
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-punnett-trihybrid-cross": {
"name": "punnett-trihybrid-cross",
"description": "Compute 2-3 gene Mendelian crosses with a full Punnett square and forked-line branch diagram. Supports complete, incomplete and codominance inheritance.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=punnett-trihybrid-cross",
"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": "punnett-trihybrid-cross",
"arguments": {
"genes": "Seed color = Y,y\nSeed shape = R,r",
"parent1": "YyRr",
"parent2": "YyRr",
"display": "both",
"sort": "freq"
}
}
}Questions or issues? Contact [email protected]
| No |
| How to sort the genotype and phenotype ratio lists. |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}