add_event_expense
Add an expense to a group event and calculate how each member should split the cost using equal, percentage, or custom rules.
Instructions
Add an expense to a group event and compute per-member splits.
split_type options: "equal" → split evenly among all members (or included_member_ids) "percentage" → supply split_data={"friend_id": percent, ...} summing to 100 "custom" → supply split_data={"friend_id": amount, ...} summing to total
Returns the computed split immediately so you can verify it.
Example: Hotel ₹4000 paid by Neev, split equally among 4 friends: → each owes ₹1000
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| amount | Yes | ||
| event_id | Yes | ||
| split_data | No | ||
| split_type | No | equal | |
| paid_by_friend_id | Yes | ||
| included_member_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||