← All tool references

Construction · not_available

Mortar Calculator

Mortar with transparent inputs and reviewable results.

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/mortar-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/mortar-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_area · number · required
Enter wall area.
unit_type · string · required
Enter masonry unit. Accepted values: standard_brick, modular_brick, 8in_block.
joint_thickness · number · required
Enter joint thickness.
waste · number · required
Enter waste factor.
{
    "type": "object",
    "properties": {
        "wall_area": {
            "type": "number",
            "description": "Enter wall area."
        },
        "unit_type": {
            "type": "string",
            "description": "Enter masonry unit.",
            "enum": [
                "standard_brick",
                "modular_brick",
                "8in_block"
            ]
        },
        "joint_thickness": {
            "type": "number",
            "description": "Enter joint thickness."
        },
        "waste": {
            "type": "number",
            "description": "Enter waste factor."
        }
    },
    "required": [
        "wall_area",
        "unit_type",
        "joint_thickness",
        "waste"
    ],
    "additionalProperties": false
}

Output schema

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

mortar_volume · number
Mortar volume produced by the tool.
bags · number
Estimated mortar bags produced by the tool.
units · number
Estimated masonry units produced by the tool.
waste_volume · number
Waste allowance produced by the tool.
{
    "type": "object",
    "properties": {
        "mortar_volume": {
            "type": "number",
            "description": "Mortar volume produced by the tool."
        },
        "bags": {
            "type": "number",
            "description": "Estimated mortar bags produced by the tool."
        },
        "units": {
            "type": "number",
            "description": "Estimated masonry units produced by the tool."
        },
        "waste_volume": {
            "type": "number",
            "description": "Waste allowance produced by the tool."
        }
    },
    "additionalProperties": false
}

Mortar 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/mortar-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "wall_area": 400,
    "unit_type": "standard_brick",
    "joint_thickness": 0.375,
    "waste": 10
}'
{
    "ok": true,
    "data": {
        "slug": "mortar-calculator",
        "result": {
            "values": {
                "mortar_volume": 0.0259999999999999988065102485279567190445959568023681640625,
                "bags": 2,
                "units": 2759,
                "waste_volume": 0.00200000000000000004163336342344337026588618755340576171875
            },
            "display": {
                "display": "0.026"
            },
            "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.