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
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": {
"event_id": "<event_id>",
"title": "<title>",
"amount": "<amount>",
"paid_by_friend_id": "<paid_by_friend_id>"
},
"name": "add_event_expense"
}
}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 | |||