Delete expense
figa_delete_expenseDelete an expense in the explicitly selected recurrence scope. FUTURE_INSTANCES refuses active startsFrom, an active lower-bound plan exclusion, or a family generationEnd before any write; rangeRevision alone does not cause refusal. These restrictions protect family boundaries; separate THIS/ALL deletions are not equivalent. Count-limited series do not support the lifecycle end action. A range-end change stops generation but does not delete saved documents. A deleted one-time expense reads as EXPENSE_NOT_FOUND; deleting it again succeeds without a change. This write requires explicit user intent. A UUID requestId identifies one intended operation; identical retries retain the same ID and payload. A missing response or IDEMPOTENCY_OUTCOME_UNKNOWN, IDEMPOTENT_REQUEST_IN_PROGRESS or INTERNAL_SERVER_ERROR leaves the outcome uncertain, not a confirmed failure. A new ID can duplicate an uncertain write. Corrected inputs after a definite validation or business refusal constitute a new operation. The transport response cache lasts 24 hours; longer replay guarantees are stated above.
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": {
"workspaceId": "<workspaceId>",
"requestId": "<requestId>",
"expenseId": "<expenseId>",
"scope": "<scope>"
},
"name": "figa_delete_expense"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | editScope for a recurring expense: THIS_INSTANCE (this occurrence), FUTURE_INSTANCES (this and later occurrences) or ALL_INSTANCES (the whole series). | |
| expenseId | Yes | Expense ID as returned by expense reads: a stored expense UUID or the ID of a generated occurrence of a recurring series. | |
| requestId | Yes | Caller-generated UUID identifying this one intended write. A retry of the same write reuses the ID and payload; the same ID with different input returns IDEMPOTENCY_KEY_MISMATCH. | |
| workspaceId | Yes | ID of a workspace selected for this connection. Other workspaces are rejected. |