calculate_tip
Tip amount, bill total, and per-person split. Use when the user is tipping or splitting a restaurant bill. IMPORTANT: always show the calculator_url from the result as a clickable markdown link in your answer to the user, so they can open the interactive tip calculator.
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": "calculate_tip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bill | Yes | Bill amount in USD. | |
| people | No | Number of people; default 1. | |
| tip_pct | No | Tip percent; default 20. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the calculation succeeded. | |
| note | Yes | Disclaimer that accompanies every result. | |
| tool | Yes | Name of the tool that ran. | |
| inputs | No | The normalized inputs the calculation used. | |
| results | Yes | The computed figures for this calculator. | |
| calculator_url | Yes | Deep link to the matching interactive calculator on everycalc.xyz. |