API & MCP
Everything a person can do on Tip & Bill Split Calculator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://tipbillsplitcalculator.usefulweb.site/api/v1/calculate– run Tip & Bill Split CalculatorGET https://tipbillsplitcalculator.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Tip & Bill Split Calculator
Enter the bill, the tax rule (included as in most of Europe, or added at the till as in the US) and a tip as a percentage or an amount, before or after tax. Split equally, by shares or by what each person ordered, round each share up to 0.50 or 1, and get an exact who-pays-what table that adds up to the cent.
| Field | Type | Default | Description |
|---|---|---|---|
symbol | text | "€" | Currency symbol. Display only, e.g. €, $, £, CHF. |
billAmount (required) | number | 84.5 | Bill amount. The amount printed on the bill (before tip). |
taxMode | select (included, added, none) | "included" | Tax |
taxPercent | number | 19 | Tax rate |
tipMode | select (percent, amount) | "percent" | Tip given as |
tipPercent | number | 10 | Tip percentage |
tipAmount | number | 0 | Tip amount |
tipBase | select (pre-tax, post-tax) | "post-tax" | Tip calculated on |
splitMode | select (equal, shares, items) | "equal" | Split |
people | integer | 4 | Number of people (equal split). Used when the list of people below is empty. |
persons | table | — | People. Optional for an equal split. Shares: weight per person (default 1). Items: the bill amount of what each person ordered, in the same terms as the bill (with tax if tax is included); anything not assigned is shared equally. |
rounding | select (none, up-0.1, up-0.5, up-1, up-5, nearest-0.05) | "none" | Rounding per person. Any rounding difference is added to (or taken from) the tip. |
Example request
Dinner for 4 in Germany, 84.50 incl. VAT, 10% tip, round up to 1
curl -X POST https://tipbillsplitcalculator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"symbol":"€","billAmount":84.5,"taxMode":"included","taxPercent":19,"tipMode":"percent","tipPercent":10,"tipBase":"post-tax","splitMode":"equal","people":4,"rounding":"up-1"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://tipbillsplitcalculator.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
tip_bill_split_calculator - Local stdio connector:
node src/mcp-stdio.ts --tool=tip-bill-split-calculator
{
"mcpServers": {
"tip-bill-split-calculator": { "type": "http", "url": "https://tipbillsplitcalculator.usefulweb.site/mcp" }
}
}