Delete Expense
delete_expenseMoves one of the signed-in person's own expenses to Trash, where it can be restored. An expense already on an invoice, or synced from the accounting system, is refused with the reason. Handles "remove the parking I logged twice".
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": {
"expenseId": "<expenseId>"
},
"name": "delete_expense"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | No | Not needed when signed in: these tools act for the signed-in person, and any other ID is refused. Applies only to a workspace connection with no signed-in user, naming whose expenses these are. | |
| expenseId | Yes | The expense id, as an expense read or a logged expense gave it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| undo | No | The call that reverses this one, with its arguments. | |
| trashed | No | ||
| expenseId | No |