Add an expense
add_expenseRecord a shared expense, split equally. paid_by defaults to the person you act for; split_among defaults to everyone in the plan. Always confirm the amount and who shares it with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | Plan link (e.g. https://lesgooo.fun/ab12/when) or its 4-character id. | |
| amount | Yes | Total in the plan's currency, max 2 decimals (e.g. 42.5). | |
| description | Yes | What it was for, e.g. "Groceries" (max 120 chars). | |
| split_among | No | participant_id values sharing the cost. Defaults to everyone. | |
| participant_id | Yes | From create_plan or join_plan. | |
| participant_token | Yes | From create_plan or join_plan. | |
| paid_by_participant_id | No | Who paid (participant_id from get_plan). Defaults to you. |