Bulk create expenses
figa_bulk_create_expensesCreate 1 to 50 expenses in order. Each expense follows the input schema, including fixed-only markPaid, minor-unit amounts, optional category and mutually exclusive tagIds/tagInputs. Variable expenses require a recurring schedule or service calculation. A malformed item rejects the entire call before saving. Otherwise each item succeeds or fails independently: results contains its index, success with expenseId, or failure with error.code/message, such as EXPENSE_LIMIT_REACHED. Failed items save nothing. Repeated category/tag drafts are created once per batch. Existing expenses are not deduplicated. Identical retries do not create the batch twice. On a limited plan, replayed batch results can be IDEMPOTENCY_RESPONSE_RESTRICTED, although the saved expenses remain subject to ordinary visibility. 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>",
"expenses": "<expenses>"
},
"name": "figa_bulk_create_expenses"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expenses | Yes | 1 to 50 expenses, created in this order; each has the same shape as a single created expense. | |
| 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. |