Math & Numbers
Calculate confidence intervals for a sample mean or proportion using either raw data or summary statistics
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/confidence-interval-calculator' \
-H 'Content-Type: application/json' \
-d '{"intervalType":"mean","numbersInput":"48, 52, 47, 50, 53, 49, 51, 54","meanInput":"","standardDeviationInput":"","sampleSize":0,"successCount":"","trialCount":"","confidenceLevel":"0.95","precision":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/confidence-interval-calculator| Name | Type | Required | Description |
|---|---|---|---|
| intervalType | select | No | — |
| numbersInput | textarea | No | — |
| meanInput | text | No | — |
| standardDeviationInput | text | No | — |
| sampleSize | number | No | — |
| successCount |
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-calculator": {
"name": "confidence-interval-calculator",
"description": "Calculate confidence intervals for a sample mean or proportion using either raw data or summary statistics",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=confidence-interval-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": "confidence-interval-calculator",
"arguments": {
"intervalType": "mean",
"numbersInput": "48, 52, 47, 50, 53, 49, 51, 54",
"meanInput": "",
"standardDeviationInput": "",
"sampleSize": 0,
"successCount": "",
"trialCount": "",
"confidenceLevel": "0.95",
"precision": 4
}
}
}Questions or issues? Contact [email protected]
| text |
| No |
| — |
| trialCount | text | No | — |
| confidenceLevel | select | No | — |
| precision | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}