← All tool references

Construction · not_available

Rafter Length Calculator

Calculate common-rafter length, overhang length, and stock-board needs.

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/rafter-length-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/rafter-length-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.

building_run · number · required
Enter the horizontal building run used by this tool.
rise_per_12 · number · required
Enter the roof rise per 12 used by this tool.
horizontal_overhang · number · required
Enter the horizontal overhang used by this tool.
rafter_count · number · required
Enter the number of rafters used by this tool.
waste_percent · number · required
Enter the waste allowance used by this tool.
{
    "type": "object",
    "properties": {
        "building_run": {
            "type": "number",
            "description": "Enter the horizontal building run used by this tool.",
            "minimum": 0
        },
        "rise_per_12": {
            "type": "number",
            "description": "Enter the roof rise per 12 used by this tool.",
            "minimum": 0
        },
        "horizontal_overhang": {
            "type": "number",
            "description": "Enter the horizontal overhang used by this tool.",
            "minimum": 0
        },
        "rafter_count": {
            "type": "number",
            "description": "Enter the number of rafters used by this tool.",
            "minimum": 1
        },
        "waste_percent": {
            "type": "number",
            "description": "Enter the waste allowance used by this tool."
        }
    },
    "required": [
        "building_run",
        "rise_per_12",
        "horizontal_overhang",
        "rafter_count",
        "waste_percent"
    ],
    "additionalProperties": false
}

Output schema

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

single_rafter_length · number
Single rafter length produced by the tool.
overhang_rafter_length · number
Sloped overhang length produced by the tool.
total_rafter_length · number
Total rafter stock length produced by the tool.
pitch_angle · number
Pitch angle produced by the tool.
{
    "type": "object",
    "properties": {
        "single_rafter_length": {
            "type": "number",
            "description": "Single rafter length produced by the tool."
        },
        "overhang_rafter_length": {
            "type": "number",
            "description": "Sloped overhang length produced by the tool."
        },
        "total_rafter_length": {
            "type": "number",
            "description": "Total rafter stock length produced by the tool."
        },
        "pitch_angle": {
            "type": "number",
            "description": "Pitch angle produced by the tool."
        }
    },
    "additionalProperties": false
}

Rafter Length 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/rafter-length-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "building_run": 12,
    "rise_per_12": 6,
    "horizontal_overhang": 1.5,
    "rafter_count": 24,
    "waste_percent": 5
}'
{
    "ok": true,
    "data": {
        "slug": "rafter-length-calculator",
        "result": {
            "values": {
                "single_rafter_length": 15.093458999999999292640495696105062961578369140625,
                "overhang_rafter_length": 1.677051000000000069434236138476990163326263427734375,
                "total_rafter_length": 380.35520000000002482920535840094089508056640625,
                "pitch_angle": 26.565051000000000414047462982125580310821533203125
            },
            "display": {
                "display": "15.093459"
            },
            "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.