← All tool references

Construction · not_available

Block Calculator

Estimate concrete blocks and material cost for a wall.

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

wall_length · number · required
Enter the wall length used by this tool.
wall_height · number · required
Enter the wall height used by this tool.
openings_area · number · required
Enter the openings area used by this tool.
block_length · number · required
Enter the block length used by this tool.
block_height · number · required
Enter the block height used by this tool.
mortar_joint · number · required
Enter the mortar joint used by this tool.
waste_percent · number · required
Enter the waste allowance used by this tool.
price_per_block · number · required
Enter the price per block used by this tool.
{
    "type": "object",
    "properties": {
        "wall_length": {
            "type": "number",
            "description": "Enter the wall length used by this tool.",
            "minimum": 0
        },
        "wall_height": {
            "type": "number",
            "description": "Enter the wall height used by this tool.",
            "minimum": 0
        },
        "openings_area": {
            "type": "number",
            "description": "Enter the openings area used by this tool.",
            "minimum": 0
        },
        "block_length": {
            "type": "number",
            "description": "Enter the block length used by this tool.",
            "minimum": 0.1000000000000000055511151231257827021181583404541015625
        },
        "block_height": {
            "type": "number",
            "description": "Enter the block height used by this tool.",
            "minimum": 0.1000000000000000055511151231257827021181583404541015625
        },
        "mortar_joint": {
            "type": "number",
            "description": "Enter the mortar joint used by this tool.",
            "minimum": 0
        },
        "waste_percent": {
            "type": "number",
            "description": "Enter the waste allowance used by this tool."
        },
        "price_per_block": {
            "type": "number",
            "description": "Enter the price per block used by this tool.",
            "minimum": 0
        }
    },
    "required": [
        "wall_length",
        "wall_height",
        "openings_area",
        "block_length",
        "block_height",
        "mortar_joint",
        "waste_percent",
        "price_per_block"
    ],
    "additionalProperties": false
}

Output schema

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

blocks_needed · number
Blocks needed produced by the tool.
net_wall_area · number
Net wall area produced by the tool.
blocks_per_square_foot · number
Blocks per square foot produced by the tool.
estimated_cost · number
Estimated block cost produced by the tool.
{
    "type": "object",
    "properties": {
        "blocks_needed": {
            "type": "number",
            "description": "Blocks needed produced by the tool."
        },
        "net_wall_area": {
            "type": "number",
            "description": "Net wall area produced by the tool."
        },
        "blocks_per_square_foot": {
            "type": "number",
            "description": "Blocks per square foot produced by the tool."
        },
        "estimated_cost": {
            "type": "number",
            "description": "Estimated block cost produced by the tool."
        }
    },
    "additionalProperties": false
}

Block 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/block-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "wall_length": 30,
    "wall_height": 8,
    "openings_area": 20,
    "block_length": 15.625,
    "block_height": 7.625,
    "mortar_joint": 0.375,
    "waste_percent": 5,
    "price_per_block": 2.399999999999999911182158029987476766109466552734375
}'
{
    "ok": true,
    "data": {
        "slug": "block-calculator",
        "result": {
            "values": {
                "blocks_needed": 260,
                "net_wall_area": 220,
                "blocks_per_square_foot": 1.125,
                "estimated_cost": 624
            },
            "display": {
                "display": "260"
            },
            "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.