← All tool references

Construction · not_available

Topsoil Calculator

Estimate topsoil volume, weight, and bulk material cost for a rectangular area.

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/topsoil-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/topsoil-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 area length used by this tool.
width · number · required
Enter the area width used by this tool.
depth · number · required
Enter the topsoil depth used by this tool.
waste_percent · number · required
Enter the extra allowance used by this tool.
density_tons_per_yard · number · required
Enter the density used by this tool.
cost_per_cubic_yard · number · required
Enter the cost per cubic yard used by this tool.
{
    "type": "object",
    "properties": {
        "length": {
            "type": "number",
            "description": "Enter the area length used by this tool.",
            "minimum": 0
        },
        "width": {
            "type": "number",
            "description": "Enter the area width used by this tool.",
            "minimum": 0
        },
        "depth": {
            "type": "number",
            "description": "Enter the topsoil depth used by this tool.",
            "minimum": 0
        },
        "waste_percent": {
            "type": "number",
            "description": "Enter the extra allowance used by this tool."
        },
        "density_tons_per_yard": {
            "type": "number",
            "description": "Enter the density used by this tool.",
            "minimum": 0
        },
        "cost_per_cubic_yard": {
            "type": "number",
            "description": "Enter the cost per cubic yard used by this tool.",
            "minimum": 0
        }
    },
    "required": [
        "length",
        "width",
        "depth",
        "waste_percent",
        "density_tons_per_yard",
        "cost_per_cubic_yard"
    ],
    "additionalProperties": false
}

Output schema

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

cubic_yards · number
Topsoil volume produced by the tool.
tons · number
Estimated weight produced by the tool.
cubic_feet · number
Volume in cubic feet produced by the tool.
estimated_cost · number
Estimated material cost produced by the tool.
{
    "type": "object",
    "properties": {
        "cubic_yards": {
            "type": "number",
            "description": "Topsoil volume produced by the tool."
        },
        "tons": {
            "type": "number",
            "description": "Estimated weight produced by the tool."
        },
        "cubic_feet": {
            "type": "number",
            "description": "Volume in cubic feet produced by the tool."
        },
        "estimated_cost": {
            "type": "number",
            "description": "Estimated material cost produced by the tool."
        }
    },
    "additionalProperties": false
}

Topsoil 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/topsoil-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "length": 30,
    "width": 20,
    "depth": 4,
    "waste_percent": 10,
    "density_tons_per_yard": 1.100000000000000088817841970012523233890533447265625,
    "cost_per_cubic_yard": 38
}'
{
    "ok": true,
    "data": {
        "slug": "topsoil-calculator",
        "result": {
            "values": {
                "cubic_yards": 8.1480999999999994543031789362430572509765625,
                "tons": 8.9629999999999991899812812334857881069183349609375,
                "cubic_feet": 220,
                "estimated_cost": 309.6299999999999954525264911353588104248046875
            },
            "display": {
                "display": "8.1481"
            },
            "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.