Math & Numbers
Run Fisher exact test for a 2 x 2 contingency table with exact one-sided or two-sided p-values
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/fisher-exact-test-calculator' \
-H 'Content-Type: application/json' \
-d '{"cellA":8,"cellB":2,"cellC":1,"cellD":5,"alternative":"two-sided","alpha":0.05,"decimalPlaces":4}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/fisher-exact-test-calculator| Name | Type | Required | Description |
|---|---|---|---|
| cellA | number | No | — |
| cellB | number | No | — |
| cellC | number | No | — |
| cellD | number | No | — |
| alternative | select | No | — |
| alpha |
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-fisher-exact-test-calculator": {
"name": "fisher-exact-test-calculator",
"description": "Run Fisher exact test for a 2 x 2 contingency table with exact one-sided or two-sided p-values",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=fisher-exact-test-calculator",
"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": "fisher-exact-test-calculator",
"arguments": {
"cellA": 8,
"cellB": 2,
"cellC": 1,
"cellD": 5,
"alternative": "two-sided",
"alpha": 0.05,
"decimalPlaces": 4
}
}
}Questions or issues? Contact [email protected]
| number |
| No |
| — |
| decimalPlaces | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}