Data Analysis
Calculate confidence intervals for population means using Z or T distributions
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/confidence-interval' \
-H 'Content-Type: application/json' \
-d '{"csvData":"Enter your CSV data here...\n\nExample:\nSample,Measurement,Score,Temperature\n1,23.5,85.2,22.3\n2,24.1,87.8,22.8\n3,22.9,83.4,21.9\n4,24.3,89.1,23.1\n5,23.8,86.5,22.6\n6,23.2,84.7,22.2\n7,24.0,88.2,22.9\n8,23.6,85.9,22.4","confidenceLevel":"0.95","knownStdDev":"Enter known population standard deviation. Leave empty if unknown.","selectedColumns":"Comma-separated column names. Leave empty to auto-detect numeric columns.","hasHeader":true,"outputFormat":"report"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/confidence-interval| Name | Type | Required | Description |
|---|---|---|---|
| csvData | textarea | Yes | — |
| confidenceLevel | select | Yes | — |
| knownStdDev | text | No | If the population standard deviation is known, use Z-test. Otherwise, T-test will be used with sample standard deviation. |
| selectedColumns | text | No | Specify which columns to analyze. If empty, all numeric columns will be automatically detected and analyzed. |
| hasHeader | checkbox | No | Treat first row as column headers |
| outputFormat | select | Yes | — |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}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-confidence-interval": {
"name": "confidence-interval",
"description": "Calculate confidence intervals for population means using Z or T distributions",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=confidence-interval",
"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": "confidence-interval",
"arguments": {
"csvData": "Enter your CSV data here...\n\nExample:\nSample,Measurement,Score,Temperature\n1,23.5,85.2,22.3\n2,24.1,87.8,22.8\n3,22.9,83.4,21.9\n4,24.3,89.1,23.1\n5,23.8,86.5,22.6\n6,23.2,84.7,22.2\n7,24.0,88.2,22.9\n8,23.6,85.9,22.4",
"confidenceLevel": "0.95",
"knownStdDev": "Enter known population standard deviation. Leave empty if unknown.",
"selectedColumns": "Comma-separated column names. Leave empty to auto-detect numeric columns.",
"hasHeader": true,
"outputFormat": "report"
}
}
}Questions or issues? Contact [email protected]