Overview
- Category
- Cooking
- 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/tip-and-split-bill-calculator
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/tip-and-split-bill-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.
bill· number · required- Enter bill amount.
tip_percent· number · required- Enter tip percent.
people· number · required- Enter people.
tax· number · required- Enter tax already included.
tip_on· string · required-
Enter tip calculation base. Accepted values:
pre_tax, total.
{
"type": "object",
"properties": {
"bill": {
"type": "number",
"description": "Enter bill amount."
},
"tip_percent": {
"type": "number",
"description": "Enter tip percent."
},
"people": {
"type": "number",
"description": "Enter people."
},
"tax": {
"type": "number",
"description": "Enter tax already included."
},
"tip_on": {
"type": "string",
"description": "Enter tip calculation base.",
"enum": [
"pre_tax",
"total"
]
}
},
"required": [
"bill",
"tip_percent",
"people",
"tax",
"tip_on"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
tip· number- Tip amount produced by the tool.
total· number- Total with tip produced by the tool.
per_person· number- Per person produced by the tool.
rounding_adjustment· number- Rounding adjustment produced by the tool.
{
"type": "object",
"properties": {
"tip": {
"type": "number",
"description": "Tip amount produced by the tool."
},
"total": {
"type": "number",
"description": "Total with tip produced by the tool."
},
"per_person": {
"type": "number",
"description": "Per person produced by the tool."
},
"rounding_adjustment": {
"type": "number",
"description": "Rounding adjustment produced by the tool."
}
},
"additionalProperties": false
}
Tip and Split Bill Calculator 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/tip-and-split-bill-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"bill": 128.5,
"tip_percent": 20,
"people": 4,
"tax": 10.25,
"tip_on": "pre_tax"
}'
{
"ok": true,
"data": {
"slug": "tip-and-split-bill-calculator",
"result": {
"values": {
"tip": 25.699999999999999289457264239899814128875732421875,
"total": 164.44999999999998863131622783839702606201171875,
"per_person": 41.11999999999999744204615126363933086395263671875,
"rounding_adjustment": 0.0299999999999999988897769753748434595763683319091796875
},
"display": {
"display": "25.7"
},
"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.