Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

Data Analysis

Confidence Interval Calculator

Calculate confidence intervals for population means using Z or T distributions

text· Text resultOpen tool

Quick start

Call this tool from your code in three languages.

cURL
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"}'

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools

API reference

Send a POST request with your inputs as JSON. File parameters require a separate upload first.

Endpoint

HTTP
POST https://api.elysiatools.com/en/api/tools/confidence-interval

Parameters

NameTypeRequiredDescription
csvDatatextareaYes—
confidenceLevelselectYes—
knownStdDevtextNoIf the population standard deviation is known, use Z-test. Otherwise, T-test will be used with sample standard deviation.
selectedColumnstextNoSpecify which columns to analyze. If empty, all numeric columns will be automatically detected and analyzed.
hasHeadercheckboxNoTreat first row as column headers
outputFormatselectYes—

Response format

Text result

JSON
{
  "result": "Processed text content",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}

MCP integration

Add this tool to your Model Context Protocol server so AI agents can list and call it.

Server configuration

Add this block to your MCP client configuration:

mcp.json
{
  "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"
    }
  }
}

List available tools

After connecting to the SSE endpoint, list the exposed tools:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Call this tool

Invoke the tool by its id, passing arguments built from its parameters:

tools/call
{
  "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"
}
  }
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).

Questions or issues? Contact [email protected]

Browse tools
Open tool