{"ok":true,"result":{"slug":"bill-splitter","name":"Bill Splitter","summary":"Split a restaurant bill item by item (tax and tip shared in proportion to what each person ate, to the cent) or settle group trip expenses with the fewest payments.","description":"Split a restaurant bill item by item with tax and tip shared fairly to the cent, or settle trip expenses with the fewest payments. Share the result as a link.","method":"POST","endpoint":"/api/v1/tools/bill-splitter","plan":"free","mcpName":"bill_splitter","input":{"type":"object","additionalProperties":false,"properties":{"mode":{"type":"string","description":"restaurant: split itemised bill. trip: who paid what, and who pays whom to settle up.","default":"restaurant","enum":["restaurant","trip"],"maxLength":200000},"people":{"type":"string","description":"Comma-separated names of everyone splitting, 1 to 20 (at least 2 for trip), e.g. \"Alice, Bob, Cara\". Names must be distinct.","maxLength":2000},"items":{"type":"string","description":"restaurant mode: JSON array of items, each {\"name\": string, \"price\": number, \"sharedBy\": [names or 0-based indexes]}. An empty or missing sharedBy means everyone shares it. Up to 100 items.","maxLength":50000},"expenses":{"type":"string","description":"trip mode: JSON array of expenses, each {\"description\": string, \"amount\": number, \"paidBy\": name or 0-based index, \"sharedBy\": [names or indexes]}. Empty sharedBy means everyone. Up to 100 expenses.","maxLength":50000},"tax":{"type":"number","description":"restaurant mode: tax, as a percentage of the item subtotal or a fixed amount (see taxKind).","default":0,"minimum":0},"taxKind":{"type":"string","description":"Whether tax is a percent (0 to 100) or an amount.","default":"percent","enum":["percent","amount"],"maxLength":200000},"tip":{"type":"number","description":"restaurant mode: tip, as a percentage of the item subtotal or a fixed amount (see tipKind).","default":0,"minimum":0},"tipKind":{"type":"string","description":"Whether tip is a percent (0 to 100) or an amount.","default":"percent","enum":["percent","amount"],"maxLength":200000}},"required":["people"]},"example":{"mode":"restaurant","people":"Alice, Bob, Cara","items":"[{\"name\":\"Pizza\",\"price\":18},{\"name\":\"Pasta\",\"price\":14.5,\"sharedBy\":[\"Alice\"]},{\"name\":\"Salad\",\"price\":9.25,\"sharedBy\":[\"Bob\"]},{\"name\":\"Wine\",\"price\":24,\"sharedBy\":[\"Alice\",\"Cara\"]}]","tax":8,"tip":15},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/bill-splitter","page":"https://pithlab.com/tools/bill-splitter"}}