Science & Education
Build a Punnett square for a Mendelian cross and auto-calculate genotype and phenotype ratios. Supports complete dominance, incomplete dominance (blending), codominance, and X-linked (sex-linked) inheritance — with each offspring cell's sex marked for X-linked crosses.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/mendelian-punnett-square' \
-H 'Content-Type: application/json' \
-d '{"traitName":"Flower color","alleles":"A,a","mode":"complete","parent1":"Aa","parent2":"Aa","displayMode":"full"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/mendelian-punnett-square| Name | Type | Required | Description |
|---|---|---|---|
| traitName | text | Yes | — |
| alleles | text | Yes | Comma-separated alleles. First is treated as dominant in complete-dominance mode. |
| mode | select | No | — |
| parent1 | text | Yes | Autosomal: two alleles (Aa). X-linked: XAXa (female) or XAY (male). |
| parent2 | text | Yes | Autosomal: two alleles (Aa). X-linked: XAXa (female) or XAY (male). |
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-mendelian-punnett-square": {
"name": "mendelian-punnett-square",
"description": "Build a Punnett square for a Mendelian cross and auto-calculate genotype and phenotype ratios. Supports complete dominance, incomplete dominance (blending), codominance, and X-linked (sex-linked) inheritance — with each offspring cell's sex marked for X-linked crosses.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=mendelian-punnett-square",
"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": "mendelian-punnett-square",
"arguments": {
"traitName": "Flower color",
"alleles": "A,a",
"mode": "complete",
"parent1": "Aa",
"parent2": "Aa",
"displayMode": "full"
}
}
}| displayMode | select | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]