Add an expense
add_expenseRecords something someone paid for on the trip (“Add the A$60 ramen Zayd paid for the three of us”). amount is a decimal string in major units (“60”, “12.50”, “150000” for yen). shares lists who it’s for, by person id from get_trip: shared equally by default (method equal), or with method exact, each share’s own amount, adding up to the total. Paid by the user, today, in the trip’s currency, unless said otherwise.
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": {
"title": "<title>",
"amount": "<amount>",
"shares": "<shares>",
"tripId": "<tripId>"
},
"name": "add_expense"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| title | Yes | ||
| amount | Yes | In major units: "12.50", "150000" for yen | |
| method | No | equal (the default): shared equally by everyone in shares; exact: each share’s own amount | |
| paidBy | No | A Person id; you, unless given | |
| paidOn | No | YYYY-MM-DD; today where the trip is, unless given | |
| shares | Yes | Who it’s for: each person once | |
| tripId | Yes | The trip’s id, from list_trips | |
| category | No | other, unless given | |
| currency | No | ISO 4217; the trip’s, unless given (others need a Pro trip) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expense | Yes |