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/statistics-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/statistics-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.
values· string · required- Enter values for this calculation.
{
"type": "object",
"properties": {
"values": {
"type": "string",
"description": "Enter values for this calculation."
}
},
"required": [
"values"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
count· number- Count calculated by the tool.
mean· number- Mean calculated by the tool.
median· number- Median calculated by the tool.
mode· string- Mode calculated by the tool.
range· number- Range calculated by the tool.
variance· number- Population variance calculated by the tool.
standard_deviation· number- Standard deviation calculated by the tool.
quartiles· array- Quartiles calculated by the tool.
{
"type": "object",
"properties": {
"count": {
"type": "number",
"description": "Count calculated by the tool."
},
"mean": {
"type": "number",
"description": "Mean calculated by the tool."
},
"median": {
"type": "number",
"description": "Median calculated by the tool."
},
"mode": {
"type": "string",
"description": "Mode calculated by the tool."
},
"range": {
"type": "number",
"description": "Range calculated by the tool."
},
"variance": {
"type": "number",
"description": "Population variance calculated by the tool."
},
"standard_deviation": {
"type": "number",
"description": "Standard deviation calculated by the tool."
},
"quartiles": {
"type": "array",
"description": "Quartiles calculated by the tool."
}
},
"additionalProperties": false
}
Statistics Calculator worked 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/statistics-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"values": "4, 7, 7, 9, 10, 12, 15"
}'
{
"ok": true,
"data": {
"slug": "statistics-calculator",
"result": {
"values": {
"count": 7,
"mean": 9.14285699999999934561856207437813282012939453125,
"median": 9,
"mode": "7",
"range": 11,
"variance": 11.2653060000000007079279384925030171871185302734375,
"standard_deviation": 3.35638300000000011635847840807400643825531005859375,
"quartiles": [
{
"name": "Q1",
"value": 7
},
{
"name": "Median",
"value": 9
},
{
"name": "Q3",
"value": 11
}
]
},
"display": {
"display": "7"
},
"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.