undelete_expense
Restore a previously deleted Splitwise expense by specifying its expense ID.
Instructions
Restore a previously deleted expense.
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": {
"expense_id": "<expense_id>"
},
"name": "undelete_expense"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expense_id | Yes | Id of the previously deleted expense to restore. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Splitwise's numeric id for this expense. | |
| cost | Yes | Total cost of the expense, in currency_code units. | |
| date | Yes | Date and time the expense occurred. | |
| splits | No | Per-participant owed and paid shares for this expense. | |
| deleted | No | Whether this expense has been soft-deleted in Splitwise. | |
| category | No | Category assigned to this expense, if any. | |
| group_id | No | Id of the group this expense belongs to, if any. | |
| description | Yes | Short human-readable description of the expense. | |
| currency_code | Yes | ISO 4217 currency code the cost is denominated in. |