← All tool references

Construction · not_available

Tank Volume Calculator

Calculate total and filled volume for common tank shapes.

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/tank-volume-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/tank-volume-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.

shape · string · required
Enter the tank shape used by this tool. Accepted values: rectangular, vertical_cylinder, horizontal_cylinder.
length · number · required
Enter the length used by this tool.
width · number · required
Enter the width used by this tool.
height_or_diameter · number · required
Enter the height or diameter used by this tool.
fill_percent · number · required
Enter the fill level used by this tool.
{
    "type": "object",
    "properties": {
        "shape": {
            "type": "string",
            "description": "Enter the tank shape used by this tool.",
            "enum": [
                "rectangular",
                "vertical_cylinder",
                "horizontal_cylinder"
            ]
        },
        "length": {
            "type": "number",
            "description": "Enter the length used by this tool.",
            "minimum": 0
        },
        "width": {
            "type": "number",
            "description": "Enter the width used by this tool.",
            "minimum": 0
        },
        "height_or_diameter": {
            "type": "number",
            "description": "Enter the height or diameter used by this tool.",
            "minimum": 0
        },
        "fill_percent": {
            "type": "number",
            "description": "Enter the fill level used by this tool.",
            "minimum": 0,
            "maximum": 100
        }
    },
    "required": [
        "shape",
        "length",
        "width",
        "height_or_diameter",
        "fill_percent"
    ],
    "additionalProperties": false
}

Output schema

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

total_gallons · number
Total capacity produced by the tool.
filled_gallons · number
Filled volume produced by the tool.
empty_gallons · number
Remaining capacity produced by the tool.
total_cubic_feet · number
Total cubic feet produced by the tool.
{
    "type": "object",
    "properties": {
        "total_gallons": {
            "type": "number",
            "description": "Total capacity produced by the tool."
        },
        "filled_gallons": {
            "type": "number",
            "description": "Filled volume produced by the tool."
        },
        "empty_gallons": {
            "type": "number",
            "description": "Remaining capacity produced by the tool."
        },
        "total_cubic_feet": {
            "type": "number",
            "description": "Total cubic feet produced by the tool."
        }
    },
    "additionalProperties": false
}

Tank Volume 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/tank-volume-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "shape": "horizontal_cylinder",
    "length": 8,
    "width": 4,
    "height_or_diameter": 4,
    "fill_percent": 75
}'
{
    "ok": true,
    "data": {
        "slug": "tank-volume-calculator",
        "result": {
            "values": {
                "total_gallons": 752.01999999999998181010596454143524169921875,
                "filled_gallons": 605,
                "empty_gallons": 147.020000000000010231815394945442676544189453125,
                "total_cubic_feet": 100.53100000000000591171556152403354644775390625
            },
            "display": {
                "display": "752.02"
            },
            "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.