Overview
- Category
- Math
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/confidence-interval-calculator
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/confidence-interval-calculator/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
sample_mean· number · required- Enter the sample mean used by this tool.
sample_standard_deviation· number · required- Enter the sample standard deviation used by this tool.
sample_size· number · required- Enter the sample size used by this tool.
confidence_level· string · required-
Enter the confidence level used by this tool. Accepted values:
90, 95, 99.
{
"type": "object",
"properties": {
"sample_mean": {
"type": "number",
"description": "Enter the sample mean used by this tool."
},
"sample_standard_deviation": {
"type": "number",
"description": "Enter the sample standard deviation used by this tool.",
"minimum": 1.0000000000000000622815914577798564188970686927859787829220294952392578125e-9
},
"sample_size": {
"type": "number",
"description": "Enter the sample size used by this tool.",
"minimum": 2
},
"confidence_level": {
"type": "string",
"description": "Enter the confidence level used by this tool.",
"enum": [
"90",
"95",
"99"
]
}
},
"required": [
"sample_mean",
"sample_standard_deviation",
"sample_size",
"confidence_level"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
lower_bound· number- Lower bound produced by the tool.
upper_bound· number- Upper bound produced by the tool.
margin_of_error· number- Margin of error produced by the tool.
standard_error· number- Standard error produced by the tool.
critical_value· number- Critical z value produced by the tool.
{
"type": "object",
"properties": {
"lower_bound": {
"type": "number",
"description": "Lower bound produced by the tool."
},
"upper_bound": {
"type": "number",
"description": "Upper bound produced by the tool."
},
"margin_of_error": {
"type": "number",
"description": "Margin of error produced by the tool."
},
"standard_error": {
"type": "number",
"description": "Standard error produced by the tool."
},
"critical_value": {
"type": "number",
"description": "Critical z value produced by the tool."
}
},
"additionalProperties": false
}
Confidence Interval Calculator example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/confidence-interval-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"sample_mean": 72.5,
"sample_standard_deviation": 12.4000000000000003552713678800500929355621337890625,
"sample_size": 100,
"confidence_level": "95"
}'
{
"ok": true,
"data": {
"slug": "confidence-interval-calculator",
"result": {
"values": {
"lower_bound": 70.0696446591999944075723760761320590972900390625,
"upper_bound": 74.9303553408000055924276239238679409027099609375,
"margin_of_error": 2.430355340799999819267895873053930699825286865234375,
"standard_error": 1.2399999999999999911182158029987476766109466552734375,
"critical_value": 1.9599639845000000892838443178334273397922515869140625
},
"display": {
"display": "70.0696446592"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.