← All tool references

Construction · not_available

Excavation Calculator

Excavation with subject-specific controls, reviewable intermediate detail, and private browser processing.

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/excavation-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/excavation-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 length.
width · number · required
Enter width.
height · number · required
Enter height or rise.
spacing · number · required
Enter spacing.
waste · number · required
Enter waste allowance.
{
    "type": "object",
    "properties": {
        "length": {
            "type": "number",
            "description": "Enter length."
        },
        "width": {
            "type": "number",
            "description": "Enter width."
        },
        "height": {
            "type": "number",
            "description": "Enter height or rise."
        },
        "spacing": {
            "type": "number",
            "description": "Enter spacing."
        },
        "waste": {
            "type": "number",
            "description": "Enter waste allowance."
        }
    },
    "required": [
        "length",
        "width",
        "height",
        "spacing",
        "waste"
    ],
    "additionalProperties": false
}

Output schema

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

primary_quantity · number
Primary quantity produced by the tool.
materials · array
Materials produced by the tool.
planning_range · string
Planning range produced by the tool.
boundary · string
Boundary produced by the tool.
{
    "type": "object",
    "properties": {
        "primary_quantity": {
            "type": "number",
            "description": "Primary quantity produced by the tool."
        },
        "materials": {
            "type": "array",
            "description": "Materials produced by the tool."
        },
        "planning_range": {
            "type": "string",
            "description": "Planning range produced by the tool."
        },
        "boundary": {
            "type": "string",
            "description": "Boundary produced by the tool."
        }
    },
    "additionalProperties": false
}

Excavation 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/excavation-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "length": 24,
    "width": 12,
    "height": 8,
    "spacing": 16,
    "waste": 10
}'
{
    "ok": true,
    "data": {
        "slug": "excavation-calculator",
        "result": {
            "values": {
                "primary_quantity": 2534.40000000000009094947017729282379150390625,
                "materials": [
                    {
                        "measure": "Area",
                        "value": 288
                    },
                    {
                        "measure": "Volume",
                        "value": 2304
                    },
                    {
                        "measure": "Spacing",
                        "value": 16
                    }
                ],
                "planning_range": "2407.68–2787.84",
                "boundary": "Verify dimensions, loads, spans, soil, climate, and code requirements."
            },
            "display": {
                "display": "2534.4"
            },
            "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.