Tip calculator: tip, total and split per person
calc_tipRead-only
Tip and total for a bill at a tip percentage, split between any number of people, optionally rounding each share up to the next whole amount. Use for receipts, expense apps and group payments. Example: bill=84.5. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.
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": "calc_tip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bill | Yes | Bill amount before tip | |
| people | No | People sharing, 1-100 (default 1) | |
| percent | No | Tip percent, 0-100 (default 15) | |
| roundUp | No | true to round each share up to a whole amount |