correct_expenses
Preview and correct category, business purpose or user-supplied attendees on one or more exact expenses; first search_expenses for full expenseIds. Automatic preview with confirm omitted/false: show exact count and before/after changes, ask approval once, then repeat identical operationId/selection/change with confirm:true; early confirm returns preview. Never infer attendee names/business context. attendeeMode add preserves existing attendees; replace changes only that Notes segment. Preserve card, description, inbox and other structured Notes segments; skip Formula Notes/overflow. Terminal result gives applied/conflicted/failed counts, status and Undo. Does not omit duplicates, change amounts/dates or do broad Calendar matching; omit/restore via omit_expenses; one row's merchant or tag: update_expense. Mixed (e.g. category plus attendees), unsupported or over-100-row cleanup: https://www.expensebot.ai/review-expenses?source=mcp.
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": {
"operationId": "<operationId>"
},
"name": "correct_expenses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| undo | No | Undo within the Undo window. | |
| change | No | Exactly one correction; its type selects the required value field. | |
| status | No | Read status by operationId. | |
| confirm | No | Omit/false for preview; true only after explicit approval. | |
| selection | No | Exact expenses from search_expenses approved for this correction. | |
| operationId | Yes | Idempotency key generated once and reused unchanged. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| undo | No | ||
| change | No | ||
| status | Yes | ||
| message | No | ||
| preview | No | ||
| success | Yes | ||
| manifest | No | ||
| finalAnswer | No | ||
| operationId | No | ||
| confirmation | No | ||
| responseGuidance | No | ||
| reviewExpensesUrl | No | ||
| requiresConfirmation | No |