tip_calculator
Calculate the tip amount and total bill for a meal, with the option to split evenly among multiple people.
Instructions
Calculate tip amount and total bill, optionally split between multiple people.
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": "tip_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bill | Yes | Total bill amount before tip | |
| tip_percent | No | Tip percentage (e.g. 18 for 18%) | |
| people | No | Number of people splitting the bill |