Overview
- Category
- Education
- 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/high-school-gpa-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/high-school-gpa-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.
courses· string · required- Enter course | grade | credits | level per line.
honors_bonus· number · required- Enter honors grade-point bonus for this calculation.
ap_bonus· number · required- Enter ap/ib grade-point bonus for this calculation.
{
"type": "object",
"properties": {
"courses": {
"type": "string",
"description": "Enter course | grade | credits | level per line."
},
"honors_bonus": {
"type": "number",
"description": "Enter honors grade-point bonus for this calculation.",
"minimum": 0
},
"ap_bonus": {
"type": "number",
"description": "Enter ap/ib grade-point bonus for this calculation.",
"minimum": 0
}
},
"required": [
"courses",
"honors_bonus",
"ap_bonus"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
unweighted_gpa· number- Unweighted GPA calculated by the tool.
weighted_gpa· number- Weighted GPA calculated by the tool.
total_credits· number- Credits calculated by the tool.
course_results· array- Course results calculated by the tool.
{
"type": "object",
"properties": {
"unweighted_gpa": {
"type": "number",
"description": "Unweighted GPA calculated by the tool."
},
"weighted_gpa": {
"type": "number",
"description": "Weighted GPA calculated by the tool."
},
"total_credits": {
"type": "number",
"description": "Credits calculated by the tool."
},
"course_results": {
"type": "array",
"description": "Course results calculated by the tool."
}
},
"additionalProperties": false
}
High School GPA 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/high-school-gpa-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"courses": "English|A|1|regular\nAlgebra II|B+|1|honors\nChemistry|A-|1|ap\nHistory|B|1|regular",
"honors_bonus": 0.5,
"ap_bonus": 1
}'
{
"ok": true,
"data": {
"slug": "high-school-gpa-calculator",
"result": {
"values": {
"unweighted_gpa": 3.5,
"weighted_gpa": 3.875,
"total_credits": 4,
"course_results": [
{
"course": "English",
"grade": "A",
"credits": 1,
"level": "regular",
"points": 4,
"weighted_points": 4
},
{
"course": "Algebra II",
"grade": "B+",
"credits": 1,
"level": "honors",
"points": 3.29999999999999982236431605997495353221893310546875,
"weighted_points": 3.79999999999999982236431605997495353221893310546875
},
{
"course": "Chemistry",
"grade": "A-",
"credits": 1,
"level": "ap",
"points": 3.70000000000000017763568394002504646778106689453125,
"weighted_points": 4.70000000000000017763568394002504646778106689453125
},
{
"course": "History",
"grade": "B",
"credits": 1,
"level": "regular",
"points": 3,
"weighted_points": 3
}
]
},
"display": {
"display": "3.5"
},
"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.