← All tool references

Education · not_available

Cumulative GPA Calculator

Combine an existing GPA with new course grades and credits.

Open public tool

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/cumulative-gpa-calculator

View this descriptor as JSON

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/cumulative-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.

current_gpa · number · required
Enter current cumulative gpa for this calculation.
completed_credits · number · required
Enter completed credits for this calculation.
new_courses · string · required
Enter course | grade | credits per line.
{
    "type": "object",
    "properties": {
        "current_gpa": {
            "type": "number",
            "description": "Enter current cumulative gpa for this calculation.",
            "minimum": 0,
            "maximum": 4
        },
        "completed_credits": {
            "type": "number",
            "description": "Enter completed credits for this calculation.",
            "minimum": 0
        },
        "new_courses": {
            "type": "string",
            "description": "Enter course | grade | credits per line."
        }
    },
    "required": [
        "current_gpa",
        "completed_credits",
        "new_courses"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

new_cumulative_gpa · number
New cumulative GPA calculated by the tool.
term_gpa · number
New-term GPA calculated by the tool.
total_credits · number
Total credits calculated by the tool.
course_results · array
Course results calculated by the tool.
{
    "type": "object",
    "properties": {
        "new_cumulative_gpa": {
            "type": "number",
            "description": "New cumulative GPA calculated by the tool."
        },
        "term_gpa": {
            "type": "number",
            "description": "New-term GPA calculated by the tool."
        },
        "total_credits": {
            "type": "number",
            "description": "Total credits calculated by the tool."
        },
        "course_results": {
            "type": "array",
            "description": "Course results calculated by the tool."
        }
    },
    "additionalProperties": false
}

Cumulative 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/cumulative-gpa-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "current_gpa": 3.350000000000000088817841970012523233890533447265625,
    "completed_credits": 60,
    "new_courses": "Calculus|A-|4\nHistory|B+|3\nBiology|A|4"
}'
{
    "ok": true,
    "data": {
        "slug": "cumulative-gpa-calculator",
        "result": {
            "values": {
                "new_cumulative_gpa": 3.404199999999999892708046900224871933460235595703125,
                "term_gpa": 3.70000000000000017763568394002504646778106689453125,
                "total_credits": 71,
                "course_results": [
                    {
                        "course": "Calculus",
                        "grade": "A-",
                        "credits": 4,
                        "level": "regular",
                        "points": 3.70000000000000017763568394002504646778106689453125,
                        "quality_points": 14.800000000000000710542735760100185871124267578125
                    },
                    {
                        "course": "History",
                        "grade": "B+",
                        "credits": 3,
                        "level": "regular",
                        "points": 3.29999999999999982236431605997495353221893310546875,
                        "quality_points": 9.9000000000000003552713678800500929355621337890625
                    },
                    {
                        "course": "Biology",
                        "grade": "A",
                        "credits": 4,
                        "level": "regular",
                        "points": 4,
                        "quality_points": 16
                    }
                ]
            },
            "display": {
                "display": "3.4042"
            },
            "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.