Tip Calculator
tip_calculatorCalculate a bill tip and equal per-person shares, with cent rounding or optional whole-dollar rounding up.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bill": 100,
"people": 3,
"roundUp": true,
"tipPercent": 18
},
"name": "tip_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bill | Yes | Bill base in USD, at most two decimals | |
| people | No | Number of equal shares; default 1 | |
| roundUp | No | Round each share up to a whole dollar; otherwise up to a cent | |
| tipPercent | Yes | Entered tip percentage, at most two decimals |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||