# Online Order Splitter AI Agent Connect

> Online Order Splitter MCP handles the math for group buys and shared orders. It calculates exactly what each person owes by distributing taxes, shipping, and discounts proportionally based on item value. Your AI client can then manage refunds, verify total payments, and generate individual financial summaries for every buyer involved.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_dbTL7Mk7ALs9ppmIwpm1zWJvCF7b2pP5eyJ7J4TW/ai-agent-connect
- **Tags:** split-bill, group-buy, proportional-math, refund-calculator, expense-sharing

## Description

If you're managing group orders or shared purchases, calculating individual totals is a headache. You have to account for the base price, the specific tax rate, shipping fees, and how a single discount applies across multiple items. This MCP takes that math off your plate. It uses proportional logic to ensure that if one person buys a more expensive item, they carry their fair share of the shipping and tax. You can hand your order data to your AI client and let it run the numbers. It works for simple splits or complex scenarios involving returns. Instead of manual spreadsheets, your agent handles the heavy lifting of determining individual obligations and verifying that the math adds up to the final receipt.

## Tools

### validate_order_consistency
This tool checks if the individual payments collected match the total amount charged on the receipt.

### calculate_refund
Use this to find out exactly how much a specific buyer should get back when items are returned. It accounts for the original proportional split.

### calculate_splits
This tool determines the final amount each buyer owes for a single order. It handles the proportional distribution of taxes and fees.

### get_buyer_summary
Get a high-level financial overview for a specific buyer. It shows their total contribution and average item costs.

## Prompt Examples

**Prompt:** 
```
Split this order: items are [{itemId: '1', price: 100, buyerId: 'A'}, {itemId: '2', price: 50, buyerId: 'B'}], discount is 15, tax is 10, and shipping is 5.
```

**Response:** 
```
Buyer A owes 63.33 and Buyer B owes 31.67.
```

**Prompt:** 
```
How much should Buyer A get back if they return item '1' from the previous split?
```

**Response:** 
```
Buyer A should receive a refund of 85.00.
```

**Prompt:** 
```
Give me a summary for Buyer B for the order with items [{itemId: '1', price: 100, buyerId: 'A'}, {itemId: '2', price: 50, buyerId: 'B'}], discount 15, tax 10, shipping 5.
```

**Response:** 
```
Buyer B contributed 31.67 for 1 item, with an average item cost of 31.67.
```

## Capabilities

### Proportional Cost Distribution
The AI calculates taxes and shipping based on the relative value of each item.

### Refund Calculation
Your agent determines individual refund amounts when parts of a shared order are returned.

### Payment Verification
The tool checks that the sum of individual buyer payments matches the total order cost.

### Buyer Financial Summaries
Your AI client generates individual reports showing what each person paid and their item averages.

## Use Cases

### Group Buying
Split a single large order among several friends or colleagues.

### Shared Office Supplies
Calculate how much different departments owe for a bulk supply order.

### Return Management
Determine the correct refund for one person in a group when they return their portion of an order.

### Expense Auditing
Verify that the money collected from various buyers equals the total amount paid to the vendor.

## Benefits

- Eliminates manual math errors in shared expense calculations.
- Distributes discounts and taxes proportionally by item value.
- Automates refund math for individual items in a group order.
- Provides instant verification that total payments match the receipt.

## How It Works

Connecting this MCP to your AI client gives your agent immediate access to financial math tools.

1. Connect your AI client to the MCP via Vinkius.
2. Provide the order details, including item prices, taxes, and discounts.
3. Ask your agent to calculate the individual splits.
4. Use the results to collect payments or issue refunds.

## Frequently Asked Questions

**How does this MCP handle discounts?**
It uses proportional logic to distribute discounts across all items based on their individual values.

**Can I use this with Claude or Cursor?**
Yes, you can connect this MCP to any MCP-compatible client like Claude, Cursor, or Windsurf.

**Does it handle shipping fees?**
Yes, shipping fees are distributed among buyers proportionally to the cost of their items.

**How do I handle returns in a group order?**
You can use the calculate_refund tool to find the exact amount a specific buyer is owed.

**Is the math accurate for taxes?**
The MCP calculates taxes proportionally so that each person pays their fair share based on their item's price.

**How are discounts and taxes distributed?**
Costs are distributed proportionally. Every discount, tax, and shipping fee is assigned to an individual based on the ratio of their item's cost to the total order cost.

**Does this tool handle returns?**
Yes, you can use `calculate_refund` to determine the exact amount a buyer should receive back, including their share of the original discount and tax.

**How can I verify if everyone paid the correct amount?**
You can use `validate_order_consistency` to check if the sum of individual payments matches the total amount charged by the merchant.
