Overview
- Category
- Education
- API mode
execute- 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/grade-curve-calculator
Execute availability
This tool has an execute route defined by its descriptor. Server-side execution is currently unavailable, so requests return api_not_launched.
POST /api/v1/tools/grade-curve-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.
scores· string · required- Enter one numeric score per line, using the same points or percentage basis for every score.
curve_type· string · required-
Choose whether to add the same points to every score or scale the highest score to the target. Accepted values:
add_points, scale_to_max. target· number · required- Enter the points to add or the highest score the curve should reach, depending on the curve type.
{
"type": "object",
"properties": {
"scores": {
"type": "string",
"description": "Enter one numeric score per line, using the same points or percentage basis for every score."
},
"curve_type": {
"type": "string",
"enum": [
"add_points",
"scale_to_max"
],
"description": "Choose whether to add the same points to every score or scale the highest score to the target."
},
"target": {
"type": "number",
"description": "Enter the points to add or the highest score the curve should reach, depending on the curve type."
}
},
"required": [
"scores",
"curve_type",
"target"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
original_scores· array- Scores before the curve.
curved_scores· array- Scores after the curve.
method· string- Selected curve method.
average_before· number- Mean of original scores.
average_after· number- Mean of curved scores.
adjustment· number- Points added or scale multiplier.
{
"type": "object",
"properties": {
"original_scores": {
"type": "array",
"items": {
"type": "number"
},
"description": "Scores before the curve."
},
"curved_scores": {
"type": "array",
"items": {
"type": "number"
},
"description": "Scores after the curve."
},
"method": {
"type": "string",
"description": "Selected curve method."
},
"average_before": {
"type": "number",
"description": "Mean of original scores."
},
"average_after": {
"type": "number",
"description": "Mean of curved scores."
},
"adjustment": {
"type": "number",
"description": "Points added or scale multiplier."
}
},
"additionalProperties": false
}
Scale the highest score to 100
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/grade-curve-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"scores": "70\n80\n90",
"curve_type": "scale_to_max",
"target": 100
}'
{
"ok": true,
"data": {
"slug": "grade-curve-calculator",
"result": {
"values": {
"original_scores": [
70,
80,
90
],
"curved_scores": [
77.780000000000001136868377216160297393798828125,
88.8900000000000005684341886080801486968994140625,
100
],
"method": "scale_to_max",
"average_before": 80,
"average_after": 88.8900000000000005684341886080801486968994140625,
"adjustment": 1.1100000000000000976996261670137755572795867919921875
},
"display": {
"display": "[70,80,90]"
},
"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.