calculate_tip
Work out a tip and split a bill between people, in whole cents. round "none" rounds the tip to the cent; "up-total" rounds the total up to the next whole unit; "up-each" rounds each person's share up to the next whole unit and the total becomes shares times people. Returns tip, total and per_person as decimal strings. Free. Make receipts only for lawful purposes, such as replacing a lost receipt, bookkeeping, testing or design mockups. Using a receipt to deceive anyone, including for refunds, expense claims or proof of purchase, is prohibited.
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>",
"percent": "<percent>",
"people": "<people>",
"round": "<round>"
},
"name": "calculate_tip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bill | Yes | The bill before the tip, as a decimal string like 87.40 | |
| round | Yes | none: to the cent. up-total: round the total up. up-each: round each share up | |
| people | Yes | How many people share the bill | |
| percent | Yes | Tip in percent, like "18" |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tip | Yes | ||
| total | Yes | ||
| per_person | Yes |