← All tool references

Lifestyle · not_available

Bowling Score Calculator

Score a ten-frame bowling game from roll notation.

Open public tool

Overview

Category
Lifestyle
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/bowling-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/bowling-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.

rolls · string · required
Enter rolls.
{
    "type": "object",
    "properties": {
        "rolls": {
            "type": "string",
            "description": "Enter rolls."
        }
    },
    "required": [
        "rolls"
    ],
    "additionalProperties": false
}

Output schema

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

total_score · number
Total score produced by the tool.
frames · array
Frame scores produced by the tool.
strikes · number
Strikes produced by the tool.
spares · number
Spares produced by the tool.
{
    "type": "object",
    "properties": {
        "total_score": {
            "type": "number",
            "description": "Total score produced by the tool."
        },
        "frames": {
            "type": "array",
            "description": "Frame scores produced by the tool."
        },
        "strikes": {
            "type": "number",
            "description": "Strikes produced by the tool."
        },
        "spares": {
            "type": "number",
            "description": "Spares produced by the tool."
        }
    },
    "additionalProperties": false
}

Bowling 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/bowling-score-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "rolls": "X X 9/ 8/ X X X 72 X XXX"
}'
{
    "ok": true,
    "data": {
        "slug": "bowling-score-calculator",
        "result": {
            "values": {
                "total_score": 232,
                "frames": [
                    {
                        "frame": 1,
                        "frame_score": 29,
                        "cumulative": 29
                    },
                    {
                        "frame": 2,
                        "frame_score": 20,
                        "cumulative": 49
                    },
                    {
                        "frame": 3,
                        "frame_score": 18,
                        "cumulative": 67
                    },
                    {
                        "frame": 4,
                        "frame_score": 20,
                        "cumulative": 87
                    },
                    {
                        "frame": 5,
                        "frame_score": 30,
                        "cumulative": 117
                    },
                    {
                        "frame": 6,
                        "frame_score": 27,
                        "cumulative": 144
                    },
                    {
                        "frame": 7,
                        "frame_score": 19,
                        "cumulative": 163
                    },
                    {
                        "frame": 8,
                        "frame_score": 9,
                        "cumulative": 172
                    }
                ],
                "strikes": 9,
                "spares": 2
            },
            "display": {
                "display": "232"
            },
            "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.