← All tool references

Engineering · not_available

Density Calculator

Calculate density, specific volume, and common unit conversions from mass and volume.

Open public tool

Overview

Category
Engineering
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/density-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/density-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.

mass · number · required
Enter the mass used by this tool.
volume · number · required
Enter the volume used by this tool.
{
    "type": "object",
    "properties": {
        "mass": {
            "type": "number",
            "description": "Enter the mass used by this tool.",
            "minimum": 0
        },
        "volume": {
            "type": "number",
            "description": "Enter the volume used by this tool.",
            "minimum": 1.0000000000000000622815914577798564188970686927859787829220294952392578125e-9
        }
    },
    "required": [
        "mass",
        "volume"
    ],
    "additionalProperties": false
}

Output schema

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

density_kg_m3 · number
Density in kg/m³ produced by the tool.
density_g_cm3 · number
Density in g/cm³ produced by the tool.
density_lb_ft3 · number
Density in lb/ft³ produced by the tool.
specific_volume · number
Specific volume produced by the tool.
{
    "type": "object",
    "properties": {
        "density_kg_m3": {
            "type": "number",
            "description": "Density in kg/m³ produced by the tool."
        },
        "density_g_cm3": {
            "type": "number",
            "description": "Density in g/cm³ produced by the tool."
        },
        "density_lb_ft3": {
            "type": "number",
            "description": "Density in lb/ft³ produced by the tool."
        },
        "specific_volume": {
            "type": "number",
            "description": "Specific volume produced by the tool."
        }
    },
    "additionalProperties": false
}

Density 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/density-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "mass": 12.5,
    "volume": 0.01000000000000000020816681711721685132943093776702880859375
}'
{
    "ok": true,
    "data": {
        "slug": "density-calculator",
        "result": {
            "values": {
                "density_kg_m3": 1250,
                "density_g_cm3": 1.25,
                "density_lb_ft3": 78.0349507499999930359990685246884822845458984375,
                "specific_volume": 0.000800000000000000038337388819087436786503531038761138916015625
            },
            "display": {
                "display": "1250"
            },
            "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.