Update Expense
update_expenseUpdate an existing expense by providing the ID and any fields to modify. Only specified values are changed.
Instructions
Update an existing expense using PATCH semantics. Only the provided fields will be changed. Example: id='abc123', amount=75.00, category='travel' / Actualiza un gasto existente. Solo se modifican los campos proporcionados.
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": {
"id": "<id>"
},
"name": "update_expense"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Expense ID / ID del gasto | |
| date | No | Date (YYYY-MM-DD) / Fecha | |
| amount | No | Amount in EUR / Importe | |
| vendor | No | Vendor / Proveedor | |
| category | No | Category / Categoria | |
| description | No | Description / Descripcion | |
| taxDeductible | No | Tax deductible / Deducible |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| date | No | ||
| amount | Yes | ||
| vendor | No | ||
| category | No | ||
| createdAt | No | ||
| updatedAt | No | ||
| description | Yes | ||
| taxDeductible | No |