Add an expense
add_expenseAdd a shared expense to a group and preview balance changes before confirming. Detects duplicates and splits costs equally among participants.
Instructions
Add a shared expense to a group from a sentence ("dinner 84, I paid, split with everyone") or from explicit fields. Step 1 returns a preview naming everyone whose balance changes and asks for confirmation. Nothing is posted until the user confirms. Checks for likely duplicates first. Equal split only in this version; give participants to limit who shares it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | Decimal string like "84.00". Overrides text. | |
| date | No | YYYY-MM-DD. Defaults to today. | |
| text | No | A sentence like "taxi 16 paid by Sam split with me and Sam". | |
| payer | No | "me" or a member name or id. Defaults to me. | |
| currency | No | ISO code. Defaults to your Splitwise default currency. | |
| group_id | Yes | Group to post into. See splitwise://groups. | |
| category_id | No | From splitwise://categories. | |
| description | No | Overrides the description parsed from text. | |
| participants | No | Member names or ids who share the cost. Defaults to everyone in the group. | |
| idempotency_key | No | Repeat the same key to retry safely without a second post. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | Decimal amount as a string, two places, e.g. "84.00" | |
| note | Yes | ||
| posted | Yes | ||
| affected | No | ||
| currency | No | ||
| group_id | Yes | ||
| expense_id | No | ||
| description | No |