End series
figa_end_seriesPermanently end a recurring expense series after the inclusive lastDate, expressed as Unix seconds in the series timezone. An ended series cannot be resumed. Existing documents are preserved unless eligible stored plans are explicitly excluded. Requires a reviewed preview with its exact previewToken, revision and parameters. excludePlanIds contains only explicitly selected unprotected stored plans eligible in that preview; [] preserves all documents. 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>",
"expenseId": "<expenseId>",
"revision": "<revision>",
"parameters": "<parameters>",
"requestId": "<requestId>",
"previewToken": "<previewToken>",
"excludePlanIds": "<excludePlanIds>"
},
"name": "figa_end_series"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| revision | Yes | Current lifecycle revision of the series, as returned by the series read. | |
| expenseId | Yes | Template ID of the recurring series: a template version ID or its canonical root ID. Occurrence IDs and virtual aliases are rejected. | |
| 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. | |
| parameters | Yes | lastDate: last included date of the series, in Unix seconds. | |
| workspaceId | Yes | ID of a workspace selected for this connection. Other workspaces are rejected. | |
| previewToken | Yes | previewToken returned by the reviewed preview of this exact change. | |
| excludePlanIds | Yes | Stored plan IDs from that preview to remove (at most 500); [] keeps every stored document. |