← All tool references

Construction · not_available

Roof Pitch Calculator

Convert roof rise and run into pitch, slope, angle, and rafter factor.

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/roof-pitch-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/roof-pitch-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.

rise · number · required
Enter the vertical rise used by this tool.
run · number · required
Enter the horizontal run used by this tool.
{
    "type": "object",
    "properties": {
        "rise": {
            "type": "number",
            "description": "Enter the vertical rise used by this tool.",
            "minimum": 0
        },
        "run": {
            "type": "number",
            "description": "Enter the horizontal run used by this tool.",
            "minimum": 9.99999999999999954748111825886258685613938723690807819366455078125e-7
        }
    },
    "required": [
        "rise",
        "run"
    ],
    "additionalProperties": false
}

Output schema

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

pitch · string
Roof pitch produced by the tool.
slope_percent · number
Slope produced by the tool.
angle_degrees · number
Roof angle produced by the tool.
rafter_factor · number
Rafter length factor produced by the tool.
classification · string
Pitch classification produced by the tool.
{
    "type": "object",
    "properties": {
        "pitch": {
            "type": "string",
            "description": "Roof pitch produced by the tool."
        },
        "slope_percent": {
            "type": "number",
            "description": "Slope produced by the tool."
        },
        "angle_degrees": {
            "type": "number",
            "description": "Roof angle produced by the tool."
        },
        "rafter_factor": {
            "type": "number",
            "description": "Rafter length factor produced by the tool."
        },
        "classification": {
            "type": "string",
            "description": "Pitch classification produced by the tool."
        }
    },
    "additionalProperties": false
}

Roof Pitch 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/roof-pitch-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "rise": 6,
    "run": 12
}'
{
    "ok": true,
    "data": {
        "slug": "roof-pitch-calculator",
        "result": {
            "values": {
                "pitch": "6 in 12",
                "slope_percent": 50,
                "angle_degrees": 26.565051000000000414047462982125580310821533203125,
                "rafter_factor": 1.1180339900000000330493321598623879253864288330078125,
                "classification": "Steep slope"
            },
            "display": {
                "display": "6 in 12"
            },
            "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.