Math & Numbers
Run paired-sample t tests from before and after values or precomputed paired differences
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/paired-t-test-calculator' \
-H 'Content-Type: application/json' \
-d '{"beforeValues":"72, 75, 70, 68, 74, 71","afterValues":"75, 78, 73, 70, 77, 74","differenceValues":"","hypothesizedMeanDifference":0,"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/paired-t-test-calculator| Name | Type | Required | Description |
|---|---|---|---|
| beforeValues | textarea | No | — |
| afterValues | textarea | No | — |
| differenceValues | textarea | No | — |
| hypothesizedMeanDifference | number | No | — |
| alternative | select | No | — |
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-paired-t-test-calculator": {
"name": "paired-t-test-calculator",
"description": "Run paired-sample t tests from before and after values or precomputed paired differences",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=paired-t-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": "paired-t-test-calculator",
"arguments": {
"beforeValues": "72, 75, 70, 68, 74, 71",
"afterValues": "75, 78, 73, 70, 77, 74",
"differenceValues": "",
"hypothesizedMeanDifference": 0,
"alternative": "two-sided",
"alpha": 0.05,
"decimalPlaces": 4
}
}
}Questions or issues? Contact [email protected]
| alpha |
| number |
| No |
| — |
| decimalPlaces | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}