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/brick-calculator
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/brick-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 doors and windows used by this tool.
brick_length· number · required- Enter the brick length used by this tool.
brick_height· number · required- Enter the brick 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_1000· number · required- Enter the price per 1,000 bricks 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 doors and windows used by this tool.",
"minimum": 0
},
"brick_length": {
"type": "number",
"description": "Enter the brick length used by this tool.",
"minimum": 0.1000000000000000055511151231257827021181583404541015625
},
"brick_height": {
"type": "number",
"description": "Enter the brick 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_1000": {
"type": "number",
"description": "Enter the price per 1,000 bricks used by this tool.",
"minimum": 0
}
},
"required": [
"wall_length",
"wall_height",
"openings_area",
"brick_length",
"brick_height",
"mortar_joint",
"waste_percent",
"price_per_1000"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
bricks_needed· number- Bricks needed produced by the tool.
net_wall_area· number- Net wall area produced by the tool.
bricks_per_square_foot· number- Bricks per square foot produced by the tool.
estimated_cost· number- Estimated brick cost produced by the tool.
mortar_joint_area· number- Mortar-adjusted module area produced by the tool.
{
"type": "object",
"properties": {
"bricks_needed": {
"type": "number",
"description": "Bricks needed produced by the tool."
},
"net_wall_area": {
"type": "number",
"description": "Net wall area produced by the tool."
},
"bricks_per_square_foot": {
"type": "number",
"description": "Bricks per square foot produced by the tool."
},
"estimated_cost": {
"type": "number",
"description": "Estimated brick cost produced by the tool."
},
"mortar_joint_area": {
"type": "number",
"description": "Mortar-adjusted module area produced by the tool."
}
},
"additionalProperties": false
}
Brick 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/brick-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"wall_length": 24,
"wall_height": 8,
"openings_area": 24,
"brick_length": 7.625,
"brick_height": 2.25,
"mortar_joint": 0.375,
"waste_percent": 8,
"price_per_1000": 650
}'
{
"ok": true,
"data": {
"slug": "brick-calculator",
"result": {
"values": {
"bricks_needed": 1245,
"net_wall_area": 168,
"bricks_per_square_foot": 6.85714299999999976620301822549663484096527099609375,
"estimated_cost": 809.25,
"mortar_joint_area": 0.1458333300000000110063780311975278891623020172119140625
},
"display": {
"display": "1245"
},
"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.