← All tool references

Construction · not_available

Sod Calculator

Estimate sod area, rolls or pallets, and material cost with waste.

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/sod-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/sod-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.

lawn_length · number · required
Enter the lawn length used by this tool.
lawn_width · number · required
Enter the lawn width used by this tool.
waste_percent · number · required
Enter the waste allowance used by this tool.
coverage_per_unit · number · required
Enter the coverage per roll or pallet used by this tool.
price_per_unit · number · required
Enter the price per roll or pallet used by this tool.
{
    "type": "object",
    "properties": {
        "lawn_length": {
            "type": "number",
            "description": "Enter the lawn length used by this tool.",
            "minimum": 0
        },
        "lawn_width": {
            "type": "number",
            "description": "Enter the lawn width used by this tool.",
            "minimum": 0
        },
        "waste_percent": {
            "type": "number",
            "description": "Enter the waste allowance used by this tool."
        },
        "coverage_per_unit": {
            "type": "number",
            "description": "Enter the coverage per roll or pallet used by this tool.",
            "minimum": 0.01000000000000000020816681711721685132943093776702880859375
        },
        "price_per_unit": {
            "type": "number",
            "description": "Enter the price per roll or pallet used by this tool.",
            "minimum": 0
        }
    },
    "required": [
        "lawn_length",
        "lawn_width",
        "waste_percent",
        "coverage_per_unit",
        "price_per_unit"
    ],
    "additionalProperties": false
}

Output schema

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

adjusted_area · number
Sod area with waste produced by the tool.
units_needed · number
Rolls or pallets needed produced by the tool.
base_area · number
Base lawn area produced by the tool.
estimated_cost · number
Estimated sod cost produced by the tool.
{
    "type": "object",
    "properties": {
        "adjusted_area": {
            "type": "number",
            "description": "Sod area with waste produced by the tool."
        },
        "units_needed": {
            "type": "number",
            "description": "Rolls or pallets needed produced by the tool."
        },
        "base_area": {
            "type": "number",
            "description": "Base lawn area produced by the tool."
        },
        "estimated_cost": {
            "type": "number",
            "description": "Estimated sod cost produced by the tool."
        }
    },
    "additionalProperties": false
}

Sod 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/sod-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "lawn_length": 60,
    "lawn_width": 35,
    "waste_percent": 5,
    "coverage_per_unit": 10,
    "price_per_unit": 5.5
}'
{
    "ok": true,
    "data": {
        "slug": "sod-calculator",
        "result": {
            "values": {
                "adjusted_area": 2205,
                "units_needed": 221,
                "base_area": 2100,
                "estimated_cost": 1215.5
            },
            "display": {
                "display": "2205"
            },
            "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.