tip-calculator
Compute the tip, total, and per-person split for a bill. All amounts use the same (unspecified) currency — the engine doesn't care about currency codes.
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>",
"tip_percent": "<tip_percent>"
},
"name": "tip-calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bill | Yes | Pre-tip bill amount, in the same currency as the output. | |
| split | No | Number of people splitting the bill. Defaults to 1. | |
| tip_percent | Yes | Tip percentage (e.g. 18 for 18%). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tip | Yes | Tip amount. | |
| bill | Yes | Pre-tip bill amount. | |
| split | Yes | Number of people the bill is split between. | |
| total | Yes | Total bill including tip. | |
| per_person_tip | Yes | Each person's share of the tip. | |
| per_person_total | Yes | Each person's share of the total. |