← All tool references

Education · not_available

College GPA Calculator

Calculate term GPA, attempted credits, and course-level quality points.

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/college-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/college-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 one course per line as course | letter grade | credits.
{
    "type": "object",
    "properties": {
        "courses": {
            "type": "string",
            "description": "Enter one course per line as course | letter grade | credits."
        }
    },
    "required": [
        "courses"
    ],
    "additionalProperties": false
}

Output schema

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

gpa · number
Term GPA produced by the tool.
attempted_credits · number
Attempted credits produced by the tool.
quality_points · number
Quality points produced by the tool.
course_count · number
Courses counted produced by the tool.
course_results · array
Course results produced by the tool.
{
    "type": "object",
    "properties": {
        "gpa": {
            "type": "number",
            "description": "Term GPA produced by the tool."
        },
        "attempted_credits": {
            "type": "number",
            "description": "Attempted credits produced by the tool."
        },
        "quality_points": {
            "type": "number",
            "description": "Quality points produced by the tool."
        },
        "course_count": {
            "type": "number",
            "description": "Courses counted produced by the tool."
        },
        "course_results": {
            "type": "array",
            "description": "Course results produced by the tool."
        }
    },
    "additionalProperties": false
}

College GPA 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/college-gpa-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "courses": "Calculus | A- | 4\nHistory | B+ | 3\nBiology | A | 4\nWriting | B | 3"
}'
{
    "ok": true,
    "data": {
        "slug": "college-gpa-calculator",
        "result": {
            "values": {
                "gpa": 3.54999999999999982236431605997495353221893310546875,
                "attempted_credits": 14,
                "quality_points": 49.7000000000000028421709430404007434844970703125,
                "course_count": 4,
                "course_results": [
                    {
                        "course": "Calculus",
                        "grade": "A-",
                        "credits": 4,
                        "grade_points": 3.70000000000000017763568394002504646778106689453125,
                        "quality_points": 14.800000000000000710542735760100185871124267578125
                    },
                    {
                        "course": "History",
                        "grade": "B+",
                        "credits": 3,
                        "grade_points": 3.29999999999999982236431605997495353221893310546875,
                        "quality_points": 9.9000000000000003552713678800500929355621337890625
                    },
                    {
                        "course": "Biology",
                        "grade": "A",
                        "credits": 4,
                        "grade_points": 4,
                        "quality_points": 16
                    },
                    {
                        "course": "Writing",
                        "grade": "B",
                        "credits": 3,
                        "grade_points": 3,
                        "quality_points": 9
                    }
                ]
            },
            "display": {
                "display": "3.55"
            },
            "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.