Create expense
figa_create_expenseCreate a one-time or recurring expense. categoryInput omitted or null means no category; otherwise it accepts an existing ID or local draft with name and parentId/parentName. Drafts create/reuse local siblings only; identical names under other parents or shared scope are distinct. tagIds assigns existing tags; mutually exclusive tagInputs accepts IDs or {name} drafts. Amounts are minor units. Shapes: one-time fixed (amount, optional expenseDate defaulting to now); recurring fixed (amount and schedule, with dates from schedule.startDate and expenseDate ignored); ordinary variable (amountMode variable, daily/weekly/monthly/quarterly/yearly schedule, amount null or starting estimate, optional forecastStrategy; manual requires an amount); service (amountMode variable, amount null, currency and serviceCalculation, no schedule). acknowledgePastPaymentDate has no effect. New expenses start Unpaid unless markPaid is true. Fixed-only markPaid atomically pays the one-time expense or just the first recurring occurrence, with paymentDate in Unix seconds defaulting to now; a recurring response describes the series rather than the Paid occurrence. Variable bills and services reject markPaid. One-time fixed expenses may join an active expense group (manual series in the API) with manualSeriesId or create one with newManualSeries {name}, never both or alongside schedule/variable mode. An archived group returns MANUAL_SERIES_ARCHIVED. A new group takes the expense's final category, recipient, tags and currency as defaults; existing group defaults never overwrite supplied expense fields. schedule.dueWindowEnd defines weekly/monthly/quarterly/yearly windows ending on a weekday (0 Sunday), day of month, quarter month (1–3), or year month (1–12). Quarterly/yearly windows start on dayOfMonth 1. For example, yearly monthOfYear 10, dayOfMonth 1, dueWindowEnd 11 spans October 1–November 30. A window in progress on startDate starts the series; reads expose dueBy. 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>",
"expense": "<expense>"
},
"name": "figa_create_expense"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expense | Yes | The expense to create: name, amount in minor units or null, currency, optional date, schedule, category, recipient, tags, amount mode and payment fields, in one of the shapes described above. | |
| 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. |