Tip calculator
hopi_tip_calculatorWork out a tip on a bill and optionally split the total between people. Returns the tip amount, the total, and the amount per person. Source: https://hopi.co.uk/tip-calculator/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bill": "<bill>"
},
"name": "hopi_tip_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bill | Yes | The bill amount before tip | |
| split | No | Number of people to split between (default 1) | |
| tipPercent | No | Tip as a percentage (default 12.5) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tip | No | ||
| bill | No | ||
| split | No | ||
| total | No | ||
| summary | Yes | ||
| perPerson | No | ||
| source_url | Yes | The tool's page on hopi.co.uk (cite or open to check the figure) | |
| tipPercent | No |