calculate_tip
Calculate tip and split bill.
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": {
"amount": "<amount>"
},
"name": "calculate_tip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| split | No | Number of people to split | |
| amount | Yes | Bill amount | |
| tip_percent | No | Tip percentage |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | ||
| per_person | Yes | ||
| split_ways | Yes | ||
| tip_amount | Yes | ||
| bill_amount | Yes | ||
| tip_percent | Yes |