← All tool references

Education · not_available

Exam Score Calculator

Calculate exam score from correct answers, incorrect answers, unanswered, points per correct answer.

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/exam-score-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/exam-score-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.

correct · number · required
Enter correct answers.
incorrect · number · required
Enter incorrect answers.
unanswered · number · required
Enter unanswered.
points_correct · number · required
Enter points per correct answer.
penalty_incorrect · number · required
Enter penalty per incorrect answer.
{
    "type": "object",
    "properties": {
        "correct": {
            "type": "number",
            "description": "Enter correct answers."
        },
        "incorrect": {
            "type": "number",
            "description": "Enter incorrect answers."
        },
        "unanswered": {
            "type": "number",
            "description": "Enter unanswered."
        },
        "points_correct": {
            "type": "number",
            "description": "Enter points per correct answer."
        },
        "penalty_incorrect": {
            "type": "number",
            "description": "Enter penalty per incorrect answer."
        }
    },
    "required": [
        "correct",
        "incorrect",
        "unanswered",
        "points_correct",
        "penalty_incorrect"
    ],
    "additionalProperties": false
}

Output schema

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

score_percent · number
Exam score produced by the tool.
points · number
Points earned produced by the tool.
total_questions · number
Questions produced by the tool.
breakdown · array
Answer breakdown produced by the tool.
{
    "type": "object",
    "properties": {
        "score_percent": {
            "type": "number",
            "description": "Exam score produced by the tool."
        },
        "points": {
            "type": "number",
            "description": "Points earned produced by the tool."
        },
        "total_questions": {
            "type": "number",
            "description": "Questions produced by the tool."
        },
        "breakdown": {
            "type": "array",
            "description": "Answer breakdown produced by the tool."
        }
    },
    "additionalProperties": false
}

Exam Score 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/exam-score-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "correct": 42,
    "incorrect": 6,
    "unanswered": 2,
    "points_correct": 1,
    "penalty_incorrect": 0
}'
{
    "ok": true,
    "data": {
        "slug": "exam-score-calculator",
        "result": {
            "values": {
                "score_percent": 84,
                "points": 42,
                "total_questions": 50,
                "breakdown": [
                    {
                        "type": "Correct",
                        "count": 42
                    },
                    {
                        "type": "Incorrect",
                        "count": 6
                    },
                    {
                        "type": "Unanswered",
                        "count": 2
                    }
                ]
            },
            "display": {
                "display": "84"
            },
            "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.