Math & Numbers
Calculate one-tailed or two-tailed p-values for Z, t, chi-square, and F test statistics
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/p-value-calculator' \
-H 'Content-Type: application/json' \
-d '{"testStatistic":1.96,"distribution":"z","tail":"two-tail","degreesOfFreedom":10,"numeratorDf":5,"denominatorDf":10,"decimalPlaces":6}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/p-value-calculator| Name | Type | Required | Description |
|---|---|---|---|
| testStatistic | number | No | — |
| distribution | select | No | — |
| tail | select | No | — |
| degreesOfFreedom | number | No | — |
| numeratorDf | number | No | — |
| denominatorDf |
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-p-value-calculator": {
"name": "p-value-calculator",
"description": "Calculate one-tailed or two-tailed p-values for Z, t, chi-square, and F test statistics",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=p-value-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": "p-value-calculator",
"arguments": {
"testStatistic": 1.96,
"distribution": "z",
"tail": "two-tail",
"degreesOfFreedom": 10,
"numeratorDf": 5,
"denominatorDf": 10,
"decimalPlaces": 6
}
}
}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)"
}