← All tool references

Travel & Auto · not_available

Travel Budget Splitter

Travel Budget Splitter with transparent inputs and reviewable results.

Open public tool

Overview

Category
Travel & Auto
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/travel-budget-splitter

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/travel-budget-splitter/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.

lodging · number · required
Enter lodging.
transport · number · required
Enter transportation.
food · number · required
Enter food.
activities · number · required
Enter activities.
other · number · required
Enter other.
travelers · number · required
Enter travelers.
days · number · required
Enter trip days.
weights · string · required
Enter optional traveler weights.
{
    "type": "object",
    "properties": {
        "lodging": {
            "type": "number",
            "description": "Enter lodging."
        },
        "transport": {
            "type": "number",
            "description": "Enter transportation."
        },
        "food": {
            "type": "number",
            "description": "Enter food."
        },
        "activities": {
            "type": "number",
            "description": "Enter activities."
        },
        "other": {
            "type": "number",
            "description": "Enter other."
        },
        "travelers": {
            "type": "number",
            "description": "Enter travelers."
        },
        "days": {
            "type": "number",
            "description": "Enter trip days."
        },
        "weights": {
            "type": "string",
            "description": "Enter optional traveler weights."
        }
    },
    "required": [
        "lodging",
        "transport",
        "food",
        "activities",
        "other",
        "travelers",
        "days",
        "weights"
    ],
    "additionalProperties": false
}

Output schema

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

trip_total · number
Trip total produced by the tool.
equal_share · number
Equal share produced by the tool.
per_day_per_person · number
Per day per person produced by the tool.
traveler_shares · array
Traveler shares produced by the tool.
{
    "type": "object",
    "properties": {
        "trip_total": {
            "type": "number",
            "description": "Trip total produced by the tool."
        },
        "equal_share": {
            "type": "number",
            "description": "Equal share produced by the tool."
        },
        "per_day_per_person": {
            "type": "number",
            "description": "Per day per person produced by the tool."
        },
        "traveler_shares": {
            "type": "array",
            "description": "Traveler shares produced by the tool."
        }
    },
    "additionalProperties": false
}

Travel Budget Splitter worked 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/travel-budget-splitter/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "lodging": 900,
    "transport": 500,
    "food": 420,
    "activities": 300,
    "other": 180,
    "travelers": 4,
    "days": 5,
    "weights": "1,1,1,1"
}'
{
    "ok": true,
    "data": {
        "slug": "travel-budget-splitter",
        "result": {
            "values": {
                "trip_total": 2300,
                "equal_share": 575,
                "per_day_per_person": 115,
                "traveler_shares": [
                    {
                        "traveler": 1,
                        "share": 575
                    },
                    {
                        "traveler": 2,
                        "share": 575
                    },
                    {
                        "traveler": 3,
                        "share": 575
                    },
                    {
                        "traveler": 4,
                        "share": 575
                    }
                ]
            },
            "display": {
                "display": "2300"
            },
            "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.