← All tool references

Construction · not_available

Gravel Calculator

Estimate gravel volume, weight, and bag count from area, depth, density, and waste allowance.

Open public tool

Overview

Category
Construction
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/gravel-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/gravel-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.

length · number · required
Enter the project length used in the calculation.
width · number · required
Enter the project width used in the calculation.
depth · number · required
Enter the gravel depth used in the calculation.
density_lb_per_cubic_yard · number · required
Enter the bulk density used in the calculation.
waste_percent · number · required
Enter the compaction and waste allowance used in the calculation.
bag_weight · number · optional
Enter the bag weight used in the calculation.
{
    "type": "object",
    "properties": {
        "length": {
            "type": "number",
            "description": "Enter the project length used in the calculation.",
            "minimum": 0
        },
        "width": {
            "type": "number",
            "description": "Enter the project width used in the calculation.",
            "minimum": 0
        },
        "depth": {
            "type": "number",
            "description": "Enter the gravel depth used in the calculation.",
            "minimum": 0
        },
        "density_lb_per_cubic_yard": {
            "type": "number",
            "description": "Enter the bulk density used in the calculation.",
            "minimum": 1
        },
        "waste_percent": {
            "type": "number",
            "description": "Enter the compaction and waste allowance used in the calculation."
        },
        "bag_weight": {
            "type": "number",
            "description": "Enter the bag weight used in the calculation.",
            "minimum": 0.01000000000000000020816681711721685132943093776702880859375
        }
    },
    "required": [
        "length",
        "width",
        "depth",
        "density_lb_per_cubic_yard",
        "waste_percent"
    ],
    "additionalProperties": false
}

Output schema

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

cubic_yards · number
Gravel volume produced by the calculation.
tons · number
Estimated weight in tons produced by the calculation.
pounds · number
Estimated weight in pounds produced by the calculation.
bags_needed · number
Bags needed produced by the calculation.
{
    "type": "object",
    "properties": {
        "cubic_yards": {
            "type": "number",
            "description": "Gravel volume produced by the calculation."
        },
        "tons": {
            "type": "number",
            "description": "Estimated weight in tons produced by the calculation."
        },
        "pounds": {
            "type": "number",
            "description": "Estimated weight in pounds produced by the calculation."
        },
        "bags_needed": {
            "type": "number",
            "description": "Bags needed produced by the calculation."
        }
    },
    "additionalProperties": false
}

Gravel 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/gravel-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "length": 30,
    "width": 10,
    "depth": 3,
    "density_lb_per_cubic_yard": 2800,
    "waste_percent": 10,
    "bag_weight": 50
}'
{
    "ok": true,
    "data": {
        "slug": "gravel-calculator",
        "result": {
            "values": {
                "cubic_yards": 3.05600000000000004973799150320701301097869873046875,
                "tons": 4.27799999999999958077978590154089033603668212890625,
                "pounds": 8555.559999999999490682967007160186767578125,
                "bags_needed": 172
            },
            "display": {
                "display": "3.056"
            },
            "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.