← All tool references

Education · not_available

Quiz Score Calculator

Quiz Score with transparent inputs and reviewable results.

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/quiz-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/quiz-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.
skipped · number · required
Enter skipped answers.
points_correct · number · required
Enter points per correct.
penalty_incorrect · number · required
Enter penalty per incorrect.
{
    "type": "object",
    "properties": {
        "correct": {
            "type": "number",
            "description": "Enter correct answers."
        },
        "incorrect": {
            "type": "number",
            "description": "Enter incorrect answers."
        },
        "skipped": {
            "type": "number",
            "description": "Enter skipped answers."
        },
        "points_correct": {
            "type": "number",
            "description": "Enter points per correct."
        },
        "penalty_incorrect": {
            "type": "number",
            "description": "Enter penalty per incorrect."
        }
    },
    "required": [
        "correct",
        "incorrect",
        "skipped",
        "points_correct",
        "penalty_incorrect"
    ],
    "additionalProperties": false
}

Output schema

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

score · number
Quiz score produced by the tool.
percentage · number
Percentage produced by the tool.
total_questions · number
Total questions produced by the tool.
breakdown · array
Breakdown produced by the tool.
{
    "type": "object",
    "properties": {
        "score": {
            "type": "number",
            "description": "Quiz score produced by the tool."
        },
        "percentage": {
            "type": "number",
            "description": "Percentage produced by the tool."
        },
        "total_questions": {
            "type": "number",
            "description": "Total questions produced by the tool."
        },
        "breakdown": {
            "type": "array",
            "description": "Breakdown produced by the tool."
        }
    },
    "additionalProperties": false
}

Quiz 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/quiz-score-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "correct": 18,
    "incorrect": 2,
    "skipped": 0,
    "points_correct": 1,
    "penalty_incorrect": 0
}'
{
    "ok": true,
    "data": {
        "slug": "quiz-score-calculator",
        "result": {
            "values": {
                "score": 18,
                "percentage": 90,
                "total_questions": 20,
                "breakdown": [
                    {
                        "type": "Correct",
                        "count": 18
                    },
                    {
                        "type": "Incorrect",
                        "count": 2
                    },
                    {
                        "type": "Skipped",
                        "count": 0
                    }
                ]
            },
            "display": {
                "display": "18"
            },
            "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.